A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::ConstantVariableImpl Class Reference
+ Inheritance diagram for ns3::ConstantVariableImpl:

Public Member Functions

 ConstantVariableImpl ()
 
 ConstantVariableImpl (double c)
 
 ConstantVariableImpl (const ConstantVariableImpl &c)
 
virtual RandomVariableBaseCopy (void) const
 
virtual uint32_t GetInteger ()
 
virtual double GetValue ()
 
void NewConstant (double c)
 Specify a new constant RNG for this generator. More...
 
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase (const RandomVariableBase &o)
 
RngStreamGetStream (void)
 

Private Attributes

double m_const
 

Detailed Description

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

Constructor & Destructor Documentation

ns3::ConstantVariableImpl::ConstantVariableImpl ( )

Construct a ConstantVariableImpl RNG that returns zero every sample

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

References NS_LOG_FUNCTION.

ns3::ConstantVariableImpl::ConstantVariableImpl ( double  c)

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

Parameters
cUnchanging value for this RNG.

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

References NS_LOG_FUNCTION.

Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References NS_LOG_FUNCTION.

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

Specify a new constant RNG for this generator.

Parameters
cNew constant value for this RNG.

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

References NS_LOG_FUNCTION.


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