mermaid::support::activeobject::TaskScheduler Class Reference

TaskScheduler class. More...

#include <TaskScheduler.hpp>

Collaboration diagram for mermaid::support::activeobject::TaskScheduler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addTask (shared_ptr< Task > t)
 Adds a Task to the TaskScheduler. t Task to be added to TaskScheduler.
shared_ptr< TaskgetNextTask ()
 Getter for the next scheduled Task.
shared_ptr< TaskpeakNextTask ()
 Peaker for the next scheduled Task. Returns the next task but doesn't remove it from the scheduler.
 TaskScheduler ()
 Default constructor.

Detailed Description

TaskScheduler class.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 61 of file TaskScheduler.hpp.


Constructor & Destructor Documentation

TaskScheduler::TaskScheduler (  ) 

Default constructor.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 40 of file TaskScheduler.cpp.


Member Function Documentation

void TaskScheduler::addTask ( shared_ptr< Task t  ) 

Adds a Task to the TaskScheduler. t Task to be added to TaskScheduler.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 46 of file TaskScheduler.cpp.

shared_ptr< Task > TaskScheduler::getNextTask (  ) 

Getter for the next scheduled Task.

Returns:
Task that should be run next according to the current scheduling policy of the TaskScheduler os invalid pointer if no task is available
Author:
Marco Barbosa + Nelson Ramos

Definition at line 51 of file TaskScheduler.cpp.

shared_ptr< Task > TaskScheduler::peakNextTask (  ) 

Peaker for the next scheduled Task. Returns the next task but doesn't remove it from the scheduler.

Returns:
Task that should be run next according to the current scheduling policy of the TaskScheduler or invalid pointer if no task is available
Author:
Marco Barbosa + Nelson Ramos

Definition at line 63 of file TaskScheduler.cpp.

Generated on Fri Mar 4 22:15:43 2011 for MeRMaID::support by  doxygen 1.6.3