fpmas 1.6
Public Member Functions | List of all members
fpmas::api::model::CellBehavior Class Referenceabstract

#include <spatial_model.h>

Inheritance diagram for fpmas::api::model::CellBehavior:
Inheritance graph
[legend]

Public Member Functions

virtual void init ()=0
 
virtual void handleNewLocation ()=0
 
virtual void handleMove ()=0
 
virtual void handlePerceive ()=0
 
virtual void updatePerceptions (AgentGroup &group)=0
 

Detailed Description

Predefined Cell behaviors specifically used in the context of the DistributedMoveAlgorithm.

Member Function Documentation

◆ init()

virtual void fpmas::api::model::CellBehavior::init ( )
pure virtual

◆ handleNewLocation()

virtual void fpmas::api::model::CellBehavior::handleNewLocation ( )
pure virtual

Handles links on the NEW_LOCATION layer.

NEW_LOCATION links are replaced by LOCATION links, and the "range growing" algorithm is initialized, linking each NEW_LOCATION edges' sources to this cell's successors on the NEW_MOVE and NEW_PERCEIVE layers.

Implemented in fpmas::model::CellBase< api::model::Cell, GraphCell, GraphCellBase< GraphCell, GraphCell > >, fpmas::model::CellBase< api::model::Cell, GraphCellType, GraphCellBase< GraphCellType, GraphCellType > >, fpmas::model::CellBase< api::model::GridCell, GridCell, GridCellBase< GridCell, GridCell > >, and fpmas::model::CellBase< api::model::GridCell, GridCellType, GridCellBase< GridCellType, GridCellType > >.

◆ handleMove()

virtual void fpmas::api::model::CellBehavior::handleMove ( )
pure virtual

◆ handlePerceive()

virtual void fpmas::api::model::CellBehavior::handlePerceive ( )
pure virtual

Handles links on the PERCEIVE layer.

Expands the current perception range of PERCEIVE edges' sources, if they have not been handled yet by this Cell. Expansion is performed linking each source to this cell's successors on the NEW_PERCEIVE layer.

Implemented in fpmas::model::CellBase< api::model::Cell, GraphCell, GraphCellBase< GraphCell, GraphCell > >, fpmas::model::CellBase< api::model::Cell, GraphCellType, GraphCellBase< GraphCellType, GraphCellType > >, fpmas::model::CellBase< api::model::GridCell, GridCell, GridCellBase< GridCell, GridCell > >, and fpmas::model::CellBase< api::model::GridCell, GridCellType, GridCellBase< GridCellType, GridCellType > >.

◆ updatePerceptions()

virtual void fpmas::api::model::CellBehavior::updatePerceptions ( AgentGroup group)
pure virtual

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