Package gda.scan
Class SortedScanDataPointCache
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.scan.DataPointCache
gda.scan.SortedScanDataPointCache
- All Implemented Interfaces:
Configurable,Findable,IScanDataPointObserver,gda.observable.IObserver
This is a class designed to cache all the data from scan data points. It allows quick retrieval
of sorted basic scan data for use in Jython or by scan processing.
Note: this class stores values as returned by IScanDataPoint.getAllValuesAsDoubles(), which attempts to
convert all values to a Double. Any value that cannot be converted to a Double is replaced with null.
- Since:
- 9.8
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd aIScanDataPointto this cache.getPositionsFor(String scannableName) Extract a list of values for the given field name from the cached data.protected voidinitialise(IScanDataPoint sdp) Run any initialisation required at the start of a scan.Methods inherited from class gda.scan.DataPointCache
configure, updateMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
SortedScanDataPointCache
public SortedScanDataPointCache()
-
-
Method Details
-
addDataPoint
Description copied from class:DataPointCacheAdd aIScanDataPointto this cache. This will be called whenever a data point is produced by theIScanDataPointProviderthis is observing.- Specified by:
addDataPointin classDataPointCache- Parameters:
sdp- The newIScanDataPointto cache
-
initialise
Description copied from class:DataPointCacheRun any initialisation required at the start of a scan. This will be called with the first point (where the currentPointNumber == 0) of each scan.- Overrides:
initialisein classDataPointCache- Parameters:
sdp- The firstIScanDataPointof the scan
-
getPositionsFor
Description copied from class:DataPointCacheExtract a list of values for the given field name from the cached data.- Specified by:
getPositionsForin classDataPointCache- Parameters:
scannableName- The field name for which to extract data- Returns:
- A list of positions for the given field
-