fpmas 1.6
Public Member Functions | List of all members
fpmas::model::detail::AgentTask Class Reference

#include <model.h>

Inheritance diagram for fpmas::model::detail::AgentTask:
Inheritance graph
[legend]
Collaboration diagram for fpmas::model::detail::AgentTask:
Collaboration graph
[legend]

Public Member Functions

 AgentTask (api::model::AgentPtr &agent_ptr)
 
void run () override
 
- Public Member Functions inherited from fpmas::model::detail::AgentTaskBase
 AgentTaskBase (api::model::AgentPtr &agent_ptr)
 
const api::model::AgentPtragent () const override
 
AgentNode * node () override
 
- Public Member Functions inherited from fpmas::scheduler::TaskBase< api::model::AgentTask >
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 AgentPtragent () const =0
 
virtual api::graph::DistributedNode< AgentPtr > * node ()=0
 
- Public Member Functions inherited from fpmas::api::scheduler::Task
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
 

Additional Inherited Members

- Protected Attributes inherited from fpmas::model::detail::AgentTaskBase
api::model::AgentPtr_agent
 

Detailed Description

Deprecated:

Legacy agent task used to execute the api::model::Agent::act() method at each run().

This is no longer used, and will be removed in a next release.

Constructor & Destructor Documentation

◆ AgentTask()

fpmas::model::detail::AgentTask::AgentTask ( api::model::AgentPtr agent_ptr)
inline

AgentTask constructor.

Parameters
agent_ptragents that will be executed by this task

Member Function Documentation

◆ run()

void fpmas::model::detail::AgentTask::run ( )
inlineoverridevirtual

Runs the task.

Implements fpmas::api::scheduler::Task.


The documentation for this class was generated from the following file: