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

#include <model.h>

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

Public Member Functions

 EraseAgentNodeCallback (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 erased from the simulation graph (i.e. when an AgentNode is created, or when its imported from an other process).

Constructor & Destructor Documentation

◆ EraseAgentNodeCallback()

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

EraseAgentNodeCallback constructor.

Parameters
modelcurrent model

Member Function Documentation

◆ call()

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

Removes the node's Agent (i.e. node->data()) from its AgentGroup.

If the node was still LOCAL, the agent's task is also unscheduled.

Parameters
nodeAgentNode to erase from the graph

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