Class FilterArrayBase

All Implemented Interfaces:
Device, FilterArray, Configurable, Findable, gda.observable.IObservable
Direct Known Subclasses:
DummyFilterArray

public abstract class FilterArrayBase extends DeviceBase implements FilterArray
Abstract base cdlass for the FilterArray interface.
  • Field Details

    • useMonoEnergy

      protected boolean useMonoEnergy
  • Constructor Details

    • FilterArrayBase

      public FilterArrayBase()
  • Method Details

    • isUsingMonoEnergy

      public boolean isUsingMonoEnergy() throws DeviceException
      Description copied from interface: FilterArray
      Returns true if a monochromator's setting is being used in the calculations rather than the energy supplied via the setCalculationEnergy method.
      Specified by:
      isUsingMonoEnergy in interface FilterArray
      Returns:
      true if a monochromator's setting is being used in the calculations
      Throws:
      DeviceException
    • setUseMonoEnergy

      public void setUseMonoEnergy(boolean useEnergy) throws DeviceException
      Description copied from interface: FilterArray
      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.

      Specified by:
      setUseMonoEnergy in interface FilterArray
      Parameters:
      useEnergy - perform calculations using the current setting of a monochromator
      Throws:
      DeviceException