Package uk.ac.gda.ui.viewer
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 TypeMethodDescriptionReturns the units descriptor of the position source.Returns the current positionbooleanisBusy()Returns true if the position source is busy, for example, it is in the middle of changing positionvoidsetPosition(E value)
-
Method Details
-
getDescriptor
IUnitsDescriptor getDescriptor()Returns the units descriptor of the position source.- Returns:
- the units descriptor of the position source
-
isBusy
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
Returns the current position- Returns:
- double current position
- Throws:
DeviceException
-
setPosition
- Throws:
DeviceException
-