Package gda.device
Interface FilterArray
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable
- All Known Implementing Classes:
DummyFilterArray,FilterArrayBase
Interface to control an array of filters for beam attenuation, for example EpicsFilterArray.
-
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.booleanReturns true if a monochromator's setting is being used in the calculations rather than the energy supplied via the setCalculationEnergy method.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.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 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
-
Method Details
-
getAbsorption
Returns 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
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 supplied- Parameters:
absorption- - a double between 0 and 1- Throws:
DeviceException
-
getTransmission
Returns 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
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.- Parameters:
transmission- the transmission value- Throws:
DeviceException
-
getCalculationEnergy
Returns the energy value currently being used to calculate the absorption and transmission.- Returns:
- the energy value
- Throws:
DeviceException
-
setCalculationEnergy
Sets 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
Returns the wavelength value currently being used to calculate the absorption and transmission.- Returns:
- the wavelength
- Throws:
DeviceException
-
setCalculationWavelength
Sets 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
-
isUsingMonoEnergy
Returns true if a monochromator's setting is being used in the calculations rather than the energy supplied via the setCalculationEnergy method.- Returns:
- true if a monochromator's setting is being used in the calculations
- Throws:
DeviceException
-
setUseMonoEnergy
Tells 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.
- Parameters:
useEnergy- perform calculations using the current setting of a monochromator- Throws:
DeviceException
-