|
fpmas-metamodel 1.0
|
#include <agent.h>


Public Member Functions | |
| CellType * | selectCell (fpmas::model::Neighbors< CellType > &mobility_field) const override |
| virtual CellType * | selectCell (fpmas::model::Neighbors< CellType > &mobility_field) const =0 |
MovePolicyFunction implementation: selects the cell with the maximum utility from the mobility field. If several cells have the same maximum utility, a random cell is chosen among them.
|
overridevirtual |
Selects a cell to move from the specified mobility field.
| mobility_field | Mobility field of an agent |
Implements MovePolicyFunction< CellType >.