-
public abstract class Command
Base class for all robot commands.
Commands are independent subroutines that are executed periodically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Command.State
-
Field Summary
Fields Modifier and Type Field Description private Command.State
state
private boolean
isCompleted
-
Method Summary
Modifier and Type Method Description Command.State
getState()
Gets the current command state. boolean
getIsCompleted()
Gets a value indicating whether or not command is completed. void
setIsCompleted(boolean isCompleted)
Set the command completed state. boolean
getIsTriggered()
Gets a value indicating whether or not command is supposed to execute based on its trigger condition. -
-
Method Detail
-
getState
Command.State getState()
Gets the current command state.
-
getIsCompleted
boolean getIsCompleted()
Gets a value indicating whether or not command is completed.
-
setIsCompleted
void setIsCompleted(boolean isCompleted)
Set the command completed state.
- Parameters:
isCompleted
- a boolean value indicating whether or not the command is completed.
-
getIsTriggered
boolean getIsTriggered()
Gets a value indicating whether or not command is supposed to execute based on its trigger condition.
-
-
-
-