fpmas-metamodel 1.0
|
#include <output.h>
Public Member Functions | |
CellsUtilityOutput (BasicMetaModel &model, std::size_t grid_width, std::size_t grid_height) | |
void | dump () override |
Dumps the current grid to a grid.json
file on the process 0 as a 2 dimension array such as json[y][x]
contains the utility of the grid cell at (x,y).
Since the utility of the cells is currently static, it is not relevant to periodically schedule this output, but dump() or job() can be used to perform an utility output at the beginning of the simulation.
|
inline |
CellsUtilityOutput constructor.
model | MetaModel from which cells are gathered |
grid_width | Width of the grid |
grid_height | Height of the grid |
|
override |
Dumps data from the MetaModel to the grid.json
file.
Must be called on all processes.