fpmas 1.6
Static Public Member Functions | Static Public Attributes | List of all members
fpmas::model::RandomMapping Struct Reference

#include <spatial_agent_mapping.h>

Collaboration diagram for fpmas::model::RandomMapping:
Collaboration graph
[legend]

Static Public Member Functions

static void seed (random::mt19937_64::result_type seed)
 

Static Public Attributes

static random::mt19937_64 rd
 

Detailed Description

Helper class that defines a static random::mt19937_64 generator that must be used by api::model::SpatialAgentMapping implementations in order to be seeded by the fpmas::seed() method.

A non-distributed random generator is used, in order to generate the same random sequence on all processes, what is consistent with the api::model::SpatialAgentMapping specification that states that the same mapping must be generated on all processes.

See also
UniformAgentMapping
UniformGridAgentMapping
ConstrainedGridAgentMapping

Member Function Documentation

◆ seed()

void fpmas::model::RandomMapping::seed ( random::mt19937_64::result_type  seed)
static

Seeds the random generator.

Parameters
seedrandom seed

Member Data Documentation

◆ rd

random::mt19937_64 fpmas::model::RandomMapping::rd
static

Static random generator.


The documentation for this struct was generated from the following files: