Package gda.device.filterarray
Class DummyFilterArray
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.filterarray.FilterArrayBase
gda.device.filterarray.DummyFilterArray
- All Implemented Interfaces:
Device,FilterArray,Configurable,Findable,gda.observable.IObservable
Simulated implementation of the FilterArray interface.
-
Field Summary
Fields inherited from class gda.device.filterarray.FilterArrayBase
useMonoEnergyFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the current absorption level.doubleReturns the energy value currently being used to calculate the absorption and transmission.doubleReturns the wavelength value currently being used to calculate the absorption and transmission.doubleReturns the current transmission level.voidsetAbsorption(double absorption) Tells the filter array to move so that, for the current energy used in its calculations, the absorption is as close as possible to the value suppliedvoidsetCalculationEnergy(double energy) Sets the energy value which would be used to calculate the absorption and transmission if isUsingMonoEnergy return false.voidsetCalculationWavelength(double wavelength) Sets the wavelength value which would be used to calculate the absorption and transmission if isUsingMonoEnergy return false.voidsetTransmission(double transmission) Tells the filter array to move so that, for the current energy used in its calculations, the transmission is as close as possible to the value supplied.Methods inherited from class gda.device.filterarray.FilterArrayBase
isUsingMonoEnergy, setUseMonoEnergyMethods 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.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyFilterArray
public DummyFilterArray()
-
-
Method Details
-
getAbsorption
Description copied from interface:FilterArrayReturns the current absorption level. This value is calculated from the filters currently in place and the energy this device is set to work with. The value is not necessarily the value given to the object via the setAbsorption method.- Returns:
- a double between 0 and 1
- Throws:
DeviceException
-
setAbsorption
Description copied from interface:FilterArrayTells the filter array to move so that, for the current energy used in its calculations, the absorption is as close as possible to the value supplied- Parameters:
absorption- - a double between 0 and 1- Throws:
DeviceException
-
getTransmission
Description copied from interface:FilterArrayReturns the current transmission level. This value is calculated from the filters currently in place and the energy this device is set to work with. The value is not necessarily the value given to the object via the setTransmission method.- Returns:
- the current transmission level
- Throws:
DeviceException
-
setTransmission
Description copied from interface:FilterArrayTells the filter array to move so that, for the current energy used in its calculations, the transmission is as close as possible to the value supplied.- Parameters:
transmission- the transmission value- Throws:
DeviceException
-
getCalculationEnergy
Description copied from interface:FilterArrayReturns the energy value currently being used to calculate the absorption and transmission.- Returns:
- the energy value
- Throws:
DeviceException
-
setCalculationEnergy
Description copied from interface:FilterArraySets the energy value which would be used to calculate the absorption and transmission if isUsingMonoEnergy return false.- Parameters:
energy- the energy value which would be used to calculate the absorption and transmission- Throws:
DeviceException
-
getCalculationWavelength
Description copied from interface:FilterArrayReturns the wavelength value currently being used to calculate the absorption and transmission.- Returns:
- the wavelength
- Throws:
DeviceException
-
setCalculationWavelength
Description copied from interface:FilterArraySets the wavelength value which would be used to calculate the absorption and transmission if isUsingMonoEnergy return false.- Parameters:
wavelength- the wavelength value which would be used to calculate the absorption and transmission- Throws:
DeviceException
-