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 a random cell from the mobility field.
The probability to select each cell is proportional to its utility.
|
overridevirtual |
Selects a cell to move from the specified mobility field.
mobility_field | Mobility field of an agent |
Implements MovePolicyFunction< CellType >.