fpmas-metamodel 1.0
|
#include <cell.h>
Public Member Functions | |
MetaGridCellFactory (const UtilityFunction &utility_function, std::vector< GridAttractor > attractors, std::size_t cell_size) | |
MetaGridCell * | build (DiscretePoint location) override |
Factory class that can be used by a GridBuilder to build MetaGridCells.
The factory is in charge of computing the initial utility of each cell.
|
inline |
MetaGridCellFactory constructor.
The utility of each cell is computed as the sum of the utility generated by the utility_function for each attractor.
utility_function | Utility function |
attractors | List of attractors used to generate utilities |
cell_size | Dummy data size for each cell, in bytes |
|
override |
Builds a MetaGridCell instance at the specified location with the specified cell_size.