Class Spinner

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

public class Spinner extends ScannableBase implements ISpin
  • Constructor Details

    • Spinner

      public Spinner()
  • Method Details

    • 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
    • isBusy

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

      public void on() throws DeviceException
      Description copied from interface: ISpin
      enable spin or switch on spin
      Specified by:
      on in interface ISpin
      Throws:
      DeviceException
    • off

      public void off() throws DeviceException
      Description copied from interface: ISpin
      disable spin or switch off spin
      Specified by:
      off in interface ISpin
      Throws:
      DeviceException
    • setSpeed

      public void setSpeed(double voltage) throws DeviceException
      Description copied from interface: ISpin
      set spin speed
      Specified by:
      setSpeed in interface ISpin
      Parameters:
      voltage -
      Throws:
      DeviceException
    • getSpeed

      public double getSpeed() throws DeviceException
      Description copied from interface: ISpin
      get spin speed
      Specified by:
      getSpeed in interface ISpin
      Returns:
      spin speed
      Throws:
      DeviceException
    • getState

      public String getState() throws DeviceException
      Description copied from interface: ISpin
      check spin state - i.e. Enabled or Disabled
      Specified by:
      getState in interface ISpin
      Returns:
      spin state
      Throws:
      DeviceException
    • getOnOffPV

      public String getOnOffPV()
    • setOnOffPV

      public void setOnOffPV(String onOffPV)
    • getVoltagePV

      public String getVoltagePV()
    • setVoltagePV

      public void setVoltagePV(String voltagePV)