![]() |
fpmas 1.6
|
#include <model.h>
Public Member Functions | |
AgentTaskBase (api::model::AgentPtr &agent_ptr) | |
const api::model::AgentPtr & | agent () const override |
AgentNode * | node () override |
![]() | |
void | setJobPos (JID job_id, std::list< fpmas::api::scheduler::Task * >::iterator pos) override |
std::list< api::scheduler::Task * >::iterator | getJobPos (JID job_id) const override |
virtual const AgentPtr & | agent () const =0 |
virtual api::graph::DistributedNode< AgentPtr > * | node ()=0 |
![]() | |
virtual void | run ()=0 |
virtual void | setJobPos (JID job_id, std::list< Task * >::iterator pos)=0 |
virtual std::list< Task * >::iterator | getJobPos (JID job_id) const =0 |
Protected Attributes | |
api::model::AgentPtr & | _agent |
api::model::AgentTask implementation.
|
inline |
AgentTask constructor.
agent_ptr | agents that will be executed by this task |
|
inlineoverridevirtual |
Returns a pointer to the associated Agent.
Implements fpmas::api::model::AgentTask.
|
inlineoverridevirtual |
Returns a pointer to the node to which this task is associated.
Implements fpmas::api::scheduler::NodeTask< AgentPtr >.
|
protected |
Internal agent pointer.