Package uk.ac.gda.server.ncd.subdetector
Class NcdPilatusAD
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.NcdPilatusAD
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver,org.springframework.beans.factory.InitializingBean,INcdSubDetector,LastImageProvider
- Direct Known Subclasses:
NcdPilatusADP2
@ServiceInterface(INcdSubDetector.class)
public class NcdPilatusAD
extends NcdSubDetector
implements org.springframework.beans.factory.InitializingBean, gda.observable.IObserver, LastImageProvider
the update method has some device specific code to flag errors when triggering (gating) is attempted
outside the detector's capabilities
-
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 TypeMethodDescriptionvoidvoidvoidatScanStart(ScanInformation info) we need to initiate the file saving in here in order for that to be in line with the scanprotected DeviceExceptioncheckTiming(double shortestFrame, double longestFrame, double shortestWait, double longestWait) 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.int[]intdoubleorg.eclipse.january.dataset.DatasetvoidresetAll()voidsetController(PilatusADController controller) voidsetNxplugins(List<NXPlugin> nxplugins) voidsetThresholdkeV(double d) voidvoidstart()voidstop()voidvoidwriteout(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, getMemorySize, getPixelSize, getPostScanActions, getPreScanActions, getSerialNumber, getSupportedDimensions, getTreeName, reconfigure, removePostScanAction, removePreScanAction, restoreAttributeMap, setAttribute, setCollectionTime, setDataDimensions, 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
-
Field Details
-
controller
-
tfgMisconfigurationException
-
-
Constructor Details
-
NcdPilatusAD
public NcdPilatusAD()
-
-
Method Details
-
clear
- Specified by:
clearin interfaceINcdSubDetector- Overrides:
clearin classNcdSubDetector- Throws:
DeviceException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
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
-
getController
- Returns:
- Returns the controller.
-
getDataDimensions
- Specified by:
getDataDimensionsin interfaceINcdSubDetector- Overrides:
getDataDimensionsin classNcdSubDetector- Throws:
DeviceException
-
getStatus
- Throws:
DeviceException
-
resetAll
- Throws:
Exception
-
setController
- Parameters:
controller- The controller to set.
-
start
- Specified by:
startin interfaceINcdSubDetector- Overrides:
startin classNcdSubDetector- Throws:
DeviceException
-
stop
- Specified by:
stopin interfaceINcdSubDetector- Overrides:
stopin classNcdSubDetector- Throws:
DeviceException
-
setTimer
- Specified by:
setTimerin interfaceINcdSubDetector- Overrides:
setTimerin classNcdSubDetector
-
update
- Specified by:
updatein interfacegda.observable.IObserver- Throws:
RuntimeException
-
checkTiming
protected DeviceException checkTiming(double shortestFrame, double longestFrame, double shortestWait, double longestWait) -
setThresholdkeV
- Throws:
Exception
-
getThresholdkeV
- Throws:
Exception
-
readLastImage
- Specified by:
readLastImagein interfaceLastImageProvider- Throws:
DeviceException
-
atScanStart
we need to initiate the file saving in here in order for that to be in line with the scan- 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
-
getNxplugins
-
setNxplugins
-