![]() |
fpmas 1.6
|
#include <spatial_model.h>
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 |
Predefined Cell behaviors specifically used in the context of the DistributedMoveAlgorithm.
|
pure virtual |
Implementation free initialization method, called on each Cell when the DistributedMoveAlgorithm is run, before any other behavior is executed.
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 > >.
|
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 > >.
|
pure virtual |
Handles links on the MOVE layer.
Expands the current mobility range of MOVE 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_MOVE 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 > >.
|
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 > >.
|
pure virtual |
Updates the perceptions of agents "perceiving" this Cell.
More precisely, each agent connected to this Cell on the PERCEIVE layer is linked to all agents located in this Cell, (i.e. connected on the LOCATION layer) on the PERCEPTION 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 > >.