![]() |
fpmas 1.6
|
#include <grid_load_balancing.h>
Public Member Functions | |
virtual int | process (DiscretePoint point) const =0 |
virtual GridDimensions | gridDimensions (int process) const =0 |
When a graph is distributed using a grid-based load-balancing algorithm, a portion of the 2D discrete space is associated to each process.
This generic interface is used to map each DiscretePoint of a grid to a process, in order to perform GridLoadBalancing.
|
pure virtual |
Returns the rank of the process that owns the specified point, according to the current GridProcessMapping implementation.
In other terms, this is the rank of the process where the GridCell located at point
and all SpatialAgents located in it will be LOCAL.
Implemented in fpmas::model::TreeProcessMapping, fpmas::model::StripProcessMapping, and fpmas::model::FastProcessMapping.
|
pure virtual |
Returns the dimensions of the local grid part associated to the specified process.
Implemented in fpmas::model::TreeProcessMapping, fpmas::model::StripProcessMapping, and fpmas::model::FastProcessMapping.