public class StartCommand extends InstantCommand
StartCommand will call the start() method of another command
when it is initialized and will finish immediately.| Constructor and Description |
|---|
StartCommand(Command commandToStart)
Instantiates a
StartCommand which will start the given command whenever its initialize() is called. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize()
The initialize method is called the first time this Command is run after being started.
|
isFinishedcancel, clearRequirements, doesRequire, end, execute, getGroup, initSendable, interrupted, isCanceled, isCompleted, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabledaddChild, free, getName, getSubsystem, setName, setName, setName, setSubsystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSubsystem, setName, setName, setSubsystempublic StartCommand(Command commandToStart)
StartCommand which will start the given command whenever its initialize() is called.commandToStart - the Command to startprotected void initialize()
Commandinitialize in class Command