CVR-Lib last update 20 Sep 2009

cvr::randomDistribution::randomDistribution::parameters Class Reference

The parameters for the class randomDistribution. More...

#include <cvrRandomDistribution.h>

Inheritance diagram for cvr::randomDistribution::randomDistribution::parameters:

Inheritance graph
[legend]
Collaboration diagram for cvr::randomDistribution::randomDistribution::parameters:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual const std::string & name () const
virtual parametersclone () const
virtual parametersnewInstance () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

eNumberGenerator generator
uint32 seed
std::string device


Detailed Description

The parameters for the class randomDistribution.

Constructor & Destructor Documentation

cvr::randomDistribution::randomDistribution::parameters::parameters (  ) 

cvr::randomDistribution::randomDistribution::parameters::parameters ( const parameters other  ) 

cvr::randomDistribution::randomDistribution::parameters::~parameters (  )  [virtual]


Member Function Documentation

virtual parameters* cvr::randomDistribution::randomDistribution::parameters::clone (  )  const [virtual]

parameters& cvr::randomDistribution::randomDistribution::parameters::copy ( const parameters other  ) 

virtual const std::string& cvr::randomDistribution::randomDistribution::parameters::name (  )  const [virtual]

virtual parameters* cvr::randomDistribution::randomDistribution::parameters::newInstance (  )  const [virtual]

parameters& cvr::randomDistribution::randomDistribution::parameters::operator= ( const parameters other  ) 

virtual bool cvr::randomDistribution::randomDistribution::parameters::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

Read the parameters from the given ioHandler.

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from cvr::parametersManager::parametersManager::parameters.

Reimplemented in cvr::normalDistribution::normalDistribution::parameters, cvr::uniformContinuousDistribution::uniformContinuousDistribution::parameters, and cvr::uniformDiscreteDistribution::uniformDiscreteDistribution::parameters.

virtual bool cvr::randomDistribution::randomDistribution::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

Write the parameters in the given ioHandler.

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from cvr::parametersManager::parametersManager::parameters.

Reimplemented in cvr::normalDistribution::normalDistribution::parameters, cvr::uniformContinuousDistribution::uniformContinuousDistribution::parameters, and cvr::uniformDiscreteDistribution::uniformDiscreteDistribution::parameters.


Member Data Documentation

std::string cvr::randomDistribution::randomDistribution::parameters::device

Name of the device for the stochastic number generator.

This is used only if generator=Stochastic. In case the given device does not exist, setting the parameters will fail, and the corresponding status string will be set accordingly.

Default value: "/dev/urandom"

eNumberGenerator cvr::randomDistribution::randomDistribution::parameters::generator

Type of number generator to be used.

Default value: MT

uint32 cvr::randomDistribution::randomDistribution::parameters::seed

Seed for the number generator.

The seed is not allowed to be 0. In that case, no seed setting will be done.

Default value: 15485863 (the 1 millionth prime number)


The documentation for this class was generated from the following file:

Generated on Sun Sep 20 22:09:03 2009 for CVR-Lib by Doxygen 1.5.8