Package gda.device.scannable
Interface ContinuouslyScannable
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable,Scannable,ScannableMotion,ScannableMotionUnits
- All Known Subinterfaces:
SimulatedContinuouslyScannable
- All Known Implementing Classes:
DummyContinuouslyScannable,QexafsScannable,QexafsTestingScannable,TurboXasScannable,ZebraQexafsScannable
This operates a device whose operation sends out trigger signals to HistogramDetectors to collect data.
Such Scannables will be used in ContinuousScans.
-
Field Summary
Fields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLEFields inherited from interface gda.device.ScannableMotion
FIRSTINPUTLIMITSFields inherited from interface gda.device.ScannableMotionUnits
HARDWAREUNITS, USERUNITS -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateEnergy(int frameIndex) As this scannable controls the motion, it is responsible for knowing the energy at each framevoidOnce move and data collection complete, reverts any hardware settings etc.intThe actual hardware might not be able to return exactly the numbner of points requested.voidPerform the move based on the supplied continuous parameters.voidPrepare hardware for the continuous move.voidsetContinuousParameters(ContinuousParameters parameters) Sets the parameters which define the continuous movement to useMethods 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, 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, waitWhileBusyMethods inherited from interface gda.device.ScannableMotion
a, ar, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, getLowerGdaLimits, getNumberTries, getOffset, getScalingFactor, getTolerances, getUpperGdaLimits, r, setLowerGdaLimits, setLowerGdaLimits, setNumberTries, setOffset, setScalingFactor, setTolerance, setTolerances, setUpperGdaLimits, setUpperGdaLimitsMethods inherited from interface gda.device.ScannableMotionUnits
addAcceptableUnit, getAcceptableUnits, getHardwareUnitString, getUserUnits, setHardwareUnitString, setOffset, setUserUnits
-
Method Details
-
setContinuousParameters
Sets the parameters which define the continuous movement to use- Parameters:
parameters-
-
getContinuousParameters
ContinuousParameters getContinuousParameters()- Returns:
- ContinuousParameters
-
prepareForContinuousMove
Prepare hardware for the continuous move. This assumes that continuous parameters have been supplied.- Throws:
DeviceException
-
getNumberOfDataPoints
int getNumberOfDataPoints()The actual hardware might not be able to return exactly the numbner of points requested. This method returns the actaul number the scan should expect.- Returns:
- int - the number of data points which would be actually returned based on the given ContinuousParameters
-
performContinuousMove
Perform the move based on the supplied continuous parameters.- Throws:
DeviceException
-
continuousMoveComplete
Once move and data collection complete, reverts any hardware settings etc. set for the move.- Throws:
DeviceException
-
calculateEnergy
As this scannable controls the motion, it is responsible for knowing the energy at each frame- Parameters:
frameIndex-- Returns:
- double energy in eV of the given frame
- Throws:
DeviceException
-