fpmas 1.6
Public Member Functions | List of all members
fpmas::model::GridProcessMapping Class Referenceabstract

#include <grid_load_balancing.h>

Inheritance diagram for fpmas::model::GridProcessMapping:
Inheritance graph
[legend]

Public Member Functions

virtual int process (DiscretePoint point) const =0
 
virtual GridDimensions gridDimensions (int process) const =0
 

Detailed Description

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.

Member Function Documentation

◆ process()

virtual int fpmas::model::GridProcessMapping::process ( DiscretePoint  point) const
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.

◆ gridDimensions()

virtual GridDimensions fpmas::model::GridProcessMapping::gridDimensions ( int  process) const
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.


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