ns3::ConstantVariableImpl Class Reference

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

List of all members.

Public Member Functions

 ConstantVariableImpl ()
 ConstantVariableImpl (double c)
 ConstantVariableImpl (const ConstantVariableImpl &c)
void NewConstant (double c)
 Specify a new constant RNG for this generator.
virtual double GetValue ()
virtual uint32_t GetInteger ()
virtual RandomVariableBaseCopy (void) const

Private Attributes

double m_const

Detailed Description

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


Constructor & Destructor Documentation

ns3::ConstantVariableImpl::ConstantVariableImpl (  ) 

Construct a ConstantVariableImpl RNG that returns zero every sample

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

Referenced by Copy().

ns3::ConstantVariableImpl::ConstantVariableImpl ( double  c  ) 

Construct a ConstantVariableImpl RNG that returns the specified value every sample.

Parameters:
c Unchanging value for this RNG.

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

ns3::ConstantVariableImpl::ConstantVariableImpl ( const ConstantVariableImpl c  ) 

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


Member Function Documentation

RandomVariableBase * ns3::ConstantVariableImpl::Copy ( void   )  const [virtual]

Implements ns3::RandomVariableBase.

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

References ConstantVariableImpl().

uint32_t ns3::ConstantVariableImpl::GetInteger (  )  [virtual]

Reimplemented from ns3::RandomVariableBase.

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

References m_const.

double ns3::ConstantVariableImpl::GetValue (  )  [virtual]
Returns:
The constant value specified

Implements ns3::RandomVariableBase.

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

References m_const.

void ns3::ConstantVariableImpl::NewConstant ( double  c  ) 

Specify a new constant RNG for this generator.

Parameters:
c New constant value for this RNG.

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

References m_const.


Member Data Documentation

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

Referenced by GetInteger(), GetValue(), and NewConstant().


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