|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.wpi.first.wpilibj.command.Command
edu.wpi.first.wpilibj.command.WaitUntilCommand
public class WaitUntilCommand
WaitUntilCommand - waits until an absolute game time. This will wait until the game clock reaches some value, then continue to the next command.
| Constructor Summary | |
|---|---|
WaitUntilCommand(double time)
|
|
| Method Summary | |
|---|---|
void |
end()
Called when the command ended peacefully. |
void |
execute()
The execute method is called repeatedly until this Command either finishes or is canceled. |
void |
initialize()
The initialize method is called the first time this Command is run after being started. |
void |
interrupted()
Called when the command ends because somebody called cancel()
or another command shared the same requirements as this one, and booted
it out. |
boolean |
isFinished()
Check if we've reached the actual finish time. |
| Methods inherited from class edu.wpi.first.wpilibj.command.Command |
|---|
cancel, doesRequire, getGroup, getName, getTable, getType, grabTable, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WaitUntilCommand(double time)
| Method Detail |
|---|
public void initialize()
Command
initialize in class Commandpublic void execute()
Command
execute in class Commandpublic boolean isFinished()
isFinished in class CommandisTimedOut()public void end()
Command
end in class Commandpublic void interrupted()
Commandcancel()
or another command shared the same requirements as this one, and booted
it out.
This is where you may want to wrap up loose ends, like shutting off a motor that was being used in the command.
Generally, it is useful to simply call the end() method
within this method
interrupted in class Command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||