A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
uan-animation.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2010 Andrea Sacco
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Andrea Sacco <andrea.sacco85@gmail.com>
7
*/
8
9
#ifndef UAN_CW_EXAMPLE_H
10
#define UAN_CW_EXAMPLE_H
11
12
#include "ns3/network-module.h"
13
#include "ns3/uan-module.h"
14
15
using namespace
ns3
;
16
17
/**
18
* @class NetAnimExperiment
19
* @brief Helper class for UAN CW MAC example
20
*
21
*/
22
class
NetAnimExperiment
23
{
24
public
:
25
/**
26
* Run function
27
* @param uan the UAN helper
28
*/
29
void
Run
(
UanHelper
& uan);
30
/**
31
* Receive packet function
32
* @param socket the socket to receive from
33
*/
34
void
ReceivePacket
(
Ptr<Socket>
socket);
35
/**
36
* Update positions function
37
* @param nodes the collection of nodes
38
*/
39
void
UpdatePositions
(
NodeContainer
&
nodes
)
const
;
40
/// Reset data function
41
void
ResetData
();
42
/**
43
* Increment CW function
44
* @param cw the CW
45
*/
46
void
IncrementCw
(
uint32_t
cw);
47
uint32_t
m_numNodes
;
///< number of nodes
48
uint32_t
m_dataRate
;
///< data rate
49
double
m_depth
;
///< depth
50
double
m_boundary
;
///< boundary
51
uint32_t
m_packetSize
;
///< packet size
52
uint32_t
m_bytesTotal
;
///< bytes total
53
uint32_t
m_cwMin
;
///< CW minimum
54
uint32_t
m_cwMax
;
///< CW maximum
55
uint32_t
m_cwStep
;
///< CW step
56
uint32_t
m_avgs
;
///< averages
57
58
Time
m_slotTime
;
///< slot time
59
Time
m_simTime
;
///< simulation time
60
61
std::vector<double>
m_throughputs
;
///< throughputs
62
63
/// the experiment
64
NetAnimExperiment
();
65
};
66
67
#endif
/* UAN_CW_EXAMPLE_H */
NetAnimExperiment
Helper class for UAN CW MAC example.
Definition
uan-animation.h:23
NetAnimExperiment::IncrementCw
void IncrementCw(uint32_t cw)
Increment CW function.
Definition
uan-animation.cc:67
NetAnimExperiment::m_boundary
double m_boundary
boundary
Definition
uan-animation.h:50
NetAnimExperiment::m_throughputs
std::vector< double > m_throughputs
throughputs
Definition
uan-animation.h:61
NetAnimExperiment::m_cwMin
uint32_t m_cwMin
CW minimum.
Definition
uan-animation.h:53
NetAnimExperiment::m_cwMax
uint32_t m_cwMax
CW maximum.
Definition
uan-animation.h:54
NetAnimExperiment::Run
void Run(UanHelper &uan)
Run function.
Definition
uan-animation.cc:114
NetAnimExperiment::m_simTime
Time m_simTime
simulation time
Definition
uan-animation.h:59
NetAnimExperiment::m_depth
double m_depth
depth
Definition
uan-animation.h:49
NetAnimExperiment::m_dataRate
uint32_t m_dataRate
data rate
Definition
uan-animation.h:48
NetAnimExperiment::m_numNodes
uint32_t m_numNodes
number of nodes
Definition
uan-animation.h:47
NetAnimExperiment::m_slotTime
Time m_slotTime
slot time
Definition
uan-animation.h:58
NetAnimExperiment::m_packetSize
uint32_t m_packetSize
packet size
Definition
uan-animation.h:51
NetAnimExperiment::ReceivePacket
void ReceivePacket(Ptr< Socket > socket)
Receive packet function.
Definition
uan-animation.cc:102
NetAnimExperiment::ResetData
void ResetData()
Reset data function.
Definition
uan-animation.cc:59
NetAnimExperiment::NetAnimExperiment
NetAnimExperiment()
the experiment
Definition
uan-animation.cc:42
NetAnimExperiment::m_avgs
uint32_t m_avgs
averages
Definition
uan-animation.h:56
NetAnimExperiment::UpdatePositions
void UpdatePositions(NodeContainer &nodes) const
Update positions function.
Definition
uan-animation.cc:87
NetAnimExperiment::m_bytesTotal
uint32_t m_bytesTotal
bytes total
Definition
uan-animation.h:52
NetAnimExperiment::m_cwStep
uint32_t m_cwStep
CW step.
Definition
uan-animation.h:55
ns3::NodeContainer
keep track of a set of node pointers.
Definition
node-container.h:29
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::UanHelper
UAN configuration helper.
Definition
uan-helper.h:31
uint32_t
nodes
NodeContainer nodes
Definition
lr-wpan-bootstrap.cc:43
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
netanim
examples
uan-animation.h
Generated on Fri Dec 13 2024 18:20:46 for ns-3 by
1.11.0