Package gda.px.detector.eiger.impl
Class OdinEigerDetectorImpl
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.detector.DetectorBase
gda.px.detector.eiger.impl.OdinEigerDetectorImpl
- All Implemented Interfaces:
Device,Stoppable,Configurable,Findable,gda.observable.IObservable,Detector,OdinEigerDetector
- Direct Known Subclasses:
DummyOdinEigerDetectorImpl,EpicsOdinEigerDetectorImpl
@ServiceInterface(OdinEigerDetector.class)
public class OdinEigerDetectorImpl
extends DetectorBase
implements OdinEigerDetector
-
Field Summary
Fields inherited from class gda.px.detector.DetectorBase
defaultSuffixFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionOdinEigerDetectorImpl(AutoRunNumberUtils autoRunNumberUtils, EigerAreaDetector areaDetector, EigerOdin odin, String type, int id) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Aborts the current action by the detector.voidaddIObserver(gda.observable.IObserver observer) voidclose()Close and unconfigure the device.voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voiddeleteIObserver(gda.observable.IObserver observer) voidvoidvoidgetAttribute(String attributeName) Get the value of the specified attributeReturns current status of detectorintintdoubleReturns the size of images produced, in MBReturns the filename of the last image created.doubleReturns the largest dimension of the detector face in mm.doubledoubledoublegetOdin()intintgetSizeX()intgetSizeY()Returns the suffix currently given to all images createdReturns the type of the detectorvoidinitialiseDataSet(DetectorCollectionParameters datasetParameters) Informs the detector that a collection of images with incremental names will be created.booleanisBusy()booleanvoidRe-initialisation of values and states.voidsetAttribute(String attributeName, Object value) Set any attribute the implementing classes may providevoidsetMinExposureTime(double minExposureTime) voidsetMinStillExposureTime(double minStillExposureTime) voidsetProtectionLevel(int newLevel) Sets the permission level for this object.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, getId, 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
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
isConfigureAtStartup, isConfigured
-
Constructor Details
-
OdinEigerDetectorImpl
public OdinEigerDetectorImpl(AutoRunNumberUtils autoRunNumberUtils, EigerAreaDetector areaDetector, EigerOdin odin, String type, int id)
-
-
Method Details
-
getRoiSizeInPixels
-
getSizeInPixels
-
getAreaDetector
- Specified by:
getAreaDetectorin interfaceOdinEigerDetector
-
getOdin
- Specified by:
getOdinin interfaceOdinEigerDetector
-
getCamPlugin
-
getAcquisition
-
enableRoiMode
- Specified by:
enableRoiModein interfaceDetector- Throws:
DeviceException
-
disableRoiMode
- Specified by:
disableRoiModein interfaceDetector- Throws:
DeviceException
-
isInRoiMode
- Specified by:
isInRoiModein interfaceDetector- Throws:
DeviceException
-
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
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
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
-
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
-
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
-
getDetectorStatus
Description copied from interface:DetectorReturns current status of detector- Specified by:
getDetectorStatusin interfaceDetector- Overrides:
getDetectorStatusin classDetectorBase- Returns:
- DetectorStatus
- Throws:
DeviceException
-
getImageMB
Description copied from interface:DetectorReturns the size of images produced, in MB- Specified by:
getImageMBin interfaceDetector- Returns:
- double
- Throws:
DeviceException
-
getLastImageName
Description copied from interface:DetectorReturns the filename of the last image created.- Specified by:
getLastImageNamein interfaceDetector- Returns:
- String
- Throws:
DeviceException
-
getSizeX
public int getSizeX() -
getSizeY
public int getSizeY() -
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
-
getSuffix
Description copied from interface:DetectorReturns the suffix currently given to all images created- Specified by:
getSuffixin interfaceDetector- Overrides:
getSuffixin classDetectorBase- Returns:
- image file suffix
-
getTypeString
Description copied from interface:DetectorReturns the type of the detector- Specified by:
getTypeStringin interfaceDetector- Overrides:
getTypeStringin classDetectorBase- Returns:
- Eiger model type
-
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
-
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
-
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
-
getDimensionInMm
- Specified by:
getDimensionInMmin interfaceDetector
-
isBusy
- Specified by:
isBusyin interfaceDetector- Throws:
DeviceException
-
getAutoRunNumberUtils
- Specified by:
getAutoRunNumberUtilsin interfaceDetector
-
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
-
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)
-