public interface MultiPhaseAction extends Action
Motors must:
| Modifier and Type | Method and Description |
|---|---|
boolean |
incomplete()
Signal to the caller whether or not the current multi-phase is completed.
|
int |
runPhase(long value)
Apply a work function to an input value, producing an int status code.
|
boolean incomplete()
int runPhase(long value)
Apply a work function to an input value, producing an int status code.
This iterative interface represents work that occurs within the scope
of an existing action cycle. The last value returned by this phase loop will
take the place of the value returned by Action.runCycle(long)
This will be called iteratively so long as incomplete() returns true.
The meaning of status codes is activity specific, however, negative values are reserved.
value - a long inputCopyright © 2017. All rights reserved.