Package gda.device
Interface Analyser
- All Superinterfaces:
Configurable,Detector,Device,Findable,gda.observable.IObservable,Scannable
- All Known Subinterfaces:
IEpicsMCA,IEpicsMCASimple
- All Known Implementing Classes:
AnalyserBase,DummyEpicsMcaForXmap,EpicsMCA,EpicsMCASimple
An interface for a distributed Analyser class
-
Field Summary
Fields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegionOfInterest(int regionIndex, double regionLow, double regionHigh, int regionBackground, double regionPreset, String regionName) Method to add a new region of interest to the analyservoidclear()Method to erase the analyzer data, sets all channels to zerovoiddeleteRegionOfInterest(int regionIndex) Method to remove a region of interest from the analyserReturns calibration parameters for the analyser.getData()Method to get data from the analyserMethod to get the elapsed parameters for the analyser Not sure if it is specific to MCAlongMethod to read the number of channels for the analyserintMethod to read the number of regions for the analyserMethod to read the preset parameters for the analyserMethod to get regions of interest for the analyserdouble[][]Method to return net and total counts of each region of interest in the analyserlongMethod to return the current sequence number of the analyser.voidsetCalibration(Object calibrate) Sets the calibration parameters for the analyser.voidWrites data to the AnalyservoidsetNumberOfChannels(long channels) Set number of ChannelsvoidsetNumberOfRegions(int regions) Set number of regionsvoidsetPresets(Object data) Sets the preset parameters for the AnalyservoidsetRegionsOfInterest(Object lowHigh) Sets the regions of interest for the AnalyservoidsetSequence(long sequence) Sets sequence for the AnalyservoidMethod to turn on acquisition of the analyservoidMethod to turn off acquisition of the analyserMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
collectData, createsOwnFiles, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, getStatus, prepareForCollection, readout, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString
-
Method Details
-
startAcquisition
Method to turn on acquisition of the analyser- Throws:
DeviceException
-
stopAcquisition
Method to turn off acquisition of the analyser- Throws:
DeviceException
-
addRegionOfInterest
void addRegionOfInterest(int regionIndex, double regionLow, double regionHigh, int regionBackground, double regionPreset, String regionName) throws DeviceException Method to add a new region of interest to the analyser- Parameters:
regionIndex- the region numberregionLow- the start value of regionregionHigh- the end value of regionregionBackground- the region backgroundregionPreset- the region presetregionName- the region name- Throws:
DeviceException
-
deleteRegionOfInterest
Method to remove a region of interest from the analyser- Parameters:
regionIndex- the region number- Throws:
DeviceException
-
clear
Method to erase the analyzer data, sets all channels to zero- Throws:
DeviceException
-
getCalibrationParameters
Returns calibration parameters for the analyser. Return calibration offset, calibration slope, calibration quadratic , two theta angle of the detector.- Returns:
- calibration parameters
- Throws:
DeviceException
-
getData
Method to get data from the analyser- Returns:
- the analyser data
- Throws:
DeviceException
-
getElapsedParameters
Method to get the elapsed parameters for the analyser Not sure if it is specific to MCA- Returns:
- the elapsed paramters
- Throws:
DeviceException
-
getPresets
Method to read the preset parameters for the analyser- Returns:
- the preset parameters
- Throws:
DeviceException
-
getNumberOfRegions
Method to read the number of regions for the analyser- Returns:
- the number of regions
- Throws:
DeviceException
-
getNumberOfChannels
Method to read the number of channels for the analyser- Returns:
- the number of channels
- Throws:
DeviceException
-
getRegionsOfInterest
Method to get regions of interest for the analyser- Returns:
- the regions of interest
- Throws:
DeviceException
-
getRegionsOfInterestCount
Method to return net and total counts of each region of interest in the analyser- Returns:
- two dimensional array of net and total counts
- Throws:
DeviceException
-
getSequence
Method to return the current sequence number of the analyser. Might be specific to MCAs- Returns:
- the current sequence number
- Throws:
DeviceException
-
setCalibration
Sets the calibration parameters for the analyser.- Parameters:
calibrate- the calibration parameters to set- Throws:
DeviceException
-
setData
Writes data to the Analyser- Parameters:
data- the data to write back to the analyser- Throws:
DeviceException
-
setPresets
Sets the preset parameters for the Analyser- Parameters:
data- the preset parameters- Throws:
DeviceException
-
setRegionsOfInterest
Sets the regions of interest for the Analyser- Parameters:
lowHigh- the upper and lower bounds of the region- Throws:
DeviceException
-
setSequence
Sets sequence for the Analyser- Parameters:
sequence- the sequence- Throws:
DeviceException
-
setNumberOfRegions
Set number of regions- Parameters:
regions- the number of regions to set- Throws:
DeviceException
-
setNumberOfChannels
Set number of Channels- Parameters:
channels- the number of channels to set- Throws:
DeviceException
-