Class DummyControlPoint

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

@ServiceInterface(ControlPoint.class) public class DummyControlPoint extends ScannableMotionBase implements ControlPoint
The Class DummyControlPoint.
  • Constructor Details

    • DummyControlPoint

      public DummyControlPoint()
  • Method Details

    • getValue

      public double getValue() throws DeviceException
      Description copied from interface: ControlPoint
      Returns the latest value observed by this Control Point.
      Specified by:
      getValue in interface ControlPoint
      Returns:
      the latest value of the monitor
      Throws:
      DeviceException
    • setValue

      public void setValue(double target) throws DeviceException
      Description copied from interface: ControlPoint
      Set the target Control Point
      Specified by:
      setValue in interface ControlPoint
      Parameters:
      target - the target control point value
      Throws:
      DeviceException
    • asynchronousMoveTo

      public void asynchronousMoveTo(Object position) throws DeviceException
      Description copied from class: ScannableBase
      Trigger a move/operation and return immediately. Implementations of this method should be non-blocking to allow concurrent motion; the isBusy method will be used to determine when the move has completed. Converts the external (user) position to an internal position and passes this to rawAsynchronousMoveTo.
      Specified by:
      asynchronousMoveTo in interface Scannable
      Overrides:
      asynchronousMoveTo in class ScannableMotionBase
      Parameters:
      position - Position to move to should have an element for each input field.
      Throws:
      DeviceException
    • 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()
      Description copied from class: ScannableMotionBase
      Check if the Scannable is moving/operating.. Calls onto rawIsBusy for historical reasons, although there is currently no need for this.
      Specified by:
      isBusy in interface Scannable
      Overrides:
      isBusy in class ScannableMotionBase
      Returns:
      true - if operation carried out by moveTo has not completed yet
      See Also: