INET Framework for OMNeT++/OMNEST
|
Constant distribution random object. More...
#include <HttpRandom.h>
Public Member Functions | |
rdConstant (double value) | |
rdConstant (cXMLAttributeMap attributes) | |
double | draw () override |
Public Member Functions inherited from inet::httptools::rdObject | |
virtual | ~rdObject () |
DISTR_TYPE | getType () |
std::string | typeStr () |
virtual std::string | toString () |
Protected Attributes | |
double | m_value = NaN |
The constant. More... | |
Protected Attributes inherited from inet::httptools::rdObject | |
DISTR_TYPE | m_type = dt_normal |
Additional Inherited Members | |
Protected Member Functions inherited from inet::httptools::rdObject | |
bool | _hasKey (cXMLAttributeMap attributes, std::string key) |
Constant distribution random object.
Not really a random object, but used to allow constants to be assigned in stead of random distributions when initializing parameters.
inet::httptools::rdConstant::rdConstant | ( | double | value | ) |
inet::httptools::rdConstant::rdConstant | ( | cXMLAttributeMap | attributes | ) |
|
overridevirtual |
Implements inet::httptools::rdObject.
|
protected |
The constant.