![]() |
fpmas 1.6
|
#include <spatial_model.h>
Public Member Functions | |
virtual void | init (api::communication::MpiCommunicator &comm, std::vector< api::model::SpatialAgent< CellType > * > agents, std::vector< CellType * > cells)=0 |
virtual void | step ()=0 |
virtual bool | end ()=0 |
Generic EndCondition that can be used by a DistributedMoveAlgorithm.
|
pure virtual |
Initializes the end condition.
Since this method is synchronously called by the DistributedMoveAlgorithm on each process, it is possible to perform collective communications using the provided MpiCommunicator.
The provided agents
list contains all the LOCAL SpatialAgents on which the DistributedMoveAlgorithm will be applied.
The cells
contains LOCAL cells of the current Cell network, within which agents are moving.
comm | MPI communicator |
agents | LOCAL agents on which the DistributedMoveAlgorithm is applied |
cells | LOCAL cells of the current Cell network |
|
pure virtual |
Advances the end condition.
Implemented in fpmas::model::StaticEndCondition< RangeType, MaxRangeSize, CellType >, fpmas::model::DynamicEndCondition< CellType >, and fpmas::model::DynamicEndCondition< api::model::Cell >.
|
pure virtual |
Returns true if and only if the end condition has been reached.
Implemented in fpmas::model::StaticEndCondition< RangeType, MaxRangeSize, CellType >, fpmas::model::DynamicEndCondition< CellType >, and fpmas::model::DynamicEndCondition< api::model::Cell >.