![]() |
fpmas 1.6
|
#include <grid_agent_mapping.h>


Public Member Functions | |
| UniformGridAgentMapping (DiscreteCoordinate grid_width, DiscreteCoordinate grid_height, std::size_t agent_count) | |
Public Member Functions inherited from fpmas::model::RandomGridAgentMapping | |
| template<typename DistributionX , typename DistributionY > | |
| RandomGridAgentMapping (DistributionX &&x, DistributionY &&y, std::size_t agent_count) | |
| std::size_t | countAt (api::model::GridCell *cell) override |
| virtual std::size_t | countAt (api::model::GridCell *cell)=0 |
api::model::SpatialAgentMapping implementation for grid environments.
Agents are uniformly distributed on a grid of the specified size.
|
inline |
UniformGridAgentMapping constructor.
X and Y coordinates are uniformly assigned in [0, grid_width-1], and [0, grid_height-1] respectively.
| grid_width | grid width |
| grid_height | grid height |
| agent_count | agent count |