Package gda.px.util
Class ConvertedWavelengthProvider
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.px.util.ConvertedWavelengthProvider
- All Implemented Interfaces:
Configurable,Findable,WavelengthProvider
- Direct Known Subclasses:
DcmAndDmmConvertedWavelengthProvider
@ServiceInterface(WavelengthProvider.class)
public class ConvertedWavelengthProvider
extends FindableConfigurableBase
implements WavelengthProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault 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.protected static ScannableMotionUnitsfindScannableOrFail(AtomicReference<ScannableMotionUnits> scannable, String scannableName) Provide the current beamline wavelength in angstromsgetInEv()Provide the current beamline energy in eVstatic ScannableMotionUnitsstatic ScannableMotionUnitsprotected voidsetEnergyScannable(AtomicReference<ScannableMotionUnits> scannable, String scannableName) protected voidsetWavelengthScannable(AtomicReference<ScannableMotionUnits> scannable, String scannableName) Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.px.util.WavelengthProvider
publishWavelength
-
Constructor Details
-
ConvertedWavelengthProvider
public ConvertedWavelengthProvider()
-
-
Method Details
-
findScannableOrFail
protected static ScannableMotionUnits findScannableOrFail(AtomicReference<ScannableMotionUnits> scannable, String scannableName) throws DeviceException - Throws:
DeviceException
-
getLocalEnergyScannable
- Throws:
DeviceException
-
getLocalWavelengthScannable
- Throws:
DeviceException
-
getEnergyScannable
- Throws:
DeviceException
-
getWavelengthScannable
- Throws:
DeviceException
-
setEnergyScannable
protected void setEnergyScannable(AtomicReference<ScannableMotionUnits> scannable, String scannableName) -
setWavelengthScannable
protected void setWavelengthScannable(AtomicReference<ScannableMotionUnits> scannable, String scannableName) -
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
-
getInAngstroms
Description copied from interface:WavelengthProviderProvide the current beamline wavelength in angstroms- Specified by:
getInAngstromsin interfaceWavelengthProvider- Returns:
- double angstroms
- Throws:
DeviceException
-
getInEv
Description copied from interface:WavelengthProviderProvide the current beamline energy in eV- Specified by:
getInEvin interfaceWavelengthProvider- Returns:
- double ev
- Throws:
DeviceException
-