|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
27 #include "ns3/enums.h"
28 #include "ns3/outputmanager.h"
29 #include "ns3/onion-routing.h"
30 #include "ns3/sensornode.h"
31 #include "ns3/sensornode-helper.h"
33 #include "ns3/sink-helper.h"
34 #include "ns3/outputmanager.h"
35 #include "ns3/onionvalidator.h"
37 #include "ns3/internet-module.h"
38 #include "ns3/mobility-module.h"
39 #include "ns3/network-module.h"
40 #include "ns3/core-module.h"
41 #include "ns3/wifi-module.h"
42 #include "ns3/aodv-module.h"
43 #include "ns3/olsr-module.h"
44 #include "ns3/dsr-module.h"
45 #include "ns3/dsdv-module.h"
46 #include "ns3/stats-module.h"
47 #include "ns3/flow-monitor-module.h"
48 #include "ns3/config-store-module.h"
50 #ifndef WSNCONSTRUCTOR_H
51 #define WSNCONSTRUCTOR_H
77 static TypeId GetTypeId (
void);
124 uint16_t m_numOnionPaths = 0;
139 void ProcessPathString ();
147 void CaptureStatistics ();
161 void CreateDevices ();
171 void BuildDiscTopology ();
181 void BuildGridTopology ();
188 void InstallInternetStack ();
195 void InstallApplications ();
232 #endif // WSNCONSTRUCTOR_H
ApplicationContainer sinkApps
Container of sink node applications.
NetDeviceContainer wifiDevices
Container of wireless devices.
CommunicationStatistics
Statistics about the communication overhead in the network at MAC and Application layer.
uint16_t m_radius
Parameter for the setup of the random disc topology.
IEEE_80211n
Enumeration defining different carrier frequencies of the standard IEEE 802.11n.
uint16_t m_mss
maximum segment size
NodeContainer m_sink
Container of the sink node.
uint16_t m_numNodes
number of sensor nodes in the WSN
Ipv4InterfaceContainer wifiInterfaces
Container of netork interfaces.
Ptr< OnionValidator > m_onionValidator
Checks if the onion messagess transiting in the network are valid.
NodeContainer wifiNodes
Container of wireless nodes.
std::string m_pathsLengths
String of values delimited by the symbol "," each value representing the number of hops the onion wil...
uint16_t m_cellSide
Parameter for the setup of the grid topology.
std::string m_simulationDescription
String holding a description of parameters used in the simulation.
ApplicationContainer sensornodeApps
Container of sensor node applications.
std::string m_simulationName
name of the simulation
MobilityHelper mobility
Topology helper.
Topology
Enumeration defining different network topologies that can be used in the simulation.
NodeContainer sensornodes
Container of sensor nodes.
uint16_t * m_onionPathsLengths
Array containing one onion path length in each cell.
Verbosity
Verbosity settings of the simulation.
DataCollector data
Collect data with the stats framework.
The class that constructs the WSN, setup applications on nodes and starts the simulation.
uint32_t m_simulationSeed
seed to use for the random generation of numbers during the simulation
Routing
Enumeration defining different routing algorithms that can be used in the simulator.
Ptr< OutputManager > m_outputManager
Manages the output of the simulation.
uint16_t m_onionRepeate
Number of times to generate the onion for each value of path length.