![]() |
fpmas 1.6
|
#include <scheduler.h>
Public Types | |
typedef std::list< Task * >::const_iterator | TaskIterator |
Public Member Functions | |
virtual JID | id () const =0 |
virtual void | add (Task &task)=0 |
virtual void | remove (Task &task)=0 |
virtual std::vector< Task * > | tasks () const =0 |
virtual TaskIterator | begin () const =0 |
virtual TaskIterator | end () const =0 |
virtual void | setBeginTask (Task &task)=0 |
virtual Task & | getBeginTask () const =0 |
virtual void | setEndTask (Task &task)=0 |
virtual Task & | getEndTask () const =0 |
Job API.
A Job is a set of task that needs to be executed in any order.
A begin and end task are also added for convenience.
typedef std::list<Task*>::const_iterator fpmas::api::scheduler::Job::TaskIterator |
Type used to iterate on a Job, yielding job's tasks.
|
pure virtual |
Job id.
Implemented in fpmas::scheduler::Job.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Returns a reference to the internal Tasks list.
Implemented in fpmas::scheduler::Job.
|
pure virtual |
Returns a begin iterator to the job's tasks.
Implemented in fpmas::scheduler::Job.
|
pure virtual |
Returns an end iterator to the job's tasks.
Implemented in fpmas::scheduler::Job.
|
pure virtual |
Sets the begin task of the job.
This task is assumed to be executed before the regular and unordered task list.
task | begin task |
Implemented in fpmas::scheduler::Job.
|
pure virtual |
Gets a reference to the begin task of this job.
Implemented in fpmas::scheduler::Job.
|
pure virtual |
Sets the end task of the job.
This task is assumed to be executed after the regular and unordered task list.
task | end task |
Implemented in fpmas::scheduler::Job.
|
pure virtual |