Package gda.device.detector.countertimer
Class PositionStreamingTfgScaler
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.detector.DetectorBase
gda.device.detector.countertimer.CounterTimerBase
gda.device.detector.countertimer.TFGCounterTimer
gda.device.detector.countertimer.TfgScaler
gda.device.detector.countertimer.TfgScalerWithDarkCurrent
gda.device.detector.countertimer.TfgScalerWithLogValues
gda.device.detector.countertimer.PositionStreamingTfgScaler
- All Implemented Interfaces:
CounterTimer,Detector,DarkCurrentDetector,Device,Scannable,PositionCallableProvider<double[]>,PositionInputStream<double[]>,Configurable,Findable,gda.observable.IObservable,Serializable
public class PositionStreamingTfgScaler
extends TfgScalerWithLogValues
implements PositionCallableProvider<double[]>, PositionInputStream<double[]>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.device.detector.countertimer.TfgScalerWithDarkCurrent
TfgScalerWithDarkCurrent.DarkCurrentBean -
Field Summary
FieldsFields inherited from class gda.device.detector.countertimer.TfgScalerWithLogValues
LNI0IT_LABEL, LNITIREF_LABELFields inherited from class gda.device.detector.countertimer.TfgScaler
numChannelsToRead, scaler, timeChannelRequiredFields inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2Fields inherited from class gda.device.detector.countertimer.CounterTimerBase
slave, timerFields 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 TypeMethodDescriptionvoidCalled for every Scannable at the end of every scanvoidCalled for every Scannable at the start of every scanvoidTells the detector to begin to collect a set of data, then returns immediately.Callable<double[]> Double[]getTimes()List<double[]> read(int maxToRead) Return at least one element, but no more than maxToRead, waiting until able to do so.voidsetDaServer(DAServer daServer) voidMethods inherited from class gda.device.detector.countertimer.TfgScalerWithLogValues
addScalerOutputConfig, appendLogValues, clearScalerOutputConfig, configureScalerOutputProcessor, getI0ScalerChannel, getiRefScalerChannel, getItScalerChannel, getScalerOutputConfig, getScalerOutputProcessor, getTimeChannelName, getTotalChans, getUseCustomisedOutput, isOutputLogValues, performCorrections, readFrame, readout, restoreExtraNamesFormats, saveExtraNamesFormats, setI0ScalerChannel, setiRefScalerChannel, setItScalerChannel, setOutputLogValues, setScalerOutputConfig, setTimeChannelName, setUseCustomisedOutputMethods inherited from class gda.device.detector.countertimer.TfgScalerWithDarkCurrent
acquireDarkCurrent, adjustChannelForDarkCurrent, adjustForDarkCurrent, atScanEnd, atScanStart, getDarkCurrent, getDarkCurrentCollectionTime, getDarkCurrentResults, isDarkCurrentRequired, isUseReset, setDarkCurrent, setDarkCurrentCollectionTime, setDarkCurrentRequired, setUseResetMethods inherited from class gda.device.detector.countertimer.TfgScaler
addFrameSet, addFrameSet, atCommandFailure, clearFrameSets, configure, countAsync, createsOwnFiles, getAttribute, getDescription, getDetectorID, getDetectorType, getFirstDataChannel, getInputNames, getMinimumReadoutDelay, getNumChannelsToRead, getScaler, getScalerName, isTimeChannelRequired, readChannel, readChans, readFrame, readoutCurrentFrame, readoutFrames, setAttribute, setFirstDataChannel, setMinimumReadoutDelay, setNumChannelsToRead, setScaler, setScalerName, setTimeChannelRequired, start, stopMethods inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2, setTFGv2Methods inherited from class gda.device.detector.countertimer.CounterTimerBase
getCurrentCycle, getCurrentFrame, getMaximumFrames, getStatus, getTimer, getTimerName, isSlave, loadFrameSets, restart, setCycles, setSlave, setTimer, setTimerNameMethods inherited from class gda.device.detector.DetectorBase
asynchronousMoveTo, checkPositionValid, endCollection, getCollectionTime, getDataDimensions, getPosition, isBusy, prepareForCollection, setCollectionTime, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, externalToInternal, getExtraNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
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
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
endCollection, getCollectionTime, getDataDimensions, getFileStructure, prepareForCollection, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, checkPositionValid, getExtraNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString
-
Field Details
-
daServer
-
-
Constructor Details
-
PositionStreamingTfgScaler
public PositionStreamingTfgScaler()
-
-
Method Details
-
getTimes
-
setTimes
-
getDaServer
-
setDaServer
-
read
public List<double[]> read(int maxToRead) throws NoSuchElementException, InterruptedException, DeviceException Description copied from interface:PositionInputStreamReturn at least one element, but no more than maxToRead, waiting until able to do so. The parameter maxToRead is there to protect the caller from potentially receiving too much data in call, not to meet the needs of the detector.- Specified by:
readin interfacePositionInputStream<double[]>- Parameters:
maxToRead- the maximum number of elements to read. Must be one or more.- Returns:
- at least one element from the head of the stream, oldest on the left
- Throws:
NoSuchElementException- if the stream will have nothing to returnInterruptedExceptionDeviceException
-
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- Overrides:
collectDatain classTfgScaler- Throws:
DeviceException
-
getPositionCallable
- Specified by:
getPositionCallablein interfacePositionCallableProvider<double[]>- Throws:
DeviceException
-
atScanLineStart
Description copied from class:ScannableBaseCalled for every Scannable at the start of every scan Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanLineStartin interfaceScannable- Overrides:
atScanLineStartin classTfgScaler- Throws:
DeviceException- See Also:
-
atScanLineEnd
Description copied from class:ScannableBaseCalled for every Scannable at the end of every scan Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanLineEndin interfaceScannable- Overrides:
atScanLineEndin classScannableBase- Throws:
DeviceException- See Also:
-