Class FastAttenuatorFilters

All Implemented Interfaces:
Device, Scannable, Configurable, Findable, gda.observable.IObservable

public class FastAttenuatorFilters extends ScannableBase
Class managing the filters of FastAttenuatorScannable. This extends ScannableBase so it can be added to the metadata easily.
  • Constructor Details

    • FastAttenuatorFilters

      public FastAttenuatorFilters()
  • Method Details

    • setBasePv

      public void setBasePv(String basePV)
    • setHistogramThresholdsBasePv

      public void setHistogramThresholdsBasePv(String histogramThresholdsBasePv)
    • isBusy

      public boolean isBusy() throws DeviceException
      Description copied from interface: Scannable
      Check if the Scannable is moving/operating.
      Returns:
      true - if operation carried out by moveTo has not completed yet
      Throws:
      DeviceException
    • setFilterTransmissions

      public void setFilterTransmissions(Double[] filterTransmissions)
      Set the transmissions of the current filter set.
      Parameters:
      filterTransmissions - array of four filter transmissions.
    • getFilterTransmissions

      public List<Double> getFilterTransmissions()
    • setFilterSet

      public void setFilterSet(String filterSetName) throws IOException
      Throws:
      IOException
    • getFilterSet

      public String getFilterSet() throws IOException
      Throws:
      IOException
    • getCurrentTransmission

      public double getCurrentTransmission(Integer attenuation)
    • getPosition

      public Object getPosition() throws DeviceException
      Description copied from class: ScannableBase
      Returns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.
      Specified by:
      getPosition in interface Scannable
      Overrides:
      getPosition in class ScannableBase
      Returns:
      Current position with an element for each input and extra field. null if their are no fields.
      Throws:
      DeviceException
    • getCurrentTransmissionFunction

      public Function<Integer,Double> getCurrentTransmissionFunction()
      Get reference to the transmission function. This is to allow this to be injected to be used in a scanning processor without requiring a dependency on this plugin directly.