Now you can download a copy of these docs so you can use them offline! Download now
Scheduler Class Reference
Inheritance diagram for Scheduler:

Collaboration diagram for Scheduler:

Public Member Functions | |
| virtual std::string | GetName () |
| virtual std::string | GetType () |
| virtual NetworkTable * | GetTable () |
| void | AddCommand (Command *command) |
| void | AddButton (ButtonScheduler *button) |
| void | RegisterSubsystem (Subsystem *subsystem) |
| void | Run () |
| void | Remove (Command *command) |
Static Public Member Functions | |
| static Scheduler * | GetInstance () |
Detailed Description
Definition at line 22 of file Scheduler.h.
Member Function Documentation
| Scheduler * Scheduler::GetInstance | ( | ) | [static] |
Returns the Scheduler, creating it if one does not exist.
- Returns:
- the Scheduler
Definition at line 48 of file Scheduler.cpp.
| void Scheduler::RegisterSubsystem | ( | Subsystem * | subsystem | ) |
Registers a Subsystem to this Scheduler, so that the Scheduler might know if a default Command needs to be run. All Subsystems should call this.
- Parameters:
-
system the system
Definition at line 195 of file Scheduler.cpp.
| void Scheduler::Remove | ( | Command * | command | ) |
Removes the Command from the Scheduler.
- Parameters:
-
command the command to remove
Definition at line 209 of file Scheduler.cpp.
| void Scheduler::Run | ( | ) |
Runs a single iteration of the loop. This method should be called often in order to have a functioning Command system. The loop has five stages:
- Poll the Buttons
- Execute/Remove the Commands
- Send values to SmartDashboard
- Add Commands
- Add Defaults
Definition at line 125 of file Scheduler.cpp.
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:36 for WPILibC++ by
1.7.1