A Discrete-Event Network Simulator
Bench Class Reference
+ Collaboration diagram for Bench:

Public Member Functions

 Bench (const uint32_t population, const uint32_t total)
void RunBench (void)
void SetPopulation (const uint32_t population)
void SetRandomStream (Ptr< RandomVariableStream > stream)
void SetTotal (const uint32_t total)

Private Member Functions

void Cb (void)

Private Attributes

uint32_t m_count
uint32_t m_population
Ptr< RandomVariableStreamm_rand
uint32_t m_total

Detailed Description

Definition at line 42 of file bench-simulator.cc.

Constructor & Destructor Documentation

Bench::Bench ( const uint32_t  population,
const uint32_t  total 

Definition at line 45 of file bench-simulator.cc.

Member Function Documentation

void Bench::Cb ( void  )

Definition at line 113 of file bench-simulator.cc.

References DEB, ns3::NanoSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().

Referenced by RunBench().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Bench::RunBench ( void  )
void Bench::SetPopulation ( const uint32_t  population)

Definition at line 56 of file bench-simulator.cc.

void Bench::SetRandomStream ( Ptr< RandomVariableStream stream)

Definition at line 51 of file bench-simulator.cc.

void Bench::SetTotal ( const uint32_t  total)

Definition at line 61 of file bench-simulator.cc.

Member Data Documentation

uint32_t Bench::m_count

Definition at line 73 of file bench-simulator.cc.

uint32_t Bench::m_population

Definition at line 71 of file bench-simulator.cc.

Ptr<RandomVariableStream> Bench::m_rand

Definition at line 70 of file bench-simulator.cc.

uint32_t Bench::m_total

Definition at line 72 of file bench-simulator.cc.

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