A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
uan-cw-example.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 University of Washington
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Leonard Tracy <lentracy@gmail.com>
19
*/
20
21
#ifndef UAN_CW_EXAMPLE_H
22
#define UAN_CW_EXAMPLE_H
23
24
#include "ns3/network-module.h"
25
#include "ns3/stats-module.h"
26
#include "ns3/uan-module.h"
27
28
using namespace
ns3;
29
35
class
Experiment
36
{
37
public
:
38
Gnuplot2dDataset
Run (
UanHelper
&uan);
39
void
ReceivePacket
(
Ptr<Socket>
socket);
40
void
UpdatePositions (
NodeContainer
&
nodes
);
41
void
ResetData ();
42
void
IncrementCw (uint32_t cw);
43
uint32_t
m_numNodes
;
44
uint32_t
m_dataRate
;
45
double
m_depth
;
46
double
m_boundary
;
47
uint32_t
m_packetSize
;
48
uint32_t m_bytesTotal;
49
uint32_t
m_cwMin
;
50
uint32_t
m_cwMax
;
51
uint32_t
m_cwStep
;
52
uint32_t
m_avgs
;
53
54
Time
m_slotTime
;
55
Time
m_simTime
;
56
57
std::string
m_gnudatfile
;
58
std::string
m_asciitracefile
;
59
std::string
m_bhCfgFile
;
60
61
Gnuplot2dDataset
m_data
;
62
std::vector<double>
m_throughputs
;
63
64
Experiment
();
65
};
66
67
#endif
/* UAN_CW_EXAMPLE_H */
ns3::UanHelper
Definition:
uan-helper.h:34
Experiment
Helper class for UAN CW MAC example.
Definition:
multirate.cc:71
ns3::Time
keep track of time values and allow control of global simulation resolution
Definition:
nstime.h:81
ns3::Ptr< Socket >
ns3::Gnuplot2dDataset
Class to represent a 2D points plot. Set the line or points style using SetStyle() and set points usi...
Definition:
gnuplot.h:107
Experiment::m_slotTime
Time m_slotTime
Definition:
uan-cw-example.h:54
ReceivePacket
void ReceivePacket(Ptr< Socket > socket)
Definition:
energy-model-example.cc:58
Experiment::m_avgs
uint32_t m_avgs
Definition:
uan-cw-example.h:52
Experiment::m_gnudatfile
std::string m_gnudatfile
Definition:
uan-cw-example.h:57
first.nodes
tuple nodes
Definition:
first.py:25
Experiment::m_depth
double m_depth
Definition:
uan-cw-example.h:45
Experiment::m_cwMin
uint32_t m_cwMin
Definition:
uan-cw-example.h:49
Experiment::m_data
Gnuplot2dDataset m_data
Definition:
uan-cw-example.h:61
Experiment::m_throughputs
std::vector< double > m_throughputs
Definition:
uan-cw-example.h:62
Experiment::m_simTime
Time m_simTime
Definition:
uan-cw-example.h:55
Experiment::m_asciitracefile
std::string m_asciitracefile
Definition:
uan-cw-example.h:58
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:38
Experiment::m_cwMax
uint32_t m_cwMax
Definition:
uan-cw-example.h:50
Experiment::m_boundary
double m_boundary
Definition:
uan-cw-example.h:46
Experiment::m_packetSize
uint32_t m_packetSize
Definition:
uan-cw-example.h:47
Experiment::m_cwStep
uint32_t m_cwStep
Definition:
uan-cw-example.h:51
Experiment::m_dataRate
uint32_t m_dataRate
Definition:
uan-cw-example.h:44
Experiment::m_numNodes
uint32_t m_numNodes
Definition:
uan-cw-example.h:43
Experiment::m_bhCfgFile
std::string m_bhCfgFile
Definition:
uan-cw-example.h:59
src
uan
examples
uan-cw-example.h
Generated on Sat Nov 16 2013 16:17:52 for ns-3 by
1.8.5