A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
NetAnimExperiment Class Reference

Helper class for UAN CW MAC example. More...

#include "uan-animation.h"

+ Collaboration diagram for NetAnimExperiment:

Public Member Functions

 NetAnimExperiment ()
 the experiment
 
void IncrementCw (uint32_t cw)
 Increment CW function.
 
void ReceivePacket (Ptr< Socket > socket)
 Receive packet function.
 
void ResetData ()
 Reset data function.
 
void Run (UanHelper &uan)
 Run function.
 
void UpdatePositions (NodeContainer &nodes) const
 Update positions function.
 

Public Attributes

uint32_t m_avgs
 averages
 
double m_boundary
 boundary
 
uint32_t m_bytesTotal
 bytes total
 
uint32_t m_cwMax
 CW maximum.
 
uint32_t m_cwMin
 CW minimum.
 
uint32_t m_cwStep
 CW step.
 
uint32_t m_dataRate
 data rate
 
double m_depth
 depth
 
uint32_t m_numNodes
 number of nodes
 
uint32_t m_packetSize
 packet size
 
Time m_simTime
 simulation time
 
Time m_slotTime
 slot time
 
std::vector< doublem_throughputs
 throughputs
 

Detailed Description

Helper class for UAN CW MAC example.

Definition at line 22 of file uan-animation.h.

Constructor & Destructor Documentation

◆ NetAnimExperiment()

NetAnimExperiment::NetAnimExperiment ( )

the experiment

Definition at line 42 of file uan-animation.cc.

Member Function Documentation

◆ IncrementCw()

void NetAnimExperiment::IncrementCw ( uint32_t cw)

Increment CW function.

Parameters
cwthe CW

Definition at line 67 of file uan-animation.cc.

References ns3::RngSeedManager::GetRun(), m_avgs, m_cwStep, m_throughputs, NS_ASSERT, NS_LOG_DEBUG, ns3::Config::Set(), and ns3::RngSeedManager::SetRun().

Referenced by Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReceivePacket()

void NetAnimExperiment::ReceivePacket ( Ptr< Socket > socket)

Receive packet function.

Parameters
socketthe socket to receive from

Definition at line 102 of file uan-animation.cc.

References m_bytesTotal.

Referenced by Run().

+ Here is the caller graph for this function:

◆ ResetData()

void NetAnimExperiment::ResetData ( )

Reset data function.

Definition at line 59 of file uan-animation.cc.

References ns3::Time::GetSeconds(), m_bytesTotal, m_simTime, m_throughputs, ns3::Simulator::Now(), NS_LOG_DEBUG, and ns3::Time::S.

Referenced by Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Run()

◆ UpdatePositions()

void NetAnimExperiment::UpdatePositions ( NodeContainer & nodes) const

Update positions function.

Parameters
nodesthe collection of nodes

Definition at line 87 of file uan-animation.cc.

References ns3::NodeContainer::Begin(), ns3::CreateObject(), ns3::NodeContainer::End(), m_boundary, nodes, ns3::Simulator::Now(), NS_LOG_DEBUG, and ns3::Time::S.

Referenced by Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_avgs

uint32_t NetAnimExperiment::m_avgs

averages

Definition at line 56 of file uan-animation.h.

Referenced by IncrementCw(), and Run().

◆ m_boundary

double NetAnimExperiment::m_boundary

boundary

Definition at line 50 of file uan-animation.h.

Referenced by Run(), and UpdatePositions().

◆ m_bytesTotal

uint32_t NetAnimExperiment::m_bytesTotal

bytes total

Definition at line 52 of file uan-animation.h.

Referenced by ReceivePacket(), ResetData(), and Run().

◆ m_cwMax

uint32_t NetAnimExperiment::m_cwMax

CW maximum.

Definition at line 54 of file uan-animation.h.

Referenced by Run().

◆ m_cwMin

uint32_t NetAnimExperiment::m_cwMin

CW minimum.

Definition at line 53 of file uan-animation.h.

Referenced by Run().

◆ m_cwStep

uint32_t NetAnimExperiment::m_cwStep

CW step.

Definition at line 55 of file uan-animation.h.

Referenced by IncrementCw(), and Run().

◆ m_dataRate

uint32_t NetAnimExperiment::m_dataRate

data rate

Definition at line 48 of file uan-animation.h.

Referenced by Run().

◆ m_depth

double NetAnimExperiment::m_depth

depth

Definition at line 49 of file uan-animation.h.

Referenced by Run().

◆ m_numNodes

uint32_t NetAnimExperiment::m_numNodes

number of nodes

Definition at line 47 of file uan-animation.h.

Referenced by Run().

◆ m_packetSize

uint32_t NetAnimExperiment::m_packetSize

packet size

Definition at line 51 of file uan-animation.h.

Referenced by Run().

◆ m_simTime

Time NetAnimExperiment::m_simTime

simulation time

Definition at line 59 of file uan-animation.h.

Referenced by ResetData(), and Run().

◆ m_slotTime

Time NetAnimExperiment::m_slotTime

slot time

Definition at line 58 of file uan-animation.h.

Referenced by Run().

◆ m_throughputs

std::vector<double> NetAnimExperiment::m_throughputs

throughputs

Definition at line 61 of file uan-animation.h.

Referenced by IncrementCw(), and ResetData().


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