Package gda.px.detector
Class DummyDetector
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.detector.DetectorBase
gda.px.detector.DummyDetector
- All Implemented Interfaces:
Device,Stoppable,Configurable,Findable,gda.observable.IObservable,Detector
Simulation of an MX detector
-
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 TypeMethodDescriptionvoidabort()Aborts the current action by the detector.voidvoidintintdoubleReturns the size of images produced, in MBReturns the filename of the last image created.doubleReturns the largest dimension of the detector face in mm.doubledoubledoubleintgetSizeX()intgetSizeY()voidinitialiseDataSet(DetectorCollectionParameters currentParameters) Informs the detector that a collection of images with incremental names will be created.booleanisBusy()booleanvoidsetMaxDimension(double maxDimension) voidStart data collectionvoidstop()Stops the current operation.voidReturns when the detector has finished its currently operation.Methods inherited from class gda.px.detector.DetectorBase
getCurrentParameters, getDetectorStatus, getId, getSuffix, getTypeString, isRoiModeAllowed, setCurrentParameters, setDetectorStatus, setId, setRoiModeAllowed, setSuffix, setTypeStringMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, reconfigure, 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, isConfigured, reconfigureMethods inherited from interface gda.px.detector.Detector
getDetectorStatus, getId, getSuffix, getTypeStringMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyDetector
public DummyDetector()Constructor.
-
-
Method Details
-
getImageMB
public double getImageMB()Description copied from interface:DetectorReturns the size of images produced, in MB- Specified by:
getImageMBin interfaceDetector- Returns:
- double
-
initialiseDataSet
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:
currentParameters-
-
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
-
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
-
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
-
stop
Description copied from interface:StoppableStops the current operation.- Specified by:
stopin interfaceStoppable- Throws:
DeviceException
-
getLastImageName
Description copied from interface:DetectorReturns the filename of the last image created.- Specified by:
getLastImageNamein interfaceDetector- Returns:
- String
- Throws:
DeviceException
-
getDimensionInMm
- Specified by:
getDimensionInMmin interfaceDetector
-
setMaxDimension
public void setMaxDimension(double maxDimension) - Overrides:
setMaxDimensionin classDetectorBase
-
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
-
isBusy
- Specified by:
isBusyin interfaceDetector- Throws:
DeviceException
-
getSizeX
public int getSizeX() -
getSizeY
public int getSizeY() -
isInRoiMode
public boolean isInRoiMode()- Specified by:
isInRoiModein interfaceDetector
-
getFullSizeX
public int getFullSizeX()- Specified by:
getFullSizeXin interfaceDetector
-
getFullSizeY
public int getFullSizeY()- Specified by:
getFullSizeYin interfaceDetector
-
getFullDimensionInMm
- Specified by:
getFullDimensionInMmin interfaceDetector
-
getMaxFullDimension
public double getMaxFullDimension()- Specified by:
getMaxFullDimensionin interfaceDetector
-
enableRoiMode
- Specified by:
enableRoiModein interfaceDetector- Throws:
DeviceException
-
disableRoiMode
- Specified by:
disableRoiModein interfaceDetector- Throws:
DeviceException
-
getAutoRunNumberUtils
- Specified by:
getAutoRunNumberUtilsin interfaceDetector
-
getMinExposureTime
public double getMinExposureTime()- Specified by:
getMinExposureTimein interfaceDetector
-
getMinStillExposureTime
public double getMinStillExposureTime()- Specified by:
getMinStillExposureTimein interfaceDetector
-