Package gda.device.etl
Class DummyEtlDetector
- All Implemented Interfaces:
Detector,Device,EtlDetector,Scannable,Configurable,Findable,gda.observable.IObservable,Serializable
- See Also:
-
Field Summary
Fields inherited from class gda.device.detector.DetectorBase
collectionTimeFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTells the detector to begin to collect a set of data, then returns immediately.booleanReturns a value which indicates whether the detector creates its own files.intGets the actual output high voltage at the detector.intgetHV()Gets the requested High Voltage from the detector register.intGets window's lower threshold from the detector.intReturns the current collecting state of the device.intGets the window's upper threshold from the detector.readout()Returns the latest data collected.voidsetHV(int mv) Sets the high voltage input in milli-volt for the detector.voidsetLowerThreshold(int llim) Sets the window's lower threshold of the detector.voidsetUpperThreshold(int ulim) Sets the window's upper threshold for the detector.Methods inherited from class gda.device.detector.DetectorBase
asynchronousMoveTo, checkPositionValid, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getPosition, isBusy, prepareForCollection, setCollectionTime, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods 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, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, prepareForCollection, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString
-
Constructor Details
-
DummyEtlDetector
public DummyEtlDetector()
-
-
Method Details
-
collectData
Description copied from interface:DetectorTells the detector to begin to collect a set of data, then returns immediately. Should cause the hardware to start collecting immediately: if there is any delay then detectors used in the same scan would collect over different times when beam conditions may differ.- Specified by:
collectDatain interfaceDetector- Throws:
DeviceException
-
getStatus
Description copied from interface:DetectorReturns the current collecting state of the device.- Specified by:
getStatusin interfaceDetector- Returns:
- BUSY if the detector has not finished the requested operation(s), IDLE if in an completely idle state and STANDBY if temporarily suspended.
- Throws:
DeviceException
-
readout
Description copied from interface:DetectorReturns the latest data collected. The size of the Object returned must be consistent with the values returned by getDataDimensions and getExtraNames.If
LocalProperties.GDA_SCAN_CONCURRENTSCAN_READOUT_CONCURRENTLYis true then motors may be moved while the detector readouts. The value returned must not be effected by any concurrent motor or shutter movements. SeeDetector.waitWhileBusy()andConcurrentScan. Readout must block until the detector is ready to respond quickly toDetector.collectData()again.- Specified by:
readoutin interfaceDetector- Returns:
- the data collected
- Throws:
DeviceException
-
createsOwnFiles
Description copied from interface:DetectorReturns a value which indicates whether the detector creates its own files. If it does (return true) the readout() method returns the name of the latest file created as a string. If it does not (return false) the readout() method will return the data directly.- Specified by:
createsOwnFilesin interfaceDetector- Returns:
- true if readout() returns filenames
- Throws:
DeviceException
-
setHV
Description copied from interface:EtlDetectorSets the high voltage input in milli-volt for the detector.- Specified by:
setHVin interfaceEtlDetector- Parameters:
mv-- Throws:
DeviceException
-
getActualHV
Description copied from interface:EtlDetectorGets the actual output high voltage at the detector.- Specified by:
getActualHVin interfaceEtlDetector- Returns:
- actual HV
- Throws:
DeviceException
-
getHV
Description copied from interface:EtlDetectorGets the requested High Voltage from the detector register.- Specified by:
getHVin interfaceEtlDetector- Returns:
- HV
- Throws:
DeviceException
-
setUpperThreshold
Description copied from interface:EtlDetectorSets the window's upper threshold for the detector.- Specified by:
setUpperThresholdin interfaceEtlDetector- Parameters:
ulim-- Throws:
DeviceException
-
getUpperThreshold
Description copied from interface:EtlDetectorGets the window's upper threshold from the detector.- Specified by:
getUpperThresholdin interfaceEtlDetector- Returns:
- Upper Threshold
- Throws:
DeviceException
-
setLowerThreshold
Description copied from interface:EtlDetectorSets the window's lower threshold of the detector.- Specified by:
setLowerThresholdin interfaceEtlDetector- Parameters:
llim-- Throws:
DeviceException
-
getLowerThreshold
Description copied from interface:EtlDetectorGets window's lower threshold from the detector.- Specified by:
getLowerThresholdin interfaceEtlDetector- Returns:
- Lower Threshold
- Throws:
DeviceException
-