Package gda.px.detector
Class AreaDetectorPilatusBase
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.detector.DetectorBase
gda.px.detector.AreaDetectorPilatusBase
- All Implemented Interfaces:
Device,Stoppable,Configurable,Findable,gda.observable.IObservable,Detector,IAreaDetectorPilatus,IPilatusDetector
- Direct Known Subclasses:
DummyAreaDetectorPilatus,EpicsAreaDetectorPilatus
-
Field Summary
Fields inherited from class gda.px.detector.DetectorBase
defaultSuffixFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void_abort()protected abstract intprotected abstract int_getGain()protected abstract intprotected abstract int_getMode()protected abstract booleanonly way to guarantee that an acquire is done is by looking at the acquire state, according to Ulrik Pprotected abstract boolean_isBusy()protected abstract void_setAlpha(double alpha) protected abstract void_setAutoIncrement(PilatusAutoIncrement selectedMode) protected abstract void_setBeamX(double beamX) protected abstract void_setBeamY(double beamY) protected abstract void_setCbfTemplate(String cbfTemplate) protected abstract void_setChi(double chi) protected abstract void_setChiIncrement(double chiIncrement) protected abstract void_setDetectorDistance(double distanceInMm) protected abstract void_setDetectorVOffset(double offset) protected abstract void_setFlux(double flux) protected abstract void_setGain(PilatusGain gain) protected abstract void_setGapFill(int gapFillMenuEntry) protected abstract void_setImageMode(PilatusImageMode selectedMode) protected abstract void_setKappa(double kappa) protected abstract void_setMode(PilatusTriggerMode selectedMode) protected abstract void_setOmega(double omega) protected abstract void_setOmegaIncrement(double omegaIncrement) protected abstract void_setOscillationAxis(String oscAxis) protected abstract void_setOscillationSize(double oscSize) protected abstract void_setPhi(double phi) protected abstract void_setPhiIncrement(double phiIncrement) protected abstract void_setPolarization(double polarization) protected abstract void_setStartAngle(double startAngle) protected abstract void_setTransmission(double transmission) protected abstract void_setTwoTheta(double twoTheta) protected abstract void_setWavelength(double wavelength) protected abstract void_start()protected abstract void_waitForArmed(int timeoutInSeconds) voidabort()Aborts the current action by the detector.voidaddIObserver(gda.observable.IObserver observer) voidclose()Close and unconfigure the device.voiddeleteIObserver(gda.observable.IObserver observer) voidgetAttribute(String attributeName) Get the value of the specified attributeReturns current status of detectorgetGain()doubleReturns the size of images produced, in MBReturns the filename of the last image created.doubleReturns the largest dimension of the detector face in mm.doubledoublegetMode()getModel()double[]intintgetSizeX()intgetSizeY()intReturn Pilatus model typevoidinitialiseDataSet(DetectorCollectionParameters datasetParameters) Informs the detector that a collection of images with incremental names will be created.booleanisBusy()booleanvoidRe-initialisation of values and states.voidvoidsetAttribute(String attributeName, Object value) Set any attribute the implementing classes may providevoidsetAutoIncrement(String modeName) voidsetAutoRunNumberUtils(AutoRunNumberUtils autoRunNumberUtils) voidvoidsetGapFill(int gapFill) voidsetImageMode(String modeName) Sets the image mode.voidsetMinExposureTime(double minExposureTime) voidsetMinStillExposureTime(double minStillExposureTime) voidSets the trigger mode.voidvoidsetPilatusType(String type) voidsetProtectionLevel(int newLevel) Sets the permission level for this object.voidsetSpecialMode(boolean specialMode) voidStart data collectionvoidstop()Stops the current operation.protected voidvoidReturns when the detector has finished its currently operation.Methods inherited from class gda.px.detector.DetectorBase
getCurrentParameters, getId, getSuffix, isRoiModeAllowed, setCurrentParameters, setDetectorStatus, setId, setMaxDimension, setRoiModeAllowed, setSuffix, setTypeStringMethods inherited from class gda.device.DeviceBase
getName, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfiguredMethods inherited from interface gda.px.detector.Detector
disableRoiMode, enableRoiMode, getFullDimensionInMm, getFullSizeX, getFullSizeY, getId, getMaxFullDimension, getSuffix, isInRoiModeMethods inherited from interface gda.px.detector.IAreaDetectorPilatus
applyThreshold, getEnergyDemand, setEnergyDemandMethods inherited from interface gda.px.detector.IPilatusDetector
getFilenumber, getThresholdEnergy, setAutoApplyThresholdGain, setDelayTime, setExposurePeriod, setExposureTime, setFileformat, setFileHeader, setFilenumber, setFilepath, setFileprefix, setNumberOfExposures, setNumberOfImages, setThresholdEnergy
-
Constructor Details
-
AreaDetectorPilatusBase
protected AreaDetectorPilatusBase()
-
-
Method Details
-
setPilatusType
- Specified by:
setPilatusTypein interfaceIAreaDetectorPilatus
-
getDimensionInMm
- Specified by:
getDimensionInMmin interfaceDetector
-
getMaxDimension
public double getMaxDimension()Description copied from interface:DetectorReturns the largest dimension of the detector face in mm.- Specified by:
getMaxDimensionin interfaceDetector- Overrides:
getMaxDimensionin classDetectorBase- Returns:
- double
-
getImageMB
Description copied from interface:DetectorReturns the size of images produced, in MB- Specified by:
getImageMBin interfaceDetector- Returns:
- double
- Throws:
DeviceException
-
getSizeX
public int getSizeX() -
getSizeY
public int getSizeY() -
getThresholdTime
- Specified by:
getThresholdTimein interfaceIPilatusDetector- Throws:
DeviceException
-
getModel
- Specified by:
getModelin interfaceIPilatusDetector
-
setModel
- Specified by:
setModelin interfaceIAreaDetectorPilatus
-
getShortName
- Specified by:
getShortNamein interfaceIPilatusDetector
-
getPixelSize
public double[] getPixelSize()- Specified by:
getPixelSizein interfaceIPilatusDetector
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- Throws:
FactoryException
-
addIObserver
public void addIObserver(gda.observable.IObserver observer) - Specified by:
addIObserverin interfacegda.observable.IObservable- Overrides:
addIObserverin classDeviceBase
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver observer) - Specified by:
deleteIObserverin interfacegda.observable.IObservable- Overrides:
deleteIObserverin classDeviceBase
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable- Overrides:
deleteIObserversin classDeviceBase
-
getTypeString
Return Pilatus model type- Specified by:
getTypeStringin interfaceDetector- Overrides:
getTypeStringin classDetectorBase- Returns:
- String
-
setAttribute
Description copied from interface:DeviceSet any attribute the implementing classes may provide- Specified by:
setAttributein interfaceDevice- Overrides:
setAttributein classDeviceBase- Parameters:
attributeName- is the name of the attributevalue- is the value of the attribute- Throws:
DeviceException- if an attribute cannot be set
-
getAttribute
Description copied from interface:DeviceGet the value of the specified attribute- Specified by:
getAttributein interfaceDevice- Overrides:
getAttributein classDeviceBase- Parameters:
attributeName- is the name of the attribute- Returns:
- the value of the attribute as an Object type
- Throws:
DeviceException- if an attribute cannot be retrieved
-
isSpecialMode
public boolean isSpecialMode()- Specified by:
isSpecialModein interfaceIAreaDetectorPilatus
-
setSpecialMode
public void setSpecialMode(boolean specialMode) - Specified by:
setSpecialModein interfaceIAreaDetectorPilatus
-
getGain
- Specified by:
getGainin interfaceIPilatusDetector
-
setGain
- Specified by:
setGainin interfaceIPilatusDetector
-
getActualGain
- Specified by:
getActualGainin interfaceIPilatusDetector
-
_getGain
protected abstract int _getGain() -
_setGain
-
getImageMode
- Specified by:
getImageModein interfaceIPilatusDetector- Returns:
- the image mode
- Throws:
DeviceException
-
_getImageMode
- Throws:
DeviceException
-
setImageMode
Description copied from interface:IPilatusDetectorSets the image mode. SeePilatusImageModefor the allowed labels.- Specified by:
setImageModein interfaceIPilatusDetector- Throws:
DeviceException
-
_setImageMode
- Throws:
DeviceException
-
getMode
- Specified by:
getModein interfaceIPilatusDetector- Returns:
- the trigger mode
- Throws:
DeviceException
-
_getMode
- Throws:
DeviceException
-
setMode
Description copied from interface:IPilatusDetectorSets the trigger mode. SeePilatusTriggerModefor the allowed labels.- Specified by:
setModein interfaceIPilatusDetector- Throws:
DeviceException
-
_setMode
- Throws:
DeviceException
-
sendParameters
- Specified by:
sendParametersin interfaceIPilatusDetector
-
_setWavelength
- Throws:
IOException
-
_setDetectorDistance
- Throws:
IOException
-
_setDetectorVOffset
- Throws:
IOException
-
_setBeamX
- Throws:
IOException
-
_setBeamY
- Throws:
IOException
-
_setFlux
- Throws:
IOException
-
_setTransmission
- Throws:
IOException
-
_setStartAngle
- Throws:
IOException
-
_setOscillationSize
- Throws:
IOException
-
_setOscillationAxis
- Throws:
IOException
-
_setPolarization
- Throws:
IOException
-
_setAlpha
- Throws:
IOException
-
_setKappa
- Throws:
IOException
-
_setPhi
- Throws:
IOException
-
_setPhiIncrement
- Throws:
IOException
-
_setChi
- Throws:
IOException
-
_setChiIncrement
- Throws:
IOException
-
_setOmega
- Throws:
IOException
-
_setTwoTheta
- Throws:
IOException
-
_setOmegaIncrement
- Throws:
IOException
-
_setCbfTemplate
- Throws:
IOException
-
getAutoIncrement
- Specified by:
getAutoIncrementin interfaceIAreaDetectorPilatus- Throws:
DeviceException
-
_getAutoIncrement
- Throws:
DeviceException
-
setAutoIncrement
- Specified by:
setAutoIncrementin interfaceIPilatusDetector- Throws:
DeviceException
-
_setAutoIncrement
- Throws:
DeviceException
-
setGapFill
- Specified by:
setGapFillin interfaceIPilatusDetector- Throws:
DeviceException
-
_setGapFill
- Throws:
DeviceException
-
close
Description copied from interface:DeviceClose and unconfigure the device.- Specified by:
closein interfaceDevice- Overrides:
closein classDeviceBase- Throws:
DeviceException
-
setProtectionLevel
public void setProtectionLevel(int newLevel) Description copied from interface:DeviceSets the permission level for this object. If this is not set then a default value will be applied.- Specified by:
setProtectionLevelin interfaceDevice- Overrides:
setProtectionLevelin classDeviceBase- Parameters:
newLevel-
-
getProtectionLevel
public int getProtectionLevel()- Specified by:
getProtectionLevelin interfaceDevice- Overrides:
getProtectionLevelin classDeviceBase- Returns:
- int - the permission level for this object.
-
abort
Description copied from interface:DetectorAborts the current action by the detector. The detector should be left in a state such that data collection can continue without further resetting. This method should also work when the detector is idle.- Specified by:
abortin interfaceDetector- Throws:
DeviceException
-
_abort
- Throws:
IOException
-
start
Description copied from interface:DetectorStart data collection- Specified by:
startin interfaceDetector- Parameters:
file- - the name of the file to createomegaStart- - the starting angle of data collection (to go into image header)- Throws:
DeviceException
-
_start
- Throws:
DeviceException
-
_waitForArmed
- Throws:
DeviceException
-
getDetectorStatus
Description copied from interface:DetectorReturns current status of detector- Specified by:
getDetectorStatusin interfaceDetector- Overrides:
getDetectorStatusin classDetectorBase- Returns:
- DetectorStatus
- Throws:
DeviceException
-
getLastImageName
Description copied from interface:DetectorReturns the filename of the last image created.- Specified by:
getLastImageNamein interfaceDetector- Returns:
- String
- Throws:
DeviceException
-
initialiseDataSet
public void initialiseDataSet(DetectorCollectionParameters datasetParameters) throws DeviceException Description copied from interface:DetectorInforms the detector that a collection of images with incremental names will be created. This is not simply called setCurrentParameters to show that this method may often do more work than simply changing an instance field.- Specified by:
initialiseDataSetin interfaceDetector- Parameters:
datasetParameters-- Throws:
DeviceException
-
stop
Description copied from interface:StoppableStops the current operation.- Specified by:
stopin interfaceStoppable- Throws:
DeviceException
-
waitForReady
Description copied from interface:DetectorReturns when the detector has finished its currently operation. If its idle then returns immediately.- Specified by:
waitForReadyin interfaceDetector- Throws:
DeviceException
-
_isBusy
- Throws:
IOException
-
_isAcquiring
only way to guarantee that an acquire is done is by looking at the acquire state, according to Ulrik P- Throws:
IOException
-
isBusy
- Specified by:
isBusyin interfaceDetector- Throws:
DeviceException
-
setAutoRunNumberUtils
-
getAutoRunNumberUtils
- Specified by:
getAutoRunNumberUtilsin interfaceDetector
-
getMinExposureTime
public double getMinExposureTime()- Specified by:
getMinExposureTimein interfaceDetector
-
setMinExposureTime
public void setMinExposureTime(double minExposureTime) -
getMinStillExposureTime
public double getMinStillExposureTime()- Specified by:
getMinStillExposureTimein interfaceDetector
-
setMinStillExposureTime
public void setMinStillExposureTime(double minStillExposureTime) -
throwRoiModeUnsupportedException
protected void throwRoiModeUnsupportedException()
-