Package uk.ac.gda.server.ncd.subdetector
Class NcdWireDetector
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.NcdWireDetector
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,INcdSubDetector
- Direct Known Subclasses:
NcdTimesDetector
A class to represent a detector for NCD.
-
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidclear()voidclose()Close and unconfigure the device.voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.int[]intdoubleGet the size of pixels in x (for 1d detectors) or x and y (for 2d detectors)The supported dimensions are obtained firstly from the XML Spring configuration and if not there will try a detector attribute "DataDimensions" else it will fallback to the currently selected data dimensions.booleandouble[]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) voidRe-initialisation of values and states.voidsetDataDimensions(int[] detectorSize) voidvoidsetPixelSize(double pixelsize) voidsetTransposedData(boolean transposedData) voidstart()voidstop()voidwriteout(int frames, NXDetectorData nxdata) add detector data for frames to the returned data typeMethods inherited from class uk.ac.gda.server.ncd.subdetector.NcdSubDetector
addMetadata, addPostScanAction, addPreScanAction, atScanEnd, atScanStart, 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
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.device.Device
getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Field Details
-
memory
-
transposedData
protected boolean transposedData
-
-
Constructor Details
-
NcdWireDetector
public NcdWireDetector()
-
-
Method Details
-
isTransposedData
public boolean isTransposedData() -
setTransposedData
public void setTransposedData(boolean transposedData) -
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classNcdSubDetector- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classNcdSubDetector- Throws:
FactoryException
-
writeout
Description copied from interface:INcdSubDetectoradd detector data for frames to the returned data type- Specified by:
writeoutin interfaceINcdSubDetector- Overrides:
writeoutin classNcdSubDetector- Parameters:
frames-nxdata-- Throws:
DeviceException
-
close
Description copied from interface:DeviceClose and unconfigure the device.- Specified by:
closein interfaceDevice- Overrides:
closein classNcdSubDetector- Throws:
DeviceException
-
getMemory
- Returns:
- Returns the memory.
-
setMemory
- Parameters:
memory- The memory to set.
-
clear
- Specified by:
clearin interfaceINcdSubDetector- Overrides:
clearin classNcdSubDetector- Throws:
DeviceException
-
getMemorySize
- Specified by:
getMemorySizein interfaceINcdSubDetector- Overrides:
getMemorySizein classNcdSubDetector- Throws:
DeviceException
-
start
- Specified by:
startin interfaceINcdSubDetector- Overrides:
startin classNcdSubDetector- Throws:
DeviceException
-
stop
- Specified by:
stopin interfaceINcdSubDetector- Overrides:
stopin classNcdSubDetector- Throws:
DeviceException
-
getDataDimensions
- Specified by:
getDataDimensionsin interfaceINcdSubDetector- Overrides:
getDataDimensionsin classNcdSubDetector- Throws:
DeviceException
-
setDataDimensions
- Specified by:
setDataDimensionsin interfaceINcdSubDetector- Overrides:
setDataDimensionsin classNcdSubDetector- Throws:
DeviceException
-
read
- Throws:
DeviceException
-
read
- Throws:
DeviceException
-
readFloat
- Throws:
DeviceException
-
readFloat
- Throws:
DeviceException
-
getDetectorType
- Specified by:
getDetectorTypein interfaceINcdSubDetector- Overrides:
getDetectorTypein classNcdSubDetector
-
getSupportedDimensions
Description copied from class:NcdSubDetectorThe supported dimensions are obtained firstly from the XML Spring configuration and if not there will try a detector attribute "DataDimensions" else it will fallback to the currently selected data dimensions.- Specified by:
getSupportedDimensionsin interfaceINcdSubDetector- Overrides:
getSupportedDimensionsin classNcdSubDetector- Throws:
DeviceException
-
getPixelSize
Description copied from interface:INcdSubDetectorGet the size of pixels in x (for 1d detectors) or x and y (for 2d detectors)- Specified by:
getPixelSizein interfaceINcdSubDetector- Overrides:
getPixelSizein classNcdSubDetector- Returns:
- pixel size in metres
- Throws:
DeviceException
-
setPixelSize
- Overrides:
setPixelSizein classNcdSubDetector- Throws:
DeviceException
-