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

#include <model.h>

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

Public Member Functions

 InsertAgentNodeCallback (api::model::Model &model)
 
void call (api::model::AgentNode *node) override
 
- Public Member Functions inherited from fpmas::api::utils::Callback< AgentNode * >
virtual void call (Args... args)=0
 

Detailed Description

Callback triggered when an AgentNode is inserted into the simulation graph (i.e. when an AgentNode is created, or when it's imported from an other process).

Constructor & Destructor Documentation

◆ InsertAgentNodeCallback()

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

InsertAgentNodeCallback constructor.

Parameters
modelcurrent model

Member Function Documentation

◆ call()

void fpmas::model::detail::InsertAgentNodeCallback::call ( api::model::AgentNode node)
override

When called, the argument is assumed to contain a new uninitialized Agent (accessible through node->data()). The Agent GroupId is also assumed to be initialized.

Then this Agent is bound to :

All the corresponding fields are valid once this callback has been triggered.

Parameters
nodeAgentNode inserted in the graph

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