Package gda.device.detector.xmap
Class DummyXmapControllerAreaDetector
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.detector.xmap.DummyXmapControllerBase
gda.device.detector.xmap.DummyXmapControllerAreaDetector
- All Implemented Interfaces:
XmapController,Device,Configurable,Findable,gda.observable.IObservable
Dummy XmapController that delegates file writing to an Area Detector
This is intended to simulate the configuration on (for example) I08, where the Xmap controller transmits data to a (partial) Area Detector on another
machine.
It sets the area detector's Y dimension to 1 to simulate a spectrum: the existing Y value is restored at the end.
Before using this, check that the simulator is set up in the following way:
- Camera image mode is set to Single
- ROI X size = invalid input: '<'some fairly large number e.g. 256>
- ROI Y size = 1
- Stats array port = CAM.roi
- HDF array port = CAM.stat
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all MCAs and starts data collectionvoidDefault 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[][]getData()Returns the twoD data array of the all the MCAsint[]getData(int mcaNumber) Returns the data array of the specified MCAgetNdRoi()voidsetAdDetector(ADDetector adDetector) voidtoString()Methods inherited from class gda.device.detector.xmap.DummyXmapControllerBase
deleteROIs, getAcquisitionTime, getEvents, getICR, getNumberOfBins, getNumberOfElements, getNumberOfROIs, getOCR, getReadRate, getRealTime, getROICounts, getROIParameters, getROIs, getROIs, getROIsSum, getStatus, getStatusRate, setAcquisitionTime, setNthROI, setNumberOfBins, setNumberOfElements, setNumberOfROIs, setReadRate, setReadRate, setROI, setROIs, setStatusRate, setStatusRate, start, startDummyAcquisition, stop, stopDummyAcquisitionMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyXmapControllerAreaDetector
public DummyXmapControllerAreaDetector()
-
-
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 classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
clearAndStart
Description copied from interface:XmapControllerClears all MCAs and starts data collection- Specified by:
clearAndStartin interfaceXmapController- Overrides:
clearAndStartin classDummyXmapControllerBase- Throws:
DeviceException
-
getData
Description copied from interface:XmapControllerReturns the data array of the specified MCA- Parameters:
mcaNumber-- Returns:
- data array
- Throws:
DeviceException
-
getData
Description copied from interface:XmapControllerReturns the twoD data array of the all the MCAs- Returns:
- data array
- Throws:
DeviceException
-
getAdDetector
-
setAdDetector
-
getNdRoi
-
setNdRoi
-
toString
- Overrides:
toStringin classDummyXmapControllerBase
-