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
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Andrea Sacco <andrea.sacco85@gmail.com>
18
*/
19
20
#ifndef UAN_CW_EXAMPLE_H
21
#define UAN_CW_EXAMPLE_H
22
23
#include "ns3/network-module.h"
24
#include "ns3/uan-module.h"
25
26
using namespace
ns3
;
27
33
class
NetAnimExperiment
34
{
35
public
:
40
void
Run
(
UanHelper
& uan);
45
void
ReceivePacket
(
Ptr<Socket>
socket);
50
void
UpdatePositions
(
NodeContainer
&
nodes
)
const
;
52
void
ResetData
();
57
void
IncrementCw
(
uint32_t
cw);
58
uint32_t
m_numNodes
;
59
uint32_t
m_dataRate
;
60
double
m_depth
;
61
double
m_boundary
;
62
uint32_t
m_packetSize
;
63
uint32_t
m_bytesTotal
;
64
uint32_t
m_cwMin
;
65
uint32_t
m_cwMax
;
66
uint32_t
m_cwStep
;
67
uint32_t
m_avgs
;
68
69
Time
m_slotTime
;
70
Time
m_simTime
;
71
72
std::vector<double>
m_throughputs
;
73
75
NetAnimExperiment
();
76
};
77
78
#endif
/* UAN_CW_EXAMPLE_H */
NetAnimExperiment
Helper class for UAN CW MAC example.
Definition:
uan-animation.h:34
NetAnimExperiment::IncrementCw
void IncrementCw(uint32_t cw)
Increment CW function.
Definition:
uan-animation.cc:78
NetAnimExperiment::m_boundary
double m_boundary
boundary
Definition:
uan-animation.h:61
NetAnimExperiment::m_throughputs
std::vector< double > m_throughputs
throughputs
Definition:
uan-animation.h:72
NetAnimExperiment::m_cwMin
uint32_t m_cwMin
CW minimum.
Definition:
uan-animation.h:64
NetAnimExperiment::m_cwMax
uint32_t m_cwMax
CW maximum.
Definition:
uan-animation.h:65
NetAnimExperiment::Run
void Run(UanHelper &uan)
Run function.
Definition:
uan-animation.cc:125
NetAnimExperiment::m_simTime
Time m_simTime
simulation time
Definition:
uan-animation.h:70
NetAnimExperiment::m_depth
double m_depth
depth
Definition:
uan-animation.h:60
NetAnimExperiment::m_dataRate
uint32_t m_dataRate
data rate
Definition:
uan-animation.h:59
NetAnimExperiment::m_numNodes
uint32_t m_numNodes
number of nodes
Definition:
uan-animation.h:58
NetAnimExperiment::m_slotTime
Time m_slotTime
slot time
Definition:
uan-animation.h:69
NetAnimExperiment::m_packetSize
uint32_t m_packetSize
packet size
Definition:
uan-animation.h:62
NetAnimExperiment::ReceivePacket
void ReceivePacket(Ptr< Socket > socket)
Receive packet function.
Definition:
uan-animation.cc:113
NetAnimExperiment::ResetData
void ResetData()
Reset data function.
Definition:
uan-animation.cc:70
NetAnimExperiment::NetAnimExperiment
NetAnimExperiment()
the experiment
Definition:
uan-animation.cc:53
NetAnimExperiment::m_avgs
uint32_t m_avgs
averages
Definition:
uan-animation.h:67
NetAnimExperiment::UpdatePositions
void UpdatePositions(NodeContainer &nodes) const
Update positions function.
Definition:
uan-animation.cc:98
NetAnimExperiment::m_bytesTotal
uint32_t m_bytesTotal
bytes total
Definition:
uan-animation.h:63
NetAnimExperiment::m_cwStep
uint32_t m_cwStep
CW step.
Definition:
uan-animation.h:66
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:40
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::UanHelper
UAN configuration helper.
Definition:
uan-helper.h:42
uint32_t
nodes
NodeContainer nodes
Definition:
lr-wpan-bootstrap.cc:53
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
netanim
examples
uan-animation.h
Generated on Thu Feb 8 2024 09:25:38 for ns-3 by
1.9.6