A Discrete-Event Network Simulator
API
NetAnimExperiment Class Reference

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

#include "uan-animation.h"

+ Collaboration diagram for NetAnimExperiment:

Public Member Functions

 NetAnimExperiment ()
 
void IncrementCw (uint32_t cw)
 
void ReceivePacket (Ptr< Socket > socket)
 
void ResetData ()
 
void Run (UanHelper &uan)
 
void UpdatePositions (NodeContainer &nodes)
 

Public Attributes

uint32_t m_avgs
 
double m_boundary
 
uint32_t m_bytesTotal
 
uint32_t m_cwMax
 
uint32_t m_cwMin
 
uint32_t m_cwStep
 
uint32_t m_dataRate
 
double m_depth
 
uint32_t m_numNodes
 
uint32_t m_packetSize
 
Time m_simTime
 
Time m_slotTime
 
std::vector< double > m_throughputs
 

Detailed Description

Helper class for UAN CW MAC example.

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

Constructor & Destructor Documentation

NetAnimExperiment::NetAnimExperiment ( )

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

Member Function Documentation

void NetAnimExperiment::IncrementCw ( uint32_t  cw)

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

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

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void NetAnimExperiment::ReceivePacket ( Ptr< Socket socket)

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

References ns3::Packet::GetSize(), m_bytesTotal, and ns3::Socket::Recv().

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void NetAnimExperiment::ResetData ( )

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

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

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void NetAnimExperiment::UpdatePositions ( NodeContainer nodes)

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

References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), ns3::Object::GetObject(), ns3::UniformRandomVariable::GetValue(), m_boundary, ns3::Now(), NS_LOG_DEBUG, ns3::ObjectBase::SetAttribute(), and ns3::MobilityModel::SetPosition().

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32_t NetAnimExperiment::m_avgs

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

Referenced by IncrementCw(), and Run().

double NetAnimExperiment::m_boundary

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

Referenced by Run(), and UpdatePositions().

uint32_t NetAnimExperiment::m_bytesTotal

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

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

uint32_t NetAnimExperiment::m_cwMax

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

Referenced by Run().

uint32_t NetAnimExperiment::m_cwMin

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

Referenced by Run().

uint32_t NetAnimExperiment::m_cwStep

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

Referenced by IncrementCw(), and Run().

uint32_t NetAnimExperiment::m_dataRate

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

Referenced by Run().

double NetAnimExperiment::m_depth

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

Referenced by Run().

uint32_t NetAnimExperiment::m_numNodes

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

Referenced by Run().

uint32_t NetAnimExperiment::m_packetSize

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

Referenced by Run().

Time NetAnimExperiment::m_simTime

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

Referenced by ResetData(), and Run().

Time NetAnimExperiment::m_slotTime

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

Referenced by Run().

std::vector<double> NetAnimExperiment::m_throughputs

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

Referenced by IncrementCw(), and ResetData().


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