fpmas-metamodel 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MovePolicyFunction< CellType > Struct Template Referenceabstract

#include <agent.h>

Inheritance diagram for MovePolicyFunction< CellType >:
Inheritance graph
[legend]

Public Member Functions

virtual CellType * selectCell (fpmas::model::Neighbors< CellType > &mobility_field) const =0
 

Detailed Description

template<typename CellType>
struct MovePolicyFunction< CellType >

Interface used to select the cell to which an agent will move.

Member Function Documentation

◆ selectCell()

template<typename CellType >
virtual CellType * MovePolicyFunction< CellType >::selectCell ( fpmas::model::Neighbors< CellType > &  mobility_field) const
pure virtual

Selects a cell to move from the specified mobility field.

Parameters
mobility_fieldMobility field of an agent
Returns
Pointer to the selected cell

Implemented in RandomMovePolicy< CellType >, and MaxMovePolicy< CellType >.


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