fpmas 1.6
Public Member Functions | List of all members
fpmas::api::model::DistributedMoveAlgorithm< CellType > Class Template Referenceabstract

#include <spatial_model.h>

Inheritance diagram for fpmas::api::model::DistributedMoveAlgorithm< CellType >:
Inheritance graph
[legend]

Public Member Functions

virtual api::scheduler::JobList jobs () const =0
 

Detailed Description

template<typename CellType>
class fpmas::api::model::DistributedMoveAlgorithm< CellType >

DistributedMoveAlgorithm API.

Member Function Documentation

◆ jobs()

template<typename CellType >
virtual api::scheduler::JobList fpmas::api::model::DistributedMoveAlgorithm< CellType >::jobs ( ) const
pure virtual

Returns an executable JobList that can be used to update the location, mobility field and perceptions of all agents.

The returned job list can be scheduled right after the execution of agents' behaviors that include SpatialAgent::moveTo() operations, in order to commit them. Notice that a graph synchronization is required between those operations and the execution of jobs returned by this method.

All those operations can be handled automatically using dedicated AgentGroups: see SpatialModel::buildMoveGroup().

Parameters
modelcurrent SpatialModel
agentsLOCAL agents to move
cellsLOCAL cells of the current Cell network, within which agents are moving

Implemented in fpmas::model::DistributedMoveAlgorithm< CellType >.


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