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

#include <cell.h>

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

Public Member Functions

 MetaGraphCell (float utility, const std::vector< char > &data)
 
 MetaGraphCell (float utility, std::size_t cell_size)
 
const fpmas::api::model::AgentNode * cellNode () const override
 
 MetaCell ()=default
 
 MetaCell (float utility, std::size_t cell_size)
 
 MetaCell (float utility, const std::vector< char > &data)
 
- Public Member Functions inherited from MetaCell
 MetaCell ()=default
 
 MetaCell (float utility, std::size_t cell_size)
 
 MetaCell (float utility, const std::vector< char > &data)
 
float getUtility () const
 
const std::vector< char > & getData () const
 
void update_edge_weights ()
 
virtual void read_all_cell ()=0
 
virtual void read_one_cell ()=0
 
virtual void write_all_cell ()=0
 
virtual void write_one_cell ()=0
 
virtual void read_all_write_one_cell ()=0
 
virtual void read_all_write_all_cell ()=0
 
virtual const fpmas::api::model::AgentNode * cellNode () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from CellSerialization< MetaGraphCell >
static void to_json (nlohmann::json &j, const MetaGraphCell *cell)
 
static MetaGraphCellfrom_json (const nlohmann::json &j)
 
static std::size_t size (const fpmas::io::datapack::ObjectPack &o, const MetaGraphCell *cell)
 
static void to_datapack (fpmas::io::datapack::ObjectPack &o, const MetaGraphCell *cell)
 
static MetaGraphCellfrom_datapack (const fpmas::io::datapack::ObjectPack &o)
 
- Static Public Attributes inherited from MetaCell
static float cell_edge_weight
 

Detailed Description

MetaCell extension of MetaGraphModel.

Constructor & Destructor Documentation

◆ MetaGraphCell() [1/2]

MetaGraphCell::MetaGraphCell ( float  utility,
const std::vector< char > &  data 
)
inline

MetaGraphCell constructor.

Parameters
utilityUtility of the cell
dataVector of dummy data

◆ MetaGraphCell() [2/2]

MetaGraphCell::MetaGraphCell ( float  utility,
std::size_t  cell_size 
)
inline

MetaGraphCell constructor.

The vector of dummy data is allocated and default initialized with the specified count of elements.

Parameters
utilityUtility of the cell
cell_sizeSize of the vector of dummy data

Member Function Documentation

◆ cellNode()

const fpmas::api::model::AgentNode * MetaGraphCell::cellNode ( ) const
inlineoverridevirtual

Returns a pointer to the node containing the cell.

Implements MetaCell.

◆ MetaCell() [1/3]

MetaCell::MetaCell ( )
default

Default generated MetaCell constructor, for internal use only.

◆ MetaCell() [2/3]

MetaCell::MetaCell ( float  utility,
std::size_t  cell_size 
)
inline

MetaCell constructor.

The vector of dummy data is allocated and default initialized with the specified count of elements.

Parameters
utilityUtility of the cell
cell_sizeSize of the vector of dummy data

◆ MetaCell() [3/3]

MetaCell::MetaCell ( float  utility,
const std::vector< char > &  data 
)
inline

MetaCell constructor.

Parameters
utilityUtility of the cell
dataVector of dummy data

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