Package uk.ac.gda.server.ncd.subdetector
Class NcdPressureCell
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.NcdPressureCell
- 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 TypeMethodDescriptionvoidatScanStart(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.getCell()int[]doubledoubleintintThe 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.booleanChecks to see if the object is already configured.voidRe-initialisation of values and states.voidsetCell(PressureCell cell) voidsetDataDimensions(int[] detectorSize) voidsetInnerPath(String innerPath) voidsetJumpFromPressure(double jumpFromPressure) voidsetJumpPressures(double from, double to) voidsetJumpToPressure(double jumpToPressure) voidsetSamplesAfter(int samplesAfter) voidsetSamplesBefore(int samplesBefore) voidstart()voidstop()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, atScanEnd, atScanStart, close, getAttribute, getDetector, getDetectorProperties, getInterpretation, getMask, getMemorySize, getPixelSize, getPostScanActions, getPreScanActions, getSerialNumber, getTreeName, removePostScanAction, removePreScanAction, restoreAttributeMap, setAttribute, setCollectionTime, setDetector, setDetectorType, setInterpretation, setMask, setMetaProviders, setPixelSize, 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
setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartupMethods inherited from interface gda.device.Device
getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
NcdPressureCell
public NcdPressureCell()
-
-
Method Details
-
setJumpPressures
public void setJumpPressures(double from, double to) -
atScanStart
- Specified by:
atScanStartin interfaceINcdSubDetector- Overrides:
atScanStartin classNcdSubDetector- Throws:
DeviceException
-
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
-
isConfigured
public boolean isConfigured()Description copied from interface:ConfigurableChecks to see if the object is already configured.- Specified by:
isConfiguredin interfaceConfigurable- Overrides:
isConfiguredin classConfigurableBase- Returns:
- return
trueif configuredfalseotherwise
-
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
-
clear
- Specified by:
clearin interfaceINcdSubDetector- Overrides:
clearin classNcdSubDetector- Throws:
DeviceException
-
start
- Specified by:
startin interfaceINcdSubDetector- Overrides:
startin classNcdSubDetector- Throws:
DeviceException
-
stop
- Specified by:
stopin interfaceINcdSubDetector- Overrides:
stopin classNcdSubDetector- Throws:
DeviceException
-
getDetectorType
- Specified by:
getDetectorTypein interfaceINcdSubDetector- Overrides:
getDetectorTypein classNcdSubDetector
-
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
-
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
-
getCell
-
setCell
-
getSamplesAfter
public int getSamplesAfter() -
setSamplesAfter
public void setSamplesAfter(int samplesAfter) -
getSamplesBefore
public int getSamplesBefore() -
setSamplesBefore
public void setSamplesBefore(int samplesBefore) -
setJumpFromPressure
public void setJumpFromPressure(double jumpFromPressure) -
getJumpFromPressure
public double getJumpFromPressure() -
setJumpToPressure
public void setJumpToPressure(double jumpToPressure) -
getJumpToPressure
public double getJumpToPressure() -
getInnerPath
-
setInnerPath
-