Package gda.device.filterarray
Class FilterArrayBase
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.filterarray.FilterArrayBase
- All Implemented Interfaces:
Device,FilterArray,Configurable,Findable,gda.observable.IObservable
- Direct Known Subclasses:
DummyFilterArray
Abstract base cdlass for the FilterArray interface.
-
Field Summary
FieldsFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if a monochromator's setting is being used in the calculations rather than the energy supplied via the setCalculationEnergy method.voidsetUseMonoEnergy(boolean useEnergy) Tells the filter array to perform calculations using the current setting of a monochromator rather than a value supplied via its setCalculationEnergy method.Methods 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
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.device.FilterArray
getAbsorption, getCalculationEnergy, getCalculationWavelength, getTransmission, setAbsorption, setCalculationEnergy, setCalculationWavelength, setTransmissionMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Field Details
-
useMonoEnergy
protected boolean useMonoEnergy
-
-
Constructor Details
-
FilterArrayBase
public FilterArrayBase()
-
-
Method Details
-
isUsingMonoEnergy
Description copied from interface:FilterArrayReturns true if a monochromator's setting is being used in the calculations rather than the energy supplied via the setCalculationEnergy method.- Specified by:
isUsingMonoEnergyin interfaceFilterArray- Returns:
- true if a monochromator's setting is being used in the calculations
- Throws:
DeviceException
-
setUseMonoEnergy
Description copied from interface:FilterArrayTells the filter array to perform calculations using the current setting of a monochromator rather than a value supplied via its setCalculationEnergy method.If the monochromator changes energy and this method is set to true, then the filter array is NOT expected to automatically adjust until another call of either setTransmission or setAbsorption.
- Specified by:
setUseMonoEnergyin interfaceFilterArray- Parameters:
useEnergy- perform calculations using the current setting of a monochromator- Throws:
DeviceException
-