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

List of all members.

Public Member Functions

virtual std::string GetName ()
virtual std::string GetType ()
virtual NetworkTableGetTable ()
void AddCommand (Command *command)
void AddButton (ButtonScheduler *button)
void RegisterSubsystem (Subsystem *subsystem)
void Run ()
void Remove (Command *command)

Static Public Member Functions

static SchedulerGetInstance ()

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:

  1. Poll the Buttons
  2. Execute/Remove the Commands
  3. Send values to SmartDashboard
  4. Add Commands
  5. 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 doxygen 1.7.1