ns3::RandomVariableBase Class Reference

Inheritance diagram for ns3::RandomVariableBase:
Inheritance graph
[legend]
Collaboration diagram for ns3::RandomVariableBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RandomVariableBase ()
 RandomVariableBase (const RandomVariableBase &o)
virtual ~RandomVariableBase ()
virtual double GetValue ()=0
virtual uint32_t GetInteger ()
virtual RandomVariableBaseCopy (void) const =0
virtual void GetSeed (uint32_t seed[6])

Static Public Member Functions

static void UseDevRandom (bool udr=true)
static void UseGlobalSeed (uint32_t s0, uint32_t s1, uint32_t s2, uint32_t s3, uint32_t s4, uint32_t s5)
static void SetRunNumber (uint32_t n)

Static Protected Member Functions

static void Initialize ()

Protected Attributes

RngStreamm_generator

Static Protected Attributes

static unsigned long heuristic_sequence
static RngStreamm_static_generator = 0
static uint32_t runNumber = 0
static bool initialized = false

Static Private Member Functions

static void GetRandomSeeds (uint32_t seeds[6])

Static Private Attributes

static bool useDevRandom = false
static bool globalSeedSet = false
static int devRandom = -1
static uint32_t globalSeed [6]

Friends

class RandomVariableInitializer

Detailed Description

Definition at line 48 of file random-variable.cc.


Constructor & Destructor Documentation

ns3::RandomVariableBase::RandomVariableBase (  ) 

Definition at line 108 of file random-variable.cc.

ns3::RandomVariableBase::RandomVariableBase ( const RandomVariableBase o  ) 

Definition at line 116 of file random-variable.cc.

References m_generator.

ns3::RandomVariableBase::~RandomVariableBase (  )  [virtual]

Definition at line 125 of file random-variable.cc.

References m_generator.


Member Function Documentation

virtual RandomVariableBase* ns3::RandomVariableBase::Copy ( void   )  const [pure virtual]
uint32_t ns3::RandomVariableBase::GetInteger (  )  [virtual]

Reimplemented in ns3::ConstantVariableImpl, and ns3::IntEmpiricalVariableImpl.

Definition at line 130 of file random-variable.cc.

References GetValue().

Referenced by ns3::RandomVariable::GetInteger().

void ns3::RandomVariableBase::GetRandomSeeds ( uint32_t  seeds[6]  )  [static, private]
void ns3::RandomVariableBase::GetSeed ( uint32_t  seed[6]  )  [virtual]
virtual double ns3::RandomVariableBase::GetValue (  )  [pure virtual]
void ns3::RandomVariableBase::Initialize (  )  [static, protected]
void ns3::RandomVariableBase::SetRunNumber ( uint32_t  n  )  [static]

Definition at line 238 of file random-variable.cc.

References runNumber.

void ns3::RandomVariableBase::UseDevRandom ( bool  udr = true  )  [static]

Definition at line 135 of file random-variable.cc.

References useDevRandom.

void ns3::RandomVariableBase::UseGlobalSeed ( uint32_t  s0,
uint32_t  s1,
uint32_t  s2,
uint32_t  s3,
uint32_t  s4,
uint32_t  s5 
) [static]

Friends And Related Function Documentation

friend class RandomVariableInitializer [friend]

Definition at line 70 of file random-variable.cc.


Member Data Documentation

int ns3::RandomVariableBase::devRandom = -1 [static, private]

Definition at line 68 of file random-variable.cc.

Referenced by GetRandomSeeds().

uint32_t ns3::RandomVariableBase::globalSeed [static, private]

Definition at line 69 of file random-variable.cc.

Referenced by Initialize(), and UseGlobalSeed().

bool ns3::RandomVariableBase::globalSeedSet = false [static, private]

Definition at line 67 of file random-variable.cc.

Referenced by Initialize(), and UseGlobalSeed().

unsigned long ns3::RandomVariableBase::heuristic_sequence [static, protected]

Definition at line 72 of file random-variable.cc.

Referenced by GetRandomSeeds().

bool ns3::RandomVariableBase::initialized = false [static, protected]
uint32_t ns3::RandomVariableBase::runNumber = 0 [static, protected]
bool ns3::RandomVariableBase::useDevRandom = false [static, private]

Definition at line 66 of file random-variable.cc.

Referenced by GetRandomSeeds(), and UseDevRandom().


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:10:25 2009 for NS-3 by  doxygen 1.6.3