![]() |
fpmas 1.6
|
#include <scheduler.h>
Public Member Functions | |
virtual void | schedule (Date date, const Job &job)=0 |
virtual void | schedule (Date date, Period period, const Job &job)=0 |
virtual void | schedule (Date date, Date end, Period period, const Job &job)=0 |
virtual void | schedule (Date date, JobList job)=0 |
virtual void | schedule (Date date, Period period, JobList job)=0 |
virtual void | schedule (Date date, Date end, Period period, JobList job)=0 |
virtual void | build (TimeStep step, Epoch &epoch) const =0 |
Scheduler API.
The Scheduler can be used to submit jobs to execute punctually at a given Date or recurrently at a given Period.
A Runtime can be used to execute jobs submitted to the Scheduler.
Schedule a Job to be executed at the given Date.
date | date when the job must be executed |
job | job to execute |
Implemented in fpmas::scheduler::Scheduler.
|
pure virtual |
Schedule a Job to be executed at the given Period, starting from the given Date.
In other terms, the job will be executed at date
, date+period
and date+n*period
for any integer n
.
date | date when the job must be executed at first |
period | period at which the job must be executed |
job | job to execute |
Implemented in fpmas::scheduler::Scheduler.
|
pure virtual |
Schedules a Job to be executed at the given Period, starting from the given Date, until the end Date.
In other terms, the job will be executed at date
, date+period
and date+n*period
for any integer n
such that date+n*period < end
.
date | date when the job must be executed at first |
end | date until when the job must be executed |
period | period at which the job must be executed |
job | job to execute |
Implemented in fpmas::scheduler::Scheduler.
Schedules a Job list to be executed sequentially at the given Date.
date | date when the job must be executed |
job | job to execute |
Implemented in fpmas::scheduler::Scheduler.
|
pure virtual |
Schedules a Job list to be executed sequentially at the given Period, starting from the given Date.
In other terms, the job will be executed at date
, date+period
and date+n*period
for any integer n
.
date | date when the job must be executed at first |
period | period at which the job must be executed |
job | job to execute |
Implemented in fpmas::scheduler::Scheduler.
|
pure virtual |
Schedules a Job list to be executed sequentially at the given Period, starting from the given Date, until the end Date.
In other terms, the job will be executed at date
, date+period
and date+n*period
for any integer n
such that date+n*period < end
.
date | date when the job must be executed at first |
end | date until when the job must be executed |
period | period at which the job must be executed |
job | job to execute |
Implemented in fpmas::scheduler::Scheduler.
|
pure virtual |
Builds an Epoch that correspond to the specified date.
All jobs currently scheduled at the specified time step, according to the rules of the schedule() functions, will be submitted to the given epoch. Jobs are ordered by Date within the built epoch. If jobs are submitted with the same Date, the execution order is undefined.
step | time step to build |
epoch | output epoch |
Implemented in fpmas::scheduler::Scheduler.