fpmas-metamodel 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AgentsOutput Class Reference

#include <output.h>

Inheritance diagram for AgentsOutput:
Inheritance graph
[legend]
Collaboration diagram for AgentsOutput:
Collaboration graph
[legend]

Public Member Functions

 AgentsOutput (BasicMetaModel &model, std::size_t grid_width, std::size_t grid_height)
 

Detailed Description

Performs the following Json output on each process:

# Agents list
{
"rank": rank,
"grid": {
"width": grid_width,
"height": grid_height
},
"agents": [
{
"id": agent_id,
"contacts": [ids, ...],
"perceptions": [ids, ...],
"location": [x, y]
},
...
],
"distant_agents": [
{
"id": agent_id,
"rank": rank
},
...
]
}

Constructor & Destructor Documentation

◆ AgentsOutput()

AgentsOutput::AgentsOutput ( BasicMetaModel model,
std::size_t  grid_width,
std::size_t  grid_height 
)

AgentsOutput constructor.


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