#include <scheduler.h>
|
typedef std::vector< constJob * >::const_iterator | JobIterator |
|
Epoch API.
An Epoch describes an ordered set of Job that needs to be executed at a given Date.
◆ JobIterator
Type used to iterate on an Epoch, yielding epoch's jobs.
◆ submit() [1/2]
virtual void fpmas::api::scheduler::Epoch::submit |
( |
const Job & |
job, |
|
|
SubTimeStep |
sub_time_step |
|
) |
| |
|
pure virtual |
Submits a new job to this Epoch.
Jobs within the Epoch are ordered according to the specified sub_time_step
. The result of jobs() and the begin() / end() iterators are consistent with this order. If several jobs are submitted with equal sub_time_steps
, their relative ordering corresponds to the order they are submitted. However it is risky to rely on this, since float comparison can be approximate.
- Parameters
-
job | job to submit |
sub_time_step | value used to order jobs within the Epoch |
Implemented in fpmas::scheduler::Epoch.
◆ submit() [2/2]
virtual void fpmas::api::scheduler::Epoch::submit |
( |
JobList |
job_list, |
|
|
SubTimeStep |
sub_time_step |
|
) |
| |
|
pure virtual |
Submits a list of job to be executed sequentially in this Epoch.
Jobs within the Epoch are ordered according to the specified sub_time_step
. The result of jobs() and the begin() / end() iterators are consistent with this order. If several jobs are submitted with equal sub_time_steps
, their relative ordering corresponds to the order they are submitted. However it is risky to rely on this, since float comparison can be approximate.
- Parameters
-
job_list | list of jobs to submit |
sub_time_step | value used to order jobs within the Epoch |
Implemented in fpmas::scheduler::Epoch.
◆ jobs()
virtual const std::vector< const Job * > & fpmas::api::scheduler::Epoch::jobs |
( |
| ) |
const |
|
pure virtual |
◆ begin()
virtual JobIterator fpmas::api::scheduler::Epoch::begin |
( |
| ) |
const |
|
pure virtual |
◆ end()
virtual JobIterator fpmas::api::scheduler::Epoch::end |
( |
| ) |
const |
|
pure virtual |
◆ jobCount()
virtual size_t fpmas::api::scheduler::Epoch::jobCount |
( |
| ) |
|
|
pure virtual |
◆ clear()
virtual void fpmas::api::scheduler::Epoch::clear |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: