eosim::dist::DistManager                        EoSimulator Programmer's Manual

 

NAME

      DistManager: Distribution Manager

 

SYNOPSIS

      #include <eosim/dist/distmanager.hpp>

 

      namespace eosim {

      namespace dist {

 

class DistManager {

public:

DistManager (GenType seedGenerator_);

~DistManager ();

void setSeed (unsigned long seed_);

void registerDist (Distribution* d);

            };

     

      }

      }

 

DESCRIPTION

This class handles a set of distributions. Its main responsibility is to perform operations to the whole set. It contains a seed generator to assign new seeds for the distributions registered.

 

CLASS OPERATIONS

DistManager (GenType seedGenerator_):

      The constructor creates an empty DistManager with a seed generator of type seedGenerator_.

     

~DistManager ():

      The destructor of DistManager don’t delete any registered distribution.

     

void setSeed (unsigned long seed_):

            This operation sets a new seed to every distribution registered. For that it uses both seed_ and its seed generator.

           

void registerDist (Distribution* d):

            This operation register d_ in the DistManager.

 

 

SEE ALSO

eosim::dist::Distribution

eosim::dist::NumberGenerator

      eosim::utils::DistVector