![]() |
fpmas 1.6
|
#include <spatial_model.h>
Additional Inherited Members | |
![]() | |
typedef api::model::Cell | CellType |
virtual void | insert (GroupId id, AgentGroup *group)=0 |
![]() | |
void | insert (api::model::GroupId id, api::model::AgentGroup *group) override |
api::model::SpatialModel implementation.
SyncMode | Synchronization Mode (see fpmas::synchro) |
CellType | Cell type on which SpatialAgents are moving. The specified type might be abstract. |
EndCondition | DistributedMoveAlgorithm end condition. Uses DynamicEndCondition by default. |
|
override |
Adds a Cell to this model.
Cells added to the model constitute the "Cell network", on which SpatialAgents, added to groups created with buildMoveGroup(), will be able to move.
cell | cell to add to the model |
|
overridevirtual |
Returns the list of LOCAL cells on the current process.
Such Cells have necessarily been added to the model using add(), but might have migrate across processes during load-balancing operations.
Implements fpmas::api::model::SpatialModel< api::model::Cell >.
|
overridevirtual |
Returns the AgentGroup containing all Cells in the current SpatialModel.
Implements fpmas::api::model::SpatialModel< api::model::Cell >.
|
overridevirtual |
Returns the AgentGroup containing all Cells in the current SpatialModel.
Implements fpmas::api::model::SpatialModel< api::model::Cell >.
|
overridevirtual |
Builds an agent group that automatically includes the DistributedMoveAlgorithm execution.
The specified behavior
is assumed to include some SpatialAgent::moveTo() operations, even if it's not required. Contrary to the Model::buildGroup() method, the returned group is such that in addition to the execution of the behavior
for each agent of the group, the AgentGroup::jobs() list also includes the DistributedMoveAlgorithm::jobs() list, built properly from cells() in the model and agents contained in the AgentGroup.
id | unique group id |
behavior | agent behavior |
Implements fpmas::api::model::SpatialModel< api::model::Cell >.