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

#include <output.h>

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

Public Member Functions

 CellsLocationOutput (BasicMetaModel &meta_model, std::string filename, std::size_t grid_width, std::size_t grid_height)
 
void dump () override
 

Detailed Description

Dumps the current grid to a JSON file on the process 0 as a 2 dimension array such as json[y][x] contains the process on which the grid cell at (x,y) is executed.

This is currently only available for GRID Environments, to perform visualisation in a Matplotlib pcolormesh for example. In order to visualise the process of each cell in a generic graph environment, consider using the DotOuput instead.

Constructor & Destructor Documentation

◆ CellsLocationOutput()

CellsLocationOutput::CellsLocationOutput ( BasicMetaModel meta_model,
std::string  filename,
std::size_t  grid_width,
std::size_t  grid_height 
)

CellsLocationOutput contructor.

Parameters
meta_modelModel from which grid cells are gathered.
filenameName of the output file
grid_widthWidth of the grid
grid_heightHeight of the grid

Member Function Documentation

◆ dump()

void CellsLocationOutput::dump ( )
override

Dumps data from the MetaModel to the JSON file.

Must be called on all processes.


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