Package gda.px.detector
Interface Detector
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable,Stoppable
- All Known Subinterfaces:
IAreaDetectorPilatus,IPilatusDetector,OdinEigerDetector
- All Known Implementing Classes:
AreaDetectorPilatusBase,DetectorBase,DetectorProxy,DummyAreaDetectorPilatus,DummyDetector,DummyOdinEigerDetectorImpl,EpicsAreaDetectorPilatus,EpicsOdinEigerDetectorImpl,OdinEigerDetectorImpl
Detector interface. All detectors must implement following functions. Detector observes lower level controller (eg.
MardcController) and is observed by DetectorControlPanel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Aborts the current action by the detector.voidvoidReturns current status of detectorintintintgetId()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.doubledoubledoubleintgetSizeX()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()booleanvoidStart data collectionvoidReturns when the detector has finished its currently operation.Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
getId
int getId() -
abort
Aborts 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.- Throws:
DeviceException
-
getDetectorStatus
Returns current status of detector- Returns:
- DetectorStatus
- Throws:
DeviceException
-
getImageMB
Returns the size of images produced, in MB- Returns:
- double
- Throws:
DeviceException
-
getLastImageName
Returns the filename of the last image created.- Returns:
- String
- Throws:
DeviceException
-
getSizeX
int getSizeX()- Returns:
- horizontal size of image, in pixels
-
getSizeY
int getSizeY()- Returns:
- vertical size of image, in pixels
-
getMaxDimension
Returns the largest dimension of the detector face in mm.- Returns:
- double
- Throws:
DeviceException
-
getSuffix
Returns the suffix currently given to all images created- Returns:
- String
- Throws:
DeviceException
-
getTypeString
String getTypeString()Returns the type of the detector- Returns:
- String
-
initialiseDataSet
Informs 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.- Parameters:
datasetParameters-- Throws:
DeviceException
-
start
Start data collection- Parameters:
file- - the name of the file to createomegaStart- - the starting angle of data collection (to go into image header)- Throws:
DeviceException
-
waitForReady
Returns when the detector has finished its currently operation. If its idle then returns immediately.- Throws:
DeviceException
-
getDimensionInMm
DetectorDimension getDimensionInMm() -
isBusy
- Throws:
DeviceException
-
enableRoiMode
- Throws:
DeviceException
-
disableRoiMode
- Throws:
DeviceException
-
isInRoiMode
- Throws:
DeviceException
-
getFullSizeX
int getFullSizeX() -
getFullSizeY
int getFullSizeY() -
getFullDimensionInMm
DetectorDimension getFullDimensionInMm() -
getMaxFullDimension
double getMaxFullDimension() -
getAutoRunNumberUtils
- Throws:
DeviceException
-
getMinExposureTime
double getMinExposureTime() -
getMinStillExposureTime
double getMinStillExposureTime()
-