![]() |
fpmas 1.6
|
#include <runtime.h>
Public Member Functions | |
virtual void | run (Date start, Date end)=0 |
virtual void | run (Date end)=0 |
virtual void | execute (const scheduler::Job &job)=0 |
virtual void | execute (const scheduler::JobList &job_list)=0 |
virtual Date | currentDate () const =0 |
virtual void | setCurrentDate (Date date)=0 |
|
pure virtual |
Runs jobs from start, included, to end, excluded.
The Runtime is currently based on a unit time step. In consequence, the Runtime will execute jobs at dates start
, start+1
and start+n
for any integer n such that start+n < end
.
At the end of the execution, currentDate() is reinitialized to 0.
start | start date |
end | end date |
Implemented in fpmas::runtime::Runtime.
|
pure virtual |
Runs jobs from currentDate() to end, excluded.
Equivalent to
end | end date |
Implemented in fpmas::runtime::Runtime.
|
pure virtual |
Executes the provided job
.
Tasks of the job (excluding scheduler::Job::getBeginTask() and scheduler::Job::getEndTask()) are executed in a random order.
job | job to execute |
Implemented in fpmas::runtime::Runtime.
|
pure virtual |
Sequentially executes the jobs contained in the provided job_list
.
job_list | list of jobs to execute sequentially |
Implemented in fpmas::runtime::Runtime.
|
pure virtual |
Current internal date of the runtime.
The current date is initialized to 0 when a Runtime is built.
Implemented in fpmas::runtime::Runtime.
|
pure virtual |
Sets the internal date of this Runtime, so that the next call to run(Date) will start to run jobs from date
.
date | new date |
Implemented in fpmas::runtime::Runtime.