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

#include <model.h>

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

Public Member Functions

 SetAgentLocalCallback (api::model::Model &model)
 
void call (const api::graph::SetLocalNodeEvent< AgentPtr > &event) override
 
- Public Member Functions inherited from fpmas::api::utils::Callback< const api::graph::SetLocalNodeEvent< AgentPtr > & >
virtual void call (Args... args)=0
 

Additional Inherited Members

- Public Types inherited from fpmas::api::utils::EventCallback< api::graph::SetLocalNodeEvent< AgentPtr > >
typedef api::graph::SetLocalNodeEvent< AgentPtr > EventType
 

Detailed Description

Callback triggered when an AgentNode is set LOCAL.

This happens when a previously DISTANT node is imported into the local graph and becomes LOCAL, or when a new AgentNode is inserted in the graph (the node is implicitly set LOCAL in this case).

Constructor & Destructor Documentation

◆ SetAgentLocalCallback()

fpmas::model::detail::SetAgentLocalCallback::SetAgentLocalCallback ( api::model::Model model)
inline

SetAgentLocalCallback constructor.

Parameters
modelcurrent model

Member Function Documentation

◆ call()

void fpmas::model::detail::SetAgentLocalCallback::call ( const api::graph::SetLocalNodeEvent< AgentPtr > &  event)
override

Schedules the associated agent's task to be executed within its AgentGroup's job.

Parameters
eventevent to handle
See also
AgentTask
fpmas::api::model::Agent::task()
fpmas::api::model::AgentGroup::job()

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