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

#include <cell.h>

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

Public Member Functions

 MetaGridCellFactory (const UtilityFunction &utility_function, std::vector< GridAttractor > attractors, std::size_t cell_size)
 
MetaGridCellbuild (DiscretePoint location) override
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MetaGridCellFactory()

MetaGridCellFactory::MetaGridCellFactory ( const UtilityFunction utility_function,
std::vector< GridAttractor attractors,
std::size_t  cell_size 
)
inline

MetaGridCellFactory constructor.

The utility of each cell is computed as the sum of the utility generated by the utility_function for each attractor.

Parameters
utility_functionUtility function
attractorsList of attractors used to generate utilities
cell_sizeDummy data size for each cell, in bytes

Member Function Documentation

◆ build()

MetaGridCell * MetaGridCellFactory::build ( DiscretePoint  location)
override

Builds a MetaGridCell instance at the specified location with the specified cell_size.


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