Class EndstationPhotonEnergyProvider
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.scannable.ScannableMotionBase
gda.device.scannable.DummyScannable
uk.ac.diamond.daq.devices.specs.phoibos.EndstationPhotonEnergyProvider
- All Implemented Interfaces:
INeXusInfoWriteable,ControllerRecord,Device,Scannable,ScannableMotion,Configurable,Findable,gda.observable.IObservable
@ServiceInterface(Scannable.class)
public class EndstationPhotonEnergyProvider
extends DummyScannable
B07-1 Choose between CCMC and PGM to return photon energy to SPECS analyser.
CCM positions is a gda.device.enumpositioner.EpicsPositionerCallback, while pgm_energy is
gda.device.scannable.TweakableScannableMotor.
As agreed with the B07-1 beamline staff:
1. CCM position name must be "Xtal_" followed by an actual photon energy except for "Out of Beam" position.
2. When CCM is in "out of beam" -> get energy from PGM, otherwise parse CCM position name.
-
Field Summary
Fields inherited from class gda.device.scannable.DummyScannable
currentPosition, incrementFields inherited from class gda.device.scannable.ScannableMotionBase
numberTries, toleranceFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLEFields inherited from interface gda.device.ScannableMotion
FIRSTINPUTLIMITS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleReturns the current position of the Scannable.voidsetCcmcPositions(Scannable ccmcPositions) voidsetCcmLowerLimit(double ccmLowerLimit) voidsetCcmPositionPrefix(String ccmPositionPrefix) voidsetCcmUpperLimit(double ccmUpperLimit) voidsetPgmEnergy(Scannable pgmEnergy) Methods inherited from class gda.device.scannable.DummyScannable
getControllerRecordName, isBusy, rawAsynchronousMoveTo, rawGetPosition, setControllerRecordName, setIncrement, setNameMethods inherited from class gda.device.scannable.ScannableMotionBase
a, addPositionValidator, ar, asynchronousMoveTo, checkPositionValid, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, completeInstantiation, externalToInternal, generateScannableLimitsReport, getAdditionalPositionValidators, getAttribute, getFirstInputLimits, getInputLimits, getInputLimits, getLimitsComponent, getLowerGdaLimits, getNumberTries, getOffset, getScalingFactor, getTolerances, getUpperGdaLimits, internalToExternal, isAt, moveTo, r, rawIsBusy, removePositionValidator, setAdditionalPositionValidators, setLimitsComponent, setLowerGdaLimits, setLowerGdaLimits, setNumberTries, setOffset, setOffsetAndScalingComponent, setScalingFactor, setTolerance, setTolerances, setUpperGdaLimits, setUpperGdaLimits, toFormattedString, writeNeXusInformation, writeNeXusInformationLimitsMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, 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
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, waitWhileBusy
-
Constructor Details
-
EndstationPhotonEnergyProvider
public EndstationPhotonEnergyProvider()
-
-
Method Details
-
getCcmPositionPrefix
-
setCcmPositionPrefix
-
getCcmLowerLimit
public double getCcmLowerLimit() -
setCcmLowerLimit
public void setCcmLowerLimit(double ccmLowerLimit) -
getCcmUpperLimit
public double getCcmUpperLimit() -
setCcmUpperLimit
public void setCcmUpperLimit(double ccmUpperLimit) -
getPgmEnergy
-
setPgmEnergy
-
getCcmcPositions
-
setCcmcPositions
-
getPosition
Description copied from class:ScannableBaseReturns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.- Specified by:
getPositionin interfaceScannable- Overrides:
getPositionin classDummyScannable- Returns:
- Current position with an element for each input and extra field. null if their are no fields.
- Throws:
DeviceException
-