A Discrete-Event Network Simulator
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;
54  Time m_simTime;
55 
56  std::string m_gnuplotfile;
57 
58  uint32_t m_bytesTotal;
59 
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 
111 };
112 
113 #endif /* UAN_RC_EXAMPLE_H */
WiFi adhoc experiment class.
Definition: wifi-adhoc.cc:45
uint32_t m_simMin
Minimum parameter to test.
Experiment()
Default constructor.
uint32_t m_simStep
Amount to increment param per trial.
UanModesList m_dataModes
List of UanTxModes used for data channels.
Time m_sifs
SIFS time duration.
uint32_t m_totalRate
Total channel capacity.
void ReceivePacket(Ptr< Socket > socket)
Callback to receive a packet.
bool m_doNode
1 for do max nodes simulation (invalidates AMin and AMax values).
uint32_t m_simMax
Maximum parameter to test.
UanModesList m_controlModes
List of UanTxModes used for control channels.
uint32_t m_numRates
Number of divided rates ( (NumberRates+1)TotalRate should be 0).
uint32_t m_maxRange
Maximum range between gateway and acoustic node.
uint32_t m_pktSize
Packet size in bytes.
std::string m_gnuplotfile
Filename for GnuPlot.
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
Container for UanTxModes.
Definition: uan-tx-mode.h:259
Abstraction of packet modulation information.
Definition: uan-tx-mode.h:43
Every class exported by the ns3 library is enclosed in the ns3 namespace.