Package uk.ac.gda.server.ncd.subdetector
Class NcdTetrammDetector
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.NcdTetrammDetector
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,INcdSubDetector
-
Field Summary
Fields 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 TypeMethodDescriptionvoidvoidatScanStart(ScanInformation info) voidclear()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.intint[]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.voidsetChannel(int channel) voidsetController(NcdTetrammController controller) voidsetDataDimensions(int[] detectorSize) voidsetInnerPath(String path) voidvoidstart()voidstop()voidupdateFrames(Collection<FrameSet> frames) voidwriteout(int frames, NXDetectorData dataTree) add detector data for frames to the returned data typeMethods inherited from class uk.ac.gda.server.ncd.subdetector.NcdSubDetector
addMetadata, addPostScanAction, addPreScanAction, atScanStart, close, getAttribute, getDetector, getDetectorProperties, getDetectorType, getInterpretation, getMask, getPostScanActions, getPreScanActions, getSerialNumber, getTreeName, reconfigure, removePostScanAction, removePreScanAction, restoreAttributeMap, setAttribute, setCollectionTime, setDetector, setDetectorType, setInterpretation, setMask, setMetaProviders, setPixelSize, setPostScanActions, setPreScanActions, setSerialNumber, 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
-
Constructor Details
-
NcdTetrammDetector
public NcdTetrammDetector()
-
-
Method Details
-
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
-
start
- Specified by:
startin interfaceINcdSubDetector- Overrides:
startin classNcdSubDetector- Throws:
DeviceException
-
stop
- Specified by:
stopin interfaceINcdSubDetector- Overrides:
stopin classNcdSubDetector- Throws:
DeviceException
-
clear
- Specified by:
clearin interfaceINcdSubDetector- Overrides:
clearin classNcdSubDetector- Throws:
DeviceException
-
atScanStart
- Specified by:
atScanStartin interfaceINcdSubDetector- Overrides:
atScanStartin classNcdSubDetector- Throws:
DeviceException
-
atScanEnd
- Specified by:
atScanEndin interfaceINcdSubDetector- Overrides:
atScanEndin classNcdSubDetector- Throws:
DeviceException
-
writeout
Description copied from interface:INcdSubDetectoradd detector data for frames to the returned data type- Specified by:
writeoutin interfaceINcdSubDetector- Overrides:
writeoutin classNcdSubDetector- Parameters:
frames-dataTree-- Throws:
DeviceException
-
getMemorySize
- Specified by:
getMemorySizein interfaceINcdSubDetector- Overrides:
getMemorySizein classNcdSubDetector- Throws:
DeviceException
-
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
-
setDataDimensions
- Specified by:
setDataDimensionsin interfaceINcdSubDetector- Overrides:
setDataDimensionsin classNcdSubDetector- Throws:
DeviceException
-
getDataDimensions
- Specified by:
getDataDimensionsin interfaceINcdSubDetector- Overrides:
getDataDimensionsin 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
-
setTimer
- Specified by:
setTimerin interfaceINcdSubDetector- Overrides:
setTimerin classNcdSubDetector
-
updateFrames
-
getController
-
setController
-
getChannel
public int getChannel() -
setChannel
public void setChannel(int channel) -
getInnerPath
-
setInnerPath
-