A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
uan-rc-example.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 University of Washington
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: Leonard Tracy <lentracy@gmail.com>
18
*/
19
20
#ifndef UAN_RC_EXAMPLE_H
21
#define UAN_RC_EXAMPLE_H
22
23
#include "ns3/network-module.h"
24
#include "ns3/stats-module.h"
25
#include "ns3/uan-module.h"
26
27
using namespace
ns3
;
28
41
class
Experiment
42
{
43
public
:
44
uint32_t
m_simMin
;
45
uint32_t
m_simMax
;
46
uint32_t
m_simStep
;
47
uint32_t
m_numRates
;
48
uint32_t
m_totalRate
;
49
uint32_t
m_maxRange
;
50
uint32_t m_numNodes;
51
uint32_t
m_pktSize
;
52
bool
m_doNode
;
53
Time
m_sifs
;
54
Time
m_simTime;
55
56
std::string
m_gnuplotfile
;
57
58
uint32_t m_bytesTotal;
59
60
UanModesList
m_dataModes
;
61
UanModesList
m_controlModes
;
62
68
void
ReceivePacket
(
Ptr<Socket>
socket);
90
UanTxMode
CreateMode(uint32_t kass, uint32_t fc,
bool
upperblock, std::string name)
const
;
96
void
CreateDualModes(uint32_t fc);
107
uint32_t Run(uint32_t param);
108
110
Experiment
();
111
};
112
113
#endif
/* UAN_RC_EXAMPLE_H */
Experiment
WiFi adhoc experiment class.
Definition:
wifi-adhoc.cc:45
Experiment::m_simMin
uint32_t m_simMin
Minimum parameter to test.
Definition:
uan-rc-example.h:44
Experiment::Experiment
Experiment()
Default constructor.
Experiment::m_simStep
uint32_t m_simStep
Amount to increment param per trial.
Definition:
uan-rc-example.h:46
Experiment::m_dataModes
UanModesList m_dataModes
List of UanTxModes used for data channels.
Definition:
uan-rc-example.h:60
Experiment::m_sifs
Time m_sifs
SIFS time duration.
Definition:
uan-rc-example.h:53
Experiment::m_totalRate
uint32_t m_totalRate
Total channel capacity.
Definition:
uan-rc-example.h:48
Experiment::ReceivePacket
void ReceivePacket(Ptr< Socket > socket)
Callback to receive a packet.
Experiment::m_doNode
bool m_doNode
1 for do max nodes simulation (invalidates AMin and AMax values).
Definition:
uan-rc-example.h:52
Experiment::m_simMax
uint32_t m_simMax
Maximum parameter to test.
Definition:
uan-rc-example.h:45
Experiment::m_controlModes
UanModesList m_controlModes
List of UanTxModes used for control channels.
Definition:
uan-rc-example.h:61
Experiment::m_numRates
uint32_t m_numRates
Number of divided rates ( (NumberRates+1)TotalRate should be 0).
Definition:
uan-rc-example.h:47
Experiment::m_maxRange
uint32_t m_maxRange
Maximum range between gateway and acoustic node.
Definition:
uan-rc-example.h:49
Experiment::m_pktSize
uint32_t m_pktSize
Packet size in bytes.
Definition:
uan-rc-example.h:51
Experiment::m_gnuplotfile
std::string m_gnuplotfile
Filename for GnuPlot.
Definition:
uan-rc-example.h:56
ns3::Ptr< Socket >
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::UanModesList
Container for UanTxModes.
Definition:
uan-tx-mode.h:259
ns3::UanTxMode
Abstraction of packet modulation information.
Definition:
uan-tx-mode.h:43
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
uan
examples
uan-rc-example.h
Generated on Sun Mar 3 2024 17:11:09 for ns-3 by
1.9.1