Interface IPositionSource<E>

All Known Subinterfaces:
IRotationSource
All Known Implementing Classes:
EnumPositionerSource, ScannableMotionUnitsPositionSource, ScannablePositionSource, ScannableRotationSource

public interface IPositionSource<E>
An interface to an object that gets and sets a position
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the units descriptor of the position source.
    Returns the current position
    boolean
    Returns true if the position source is busy, for example, it is in the middle of changing position
    void
    setPosition(E value)
     
  • Method Details

    • getDescriptor

      IUnitsDescriptor getDescriptor()
      Returns the units descriptor of the position source.
      Returns:
      the units descriptor of the position source
    • isBusy

      boolean isBusy() throws DeviceException
      Returns true if the position source is busy, for example, it is in the middle of changing position
      Returns:
      true if busy, otherwise false
      Throws:
      DeviceException
    • getPosition

      E getPosition() throws DeviceException
      Returns the current position
      Returns:
      double current position
      Throws:
      DeviceException
    • setPosition

      void setPosition(E value) throws DeviceException
      Throws:
      DeviceException