Interface AsyncActuator
-
- All Implemented Interfaces:
public interface AsyncActuator
-
-
Method Summary
Modifier and Type Method Description BooleanmyLittleKillSwitch()Set a kill switch function that can interrupt the rotation. UnitstopCheck(Integer location)Check whether the movement should be stopped, throwing an InterruptedException if so. abstract UnitsoftLanding(Integer target, Duration time)abstract UnitsoftLaunch(Integer target, Duration time)abstract UnitsmoothMove(Integer target, Duration time)abstract IntegergetCurrent()Return some notion of the "current" position/value of the actuator. -
-
Method Detail
-
myLittleKillSwitch
Boolean myLittleKillSwitch()
Set a kill switch function that can interrupt the rotation. This will cause an exception to be thrown if the function returns true during rotation.
-
stopCheck
Unit stopCheck(Integer location)
Check whether the movement should be stopped, throwing an InterruptedException if so.
-
softLanding
abstract Unit softLanding(Integer target, Duration time)
-
softLaunch
abstract Unit softLaunch(Integer target, Duration time)
-
smoothMove
abstract Unit smoothMove(Integer target, Duration time)
-
getCurrent
abstract Integer getCurrent()
Return some notion of the "current" position/value of the actuator.
-
-
-
-