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 RandomVariableBase * | Copy (void) const |
Private Attributes | |
double | m_const |
Definition at line 421 of file random-variable.cc.
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.
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.
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] |
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.
c | New constant value for this RNG. |
Definition at line 464 of file random-variable.cc.
References m_const.
double ns3::ConstantVariableImpl::m_const [private] |
Definition at line 452 of file random-variable.cc.
Referenced by GetInteger(), GetValue(), and NewConstant().