Class ScannableSine

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

public class ScannableSine extends SimpleScannable
  • Constructor Details

    • ScannableSine

      public ScannableSine()
    • ScannableSine

      public ScannableSine(SineWave sineWave)
      Parameters:
      sineWave -
  • Method Details

    • getPosition

      public Object getPosition() throws DeviceException
      Description copied from class: SimpleScannable
      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 SimpleScannable
      Returns:
      Current position with an element for each input and extra field. null if their are no fields.
      Throws:
      DeviceException
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class ScannableBase
    • main

      public static void main(String[] args)
      Parameters:
      args -
    • getSineWave

      public SineWave getSineWave()
      Returns:
      Returns the sineWave.
    • setSineWave

      public void setSineWave(SineWave sineWave)
      Parameters:
      sineWave - The sineWave to set.
    • getPeriod

      public double getPeriod()
      Returns:
      Returns the period.
    • setPeriod

      public void setPeriod(double period)
      Parameters:
      period - The period to set.
    • getPhase

      public double getPhase()
      Returns:
      Returns the phase.
    • setPhase

      public void setPhase(double phase)
      Parameters:
      phase - The phase to set.
    • getMagnitude

      public double getMagnitude()
      Returns:
      Returns the magnitude.
    • setMagnitude

      public void setMagnitude(double magnitude)
      Parameters:
      magnitude - The magnitude to set.
    • getOffset

      public double getOffset()
      Returns:
      Returns the offset.
    • setOffset

      public void setOffset(double offset)
      Parameters:
      offset - The offset to set.
    • getNoise

      public double getNoise()
      Returns:
      Returns the noise.
    • setNoise

      public void setNoise(double noise)
      Parameters:
      noise - The noise to set.