Helper class for static methods involving RandomVariableStream. More...
#include "random-variable-stream-helper.h"
Static Public Member Functions | |
static int64_t | AssignStreams (std::string path, int64_t stream) |
This helper method can be used to configure the stream number for one or more RNG streams. | |
Helper class for static methods involving RandomVariableStream.
Definition at line 26 of file random-variable-stream-helper.h.
|
static |
This helper method can be used to configure the stream number for one or more RNG streams.
The path passed in should correspond to an attribute path in the configuration system. It may contain wildcards and may ultimately match zero, one, or more than one object.
The objects to match are of type PointerValue where the underlying type is of type Ptr<RandomVariableStream>.
Usage would look (for node 3) like this:
path | (possibly wildcarded) path to a RandomVariableStream PointerValue |
stream | stream number to set; must be non-negative |
Definition at line 28 of file random-variable-stream-helper.cc.
References ns3::Config::MatchContainer::Get(), ns3::PointerValue::Get(), ns3::Config::MatchContainer::GetN(), ns3::Config::LookupMatches(), NS_ASSERT, NS_LOG_DEBUG, and NS_LOG_FUNCTION_NOARGS.