![]() |
fpmas 1.6
|
#include <dist_move_algo.h>
Public Member Functions | |
DistributedMoveAlgorithm (api::model::SpatialModel< CellType > &model, api::model::AgentGroup &move_agent_group, api::model::AgentGroup &cell_group, api::model::EndCondition< CellType > &end) | |
api::scheduler::JobList | jobs () const override |
virtual api::scheduler::JobList | jobs () const =0 |
api::model::DistributedMoveAlgorithm implementation.
|
inline |
DistributedMoveAlgorithm constructor.
|
inlinevirtual |
Reimplemented from fpmas::api::model::DistributedMoveAlgorithm< CellType >.
|
inlineoverridevirtual |
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().
model | current SpatialModel |
agents | LOCAL agents to move |
cells | LOCAL cells of the current Cell network, within which agents are moving |
Implements fpmas::api::model::DistributedMoveAlgorithm< CellType >.