Class ScannableGaussian

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

public class ScannableGaussian extends SimpleScannable
  • Constructor Details

    • ScannableGaussian

      public ScannableGaussian()
    • ScannableGaussian

      public ScannableGaussian(Gaussian g)
      Parameters:
      g -
    • ScannableGaussian

      public ScannableGaussian(double centre, double width, double height, double noise)
      Parameters:
      centre -
      width -
      height -
      noise -
    • ScannableGaussian

      public ScannableGaussian(String name, Double xPosition, String xName, String yName, Double centre, Double width, Double height, Double noise, int level, String outputFormatx, String outputFormaty, String unitsx, String unitsy)
      Parameters:
      name -
      xPosition -
      xName -
      yName -
      centre -
      width -
      height -
      noise -
      level -
      outputFormatx -
      outputFormaty -
      unitsx -
      unitsy -
  • Method Details

    • getPosition

      public final 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:
    • main

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

      public final double getCentre()
      Returns:
      Returns the centre.
    • setCentre

      public final void setCentre(double centre)
      Parameters:
      centre - The centre to set.
    • getWidth

      public final double getWidth()
      Returns:
      Returns the width.
    • setWidth

      public final void setWidth(double width)
      Parameters:
      width - The width to set.
    • getHeight

      public final double getHeight()
      Returns:
      Returns the height.
    • setHeight

      public final void setHeight(double height)
      Parameters:
      height - The height to set.
    • getNoise

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

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

      public final Gaussian getGaussian()
      Returns:
      Returns the gaussian.
    • setGaussian

      public final void setGaussian(Gaussian gaussian)
      Parameters:
      gaussian - The gaussian to set.