Package gda.px.util
Class DirectWavelengthProvider
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.px.util.DirectWavelengthProvider
- All Implemented Interfaces:
Configurable,Findable,WavelengthProvider
@ServiceInterface(WavelengthProvider.class)
public class DirectWavelengthProvider
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.Provide the current beamline wavelength in angstromsgetInEv()Provide the current beamline energy in eVMethods 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
-
DirectWavelengthProvider
public DirectWavelengthProvider()
-
-
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
-
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
-