AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
ns3::anthocnet::Ns3Rng Class Reference

#include </home/runner/work/AntHocNet/AntHocNet/ns3/model/anthocnet-adapters.h>

Inheritance diagram for ns3::anthocnet::Ns3Rng:
anthocnet::core::IRng

Public Member Functions

 Ns3Rng ()
 
double uniform () override
 Uniform double in [0, 1).
 
int uniformInt (int n) override
 Uniform integer in [0, n). Caller guarantees n > 0.
 
Ptr< UniformRandomVariable > Stream () const
 Expose the underlying stream so the protocol's AssignStreams() can seed it deterministically.
 
- Public Member Functions inherited from anthocnet::core::IRng
virtual ~IRng ()=default
 

Detailed Description

Definition at line 26 of file anthocnet-adapters.h.

Constructor & Destructor Documentation

◆ Ns3Rng()

ns3::anthocnet::Ns3Rng::Ns3Rng ( )

Member Function Documentation

◆ uniform()

double ns3::anthocnet::Ns3Rng::uniform ( )
overridevirtual

Uniform double in [0, 1).

Implements anthocnet::core::IRng.

◆ uniformInt()

int ns3::anthocnet::Ns3Rng::uniformInt ( int  n)
overridevirtual

Uniform integer in [0, n). Caller guarantees n > 0.

Implements anthocnet::core::IRng.

◆ Stream()

Ptr< UniformRandomVariable > ns3::anthocnet::Ns3Rng::Stream ( ) const
inline

Expose the underlying stream so the protocol's AssignStreams() can seed it deterministically.

Definition at line 35 of file anthocnet-adapters.h.


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