Package uk.ac.gda.server.ncd.subdetector
Class SingleScalerWithScalingAndOffset
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
uk.ac.gda.server.ncd.subdetector.NcdSubDetector
uk.ac.gda.server.ncd.subdetector.NcdScalerDetector
uk.ac.gda.server.ncd.subdetector.SingleScalerWithScalingAndOffset
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,IHaveExtraNames,INcdSubDetector
@ServiceInterface(INcdSubDetector.class)
public class SingleScalerWithScalingAndOffset
extends NcdScalerDetector
implements IHaveExtraNames
A class to represent a detector for NCD.
-
Field Summary
Fields inherited from class uk.ac.gda.server.ncd.subdetector.NcdScalerDetector
memoryFields inherited from class uk.ac.gda.server.ncd.subdetector.NcdSubDetector
attributeMap, configuration, description, detector, detectorType, interpretation, mask, metaProviders, pixelSizeFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface uk.ac.gda.server.ncd.subdetector.INcdSubDetector
descriptionLabel, SERIAL_NUMBER_LABEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMonitorData(NXDetectorData nxdata, String monitorName, String dataName, NexusGroupData data_sds, String units, Integer signalVal, String description, String local_name) Adds the specified data to the named detectorvoidvoidintString[]getLabel()static INexusTreegetMonitorTree(NXDetectorData nxdata, String monitorName) returns the names detectors treegetUnits()double[]read(int frame) double[]read(int x, int y, int t, int dx, int dy, int dt) float[]readFloat(int frame) float[]readFloat(int x, int y, int t, int dx, int dy, int dt) voidsetChannel(int channel) voidvoidsetScalingAndOffset(ScalingAndOffset scalingAndOffset) voidvoidstop()voidwriteout(int frames, NXDetectorData nxdata) add detector data for frames to the returned data typeMethods inherited from class uk.ac.gda.server.ncd.subdetector.NcdScalerDetector
clear, close, configure, getDataDimensions, getDetectorType, getMemory, getMemorySize, getPixelSize, getSupportedDimensions, reconfigure, setDataDimensions, setMemory, setPixelSize, startMethods inherited from class uk.ac.gda.server.ncd.subdetector.NcdSubDetector
addMetadata, addPostScanAction, addPreScanAction, atScanStart, getAttribute, getDetector, getDetectorProperties, getInterpretation, getMask, getPostScanActions, getPreScanActions, getSerialNumber, getTreeName, removePostScanAction, removePreScanAction, restoreAttributeMap, setAttribute, setCollectionTime, setDetector, setDetectorType, setInterpretation, setMask, setMetaProviders, setPostScanActions, setPreScanActions, setSerialNumber, setTimer, toStringMethods inherited from class gda.device.DeviceBase
addIObserver, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, 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.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface uk.ac.gda.server.ncd.subdetector.INcdSubDetector
atScanStart, clear, getDataDimensions, getDetectorProperties, getDetectorType, getMemorySize, getPixelSize, getSerialNumber, getSupportedDimensions, setDataDimensions, setTimer, startMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
SingleScalerWithScalingAndOffset
public SingleScalerWithScalingAndOffset()
-
-
Method Details
-
writeout
Description copied from interface:INcdSubDetectoradd detector data for frames to the returned data type- Specified by:
writeoutin interfaceINcdSubDetector- Overrides:
writeoutin classNcdScalerDetector- Parameters:
frames-nxdata-- Throws:
DeviceException
-
addMonitorData
public static void addMonitorData(NXDetectorData nxdata, String monitorName, String dataName, NexusGroupData data_sds, String units, Integer signalVal, String description, String local_name) Adds the specified data to the named detector- Parameters:
monitorName- The name of the detector to add data todata_sds- The implementation of NexusGroupData to be reported as the dataunits- - if not null a units attribute is addedsignalVal- - if not null a signal attribute is added
-
getMonitorTree
returns the names detectors tree- Parameters:
monitorName- if null or empty it returns the first- Returns:
- the NexusTree associated with the named detector
-
getLabel
-
setLabel
-
getUnits
-
setUnits
-
getChannel
public int getChannel() -
setChannel
public void setChannel(int channel) -
getScalingAndOffset
-
setScalingAndOffset
-
atScanStart
- Specified by:
atScanStartin interfaceINcdSubDetector- Overrides:
atScanStartin classNcdSubDetector- Throws:
DeviceException
-
atScanEnd
- Specified by:
atScanEndin interfaceINcdSubDetector- Overrides:
atScanEndin classNcdSubDetector- Throws:
DeviceException
-
stop
- Specified by:
stopin interfaceINcdSubDetector- Overrides:
stopin classNcdScalerDetector- Throws:
DeviceException
-
getExtraNames
- Specified by:
getExtraNamesin interfaceIHaveExtraNames
-
readFloat
- Overrides:
readFloatin classNcdScalerDetector- Throws:
DeviceException
-
read
- Overrides:
readin classNcdScalerDetector- Throws:
DeviceException
-
readFloat
- Overrides:
readFloatin classNcdScalerDetector- Throws:
DeviceException
-
read
- Overrides:
readin classNcdScalerDetector- Throws:
DeviceException
-