Run utils/trim-trailing-whitespace.py on codebase
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2009 University of Washington
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
@@ -22,7 +22,7 @@
|
||||
/**
|
||||
* \file uan-cw-example.cc
|
||||
* \ingroup uan
|
||||
*
|
||||
*
|
||||
* This example showcases the "CW-MAC" described in System Design Considerations
|
||||
* for Undersea Networks article in the IEEE Journal on Selected Areas of
|
||||
* Communications 2008 by Nathan Parrish, Leonard Tracy and Sumit Roy.
|
||||
@@ -34,7 +34,7 @@
|
||||
* the duration of each slot. These parameters should be set
|
||||
* according to the overall network size, internode spacing and
|
||||
* the number of nodes in the network.
|
||||
*
|
||||
*
|
||||
* This example deploys nodes randomly (according to RNG seed of course)
|
||||
* in a finite square region with the X and Y coordinates of the nodes
|
||||
* distributed uniformly. The CW parameter is varied throughout
|
||||
@@ -55,7 +55,7 @@ using namespace ns3;
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("UanCwExample");
|
||||
|
||||
Experiment::Experiment ()
|
||||
Experiment::Experiment ()
|
||||
: m_numNodes (15),
|
||||
m_dataRate (80),
|
||||
m_depth (70),
|
||||
@@ -143,7 +143,7 @@ Experiment::Run (UanHelper &uan)
|
||||
|
||||
#ifdef UAN_PROP_BH_INSTALLED
|
||||
Ptr<UanPropModelBh> prop = CreateObjectWithAttributes<UanPropModelBh> ("ConfigFile", StringValue ("exbhconfig.cfg"));
|
||||
#else
|
||||
#else
|
||||
Ptr<UanPropModelIdeal> prop = CreateObjectWithAttributes<UanPropModelIdeal> ();
|
||||
#endif //UAN_PROP_BH_INSTALLED
|
||||
Ptr<UanChannel> channel = CreateObjectWithAttributes<UanChannel> ("PropagationModel", PointerValue (prop));
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2009 University of Washington
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
* \param cw CW value for completed runs.
|
||||
*/
|
||||
void IncrementCw (uint32_t cw);
|
||||
|
||||
|
||||
uint32_t m_numNodes; //!< Number of transmitting nodes.
|
||||
uint32_t m_dataRate; //!< DataRate in bps.
|
||||
double m_depth; //!< Depth of transmitting and sink nodes.
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
uint32_t m_cwMax; //!< Max CW to simulate.
|
||||
uint32_t m_cwStep; //!< CW step size, default 10.
|
||||
uint32_t m_avgs; //!< Number of topologies to test for each cw point.
|
||||
|
||||
|
||||
Time m_slotTime; //!< Slot time duration.
|
||||
Time m_simTime; //!< Simulation run time, default 1000 s.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2009 University of Washington
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
@@ -28,26 +28,26 @@
|
||||
* a reservation channel and a data channel. The network is assumed
|
||||
* to consist of a single gateway node which services several
|
||||
* non-gateway nodes.
|
||||
*
|
||||
*
|
||||
* Time is divided into cycles. The non-gateway nodes transmit RTS packets
|
||||
* on the reservation channel in parallel to scheduled data transmissions
|
||||
* (scheduled in the previous cycle), and the gateway stores these requests
|
||||
* for the duration of the cycle. At the start of the next cycle
|
||||
* the gateway node transmits a CTS which contains packet transmission times
|
||||
* for reserved packets as well as bandwidth allocation information
|
||||
*
|
||||
*
|
||||
* This script deploys a single gateway node (current UanMacRc only supports
|
||||
* a single gateway) in the center of a region and then distributes
|
||||
* non-gateway nodes around the gateway with a uniformly distributed range
|
||||
* between each node and the gateway.
|
||||
*
|
||||
*
|
||||
* The script supports two simulation types. By default the gateway
|
||||
* dynamically determines the optimal parameter settings and
|
||||
* simulations are run with varying number of nodes (SimMin to SimMax as
|
||||
* set by the command line). If DoNode=0 is given as a command line option
|
||||
* then the mac parameter "a" (approximate expected number of successful
|
||||
* RTS arrivals per cycle) is varied as the simulation parameter.
|
||||
*
|
||||
*
|
||||
* For questions about this MAC protocol email "lentracy@gmail.com"
|
||||
*/
|
||||
|
||||
@@ -67,7 +67,7 @@ using namespace ns3;
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("UanRcExample");
|
||||
|
||||
Experiment::Experiment ()
|
||||
Experiment::Experiment ()
|
||||
: m_simMin (1),
|
||||
m_simMax (1),
|
||||
m_simStep (1),
|
||||
@@ -81,7 +81,7 @@ Experiment::Experiment ()
|
||||
m_simTime (Seconds (5000)),
|
||||
m_gnuplotfile ("uan-rc-example.gpl"),
|
||||
m_bytesTotal (0)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2009 University of Washington
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
|
||||
Reference in New Issue
Block a user