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

#include <model.h>

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

Public Member Functions

 AgentBehaviorTask (const api::model::Behavior &behavior, api::model::AgentPtr &agent)
 
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

api::model::AgentTask implementation base on an api::model::Behavior.

Constructor & Destructor Documentation

◆ AgentBehaviorTask()

fpmas::model::detail::AgentBehaviorTask::AgentBehaviorTask ( const api::model::Behavior behavior,
api::model::AgentPtr agent 
)
inline

AgentBehaviorTask constructor.

At each run(), behavior is applied to agent.

Parameters
behaviorbehavior to apply on agent each time the task is run()
agentagent to which behavior must be applied each time the task is run()

Member Function Documentation

◆ run()

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

Runs the task.

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


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