![]() |
fpmas 1.6
|
#include <spatial_model.h>
Public Member Functions | |
| CurrentOutLayer (api::model::Agent *agent, fpmas::graph::LayerId layer_id) | |
| bool | contains (fpmas::api::model::Agent *agent) |
| void | link (fpmas::api::model::Agent *other_agent) |
Utility class used to describe agents currently contained in the current outgoing neighbors of an agent, on a given layer.
|
inline |
CurrentOutLayer constructor.
| agent | root agent |
| layer_id | id of the layer on which outgoing neighbors of the agent are considered |
|
inline |
Checks if the input agent is contained in the current outgoing neighbors of the root agent on the current layer.
| agent | agent to check |
agent is contained in the outgoing neighbors on the layer
|
inline |
Builds a link from the root agent to the provided other agent on the current layer. This method allows to automatically update the CurrentOutLayer, while directly calling the link operation does not.
| other_agent | agent to link |