![]() |
fpmas 1.6
|
#include <model.h>


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 |
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).
|
inline |
InsertAgentNodeCallback constructor.
| model | current model |
|
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.
| node | AgentNode inserted in the graph |