ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
The RNG category. More...
#include <rng.h>
Public Member Functions | |
CCategory (const std::string &str_id, UInt32 un_seed) | |
Class constructor. | |
virtual | ~CCategory () |
Class destructor. | |
const std::string & | GetId () const throw () |
Returns the id of the category. | |
void | SetId (const std::string &str_id) |
Sets the new id of the category. | |
UInt32 | GetSeed () const |
Returns the seed of the category. | |
void | SetSeed (UInt32 un_seed) |
Sets the new seed of the category. | |
CRNG * | CreateRNG (const std::string &str_type="mt19937") |
Creates a new RNG inside this category. | |
void | ResetRNGs () |
Resets the RNGs in this category. | |
void | ReseedRNGs () |
Sets new seed for the RNGs in this category. |
The RNG category.
This class stores a specific category of RNGs.
argos::CRandom::CCategory::CCategory | ( | const std::string & | str_id, |
UInt32 | un_seed | ||
) |
argos::CRandom::CCategory::~CCategory | ( | ) | [virtual] |
CRandom::CRNG * argos::CRandom::CCategory::CreateRNG | ( | const std::string & | str_type = "mt19937" | ) |
const std::string& argos::CRandom::CCategory::GetId | ( | ) | const throw () [inline] |
UInt32 argos::CRandom::CCategory::GetSeed | ( | ) | const [inline] |
void argos::CRandom::CCategory::ResetRNGs | ( | ) |
void argos::CRandom::CCategory::SetId | ( | const std::string & | str_id | ) | [inline] |
void argos::CRandom::CCategory::SetSeed | ( | UInt32 | un_seed | ) |