![]() |
fpmas 1.6
|
#include <model.h>
Public Member Functions | |
virtual api::random::Generator< std::FPMAS_AGENT_RNG::result_type > & | rd ()=0 |
virtual void | seed (std::FPMAS_AGENT_RNG::result_type seed)=0 |
Interface from which Agents can inherit to embed their own random number generator.
The type of random number generator used is determined at compile time by the FPMAS_AGENT_RNG parameter.
|
pure virtual |
Returns a reference to the sequential random number bound to this agent.
The implementation should ensure that each agent produces an indenpendent random number sequence.
This can be perfomed:
Implemented in fpmas::model::GridCellBase< GridCellType, Derived >, fpmas::model::GridCellBase< GridCell >, and fpmas::model::GridAgent< AgentType, GridCellType, Derived >.
|
pure virtual |
Seeds the generator bound to this agent.
Implemented in fpmas::model::GridAgent< AgentType, GridCellType, Derived >.