fpmas-metamodel 1.0
|
#include <cell.h>
Public Member Functions | |
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 |
Static Public Attributes | |
static float | cell_edge_weight |
A generic MetaCell class, that defines features common for both MetaGridCells and MetaGraphCells.
|
default |
Default generated MetaCell constructor, for internal use only.
|
inline |
MetaCell constructor.
The vector of dummy data is allocated and default initialized with the specified count of elements.
utility | Utility of the cell |
cell_size | Size of the vector of dummy data |
|
inline |
MetaCell constructor.
utility | Utility of the cell |
data | Vector of dummy data |
|
inline |
Utility associated to this cell.
|
inline |
Dummy data used to emulate different serialisation sizes.
void MetaCell::update_edge_weights | ( | ) |
Sets the weight of outgoing CELL_SUCCESSOR edges to cell_edge_weight+[count of agents located in the cell]
.
This can be useful to better handle the DistributedMoveAlgorithm with graph based load balancing algorithms.
|
pure virtual |
Interactions::READ_ALL behavior implementation.
|
pure virtual |
Interactions::READ_ONE behavior implementation.
|
pure virtual |
Interactions::WRITE_ALL behavior implementation.
|
pure virtual |
Interactions::WRITE_ONE behavior implementation.
|
pure virtual |
Interactions::READ_ALL_WRITE_ONE behavior implementation.
|
pure virtual |
Interactions::READ_ALL_WRITE_ALL behavior implementation.
|
pure virtual |
Returns a pointer to the node containing the cell.
Implemented in MetaGridCell, and MetaGraphCell.
|
static |
Default weight of CELL_SUCCESSOR edges.