![]() |
fpmas 1.6
|
#include <grid.h>
Public Types | |
typedef BuilderType | Builder |
typedef DistanceType | Distance |
typedef _CellType | CellType |
Generic static Grid configuration interface.
typedef BuilderType fpmas::model::GridConfig< BuilderType, DistanceType, _CellType >::Builder |
fpmas::api::model::CellNetworkBuilder implementation that can be used to build the grid.
typedef DistanceType fpmas::model::GridConfig< BuilderType, DistanceType, _CellType >::Distance |
Function object that defines a function with the following signature:
In practice, p1
and p2
corresponds to coordinates of Cells in the grid. The method must returned the length of the path from p1
to p2
within the Graph
representing this Grid
(that might have been built using the Builder).
Here is two examples:
p1
to p2
in the underlying Graph
is the ManhattanDistance from p1
to p2
.p1
to p2
in the underlying Graph
is the ChebyshevDistance from p1
to p2
. typedef _CellType fpmas::model::GridConfig< BuilderType, DistanceType, _CellType >::CellType |
Type of fpmas::api::model::Cell used by the Grid.
This type is notably used to define Range types of GridAgent evolving on the Grid.