![]() |
fpmas 1.6
|
#include <spatial_model.h>
Public Member Functions | |
virtual void | handleNewMove ()=0 |
virtual void | handleNewPerceive ()=0 |
Predefined SpatialAgent behaviors specifically used in the context of the DistributedMoveAlgorithm.
|
pure virtual |
Handles links on the NEW_MOVE layer.
Crops the current mobility field according to the current mobility range of the agent.
For each outgoing edge on the NEW_MOVE layer:
agent->mobilityRange().contains(agent->locationCell(), edge->getTargetNode())
, edge is replaced by an edge on the MOVE layer.Implemented in fpmas::model::SpatialAgentBase< api::model::GridAgent< model::GridCell >, AgentType, model::GridCell, GridAgent< AgentType, model::GridCell, AgentType > >, and fpmas::model::SpatialAgentBase< api::model::SpatialAgent< api::model::Cell >, AgentType, api::model::Cell, AgentType >.
|
pure virtual |
Handles links on the NEW_PERCEIVE layer.
Crops the current perception field according to the current perception range of the agent.
For each outgoing edge on the NEW_PERCEIVE layer:
agent->perceptionRange().contains(agent->locationCell(), edge->getTargetNode())
, edge is replaced by an edge on the PERCEIVE layer.Implemented in fpmas::model::SpatialAgentBase< api::model::GridAgent< model::GridCell >, AgentType, model::GridCell, GridAgent< AgentType, model::GridCell, AgentType > >, and fpmas::model::SpatialAgentBase< api::model::SpatialAgent< api::model::Cell >, AgentType, api::model::Cell, AgentType >.