![]() |
fpmas 1.6
|
#include <scheduler.h>
Public Member Functions | |
void | submit (const api::scheduler::Job &, api::scheduler::SubTimeStep sub_time_step) override |
void | submit (api::scheduler::JobList job_list, api::scheduler::SubTimeStep sub_time_step) override |
const std::vector< const api::scheduler::Job * > & | jobs () const override |
JobIterator | begin () const override |
JobIterator | end () const override |
size_t | jobCount () override |
void | clear () override |
virtual void | submit (const Job &job, SubTimeStep sub_time_step)=0 |
virtual void | submit (JobList job_list, SubTimeStep sub_time_step)=0 |
virtual const std::vector< const Job * > & | jobs () const =0 |
virtual JobIterator | begin () const =0 |
virtual JobIterator | end () const =0 |
virtual size_t | jobCount ()=0 |
virtual void | clear ()=0 |
Additional Inherited Members | |
![]() | |
typedef std::vector< constJob * >::const_iterator | JobIterator |
api::scheduler::Epoch implementation.
|
overridevirtual |
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.
job | job to submit |
sub_time_step | value used to order jobs within the Epoch |
Implements fpmas::api::scheduler::Epoch.
|
overridevirtual |
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.
job_list | list of jobs to submit |
sub_time_step | value used to order jobs within the Epoch |
Implements fpmas::api::scheduler::Epoch.
|
overridevirtual |
Returns a reference to the internal Jobs list.
Implements fpmas::api::scheduler::Epoch.
|
overridevirtual |
Returns a begin iterator to the epoch's jobs.
Implements fpmas::api::scheduler::Epoch.
|
overridevirtual |
Returns an end iterator to the epoch's jobs.
Implements fpmas::api::scheduler::Epoch.
|
overridevirtual |
Returns the current number of jobs in the Epoch.
Implements fpmas::api::scheduler::Epoch.
|
overridevirtual |
Clears the Epoch, removing all jobs currently submitted.
Implements fpmas::api::scheduler::Epoch.