diff --git a/examples/wireless/80211e-txop.cc b/examples/wireless/80211e-txop.cc index 70c59703d..dcafc98dc 100644 --- a/examples/wireless/80211e-txop.cc +++ b/examples/wireless/80211e-txop.cc @@ -18,11 +18,21 @@ * Author: Sébastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/string.h" +#include "ns3/pointer.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/wifi-net-device.h" +#include "ns3/edca-txop-n.h" +#include "ns3/wifi-mac.h" // This is an example that illustrates 802.11 QoS for different Access Categories. // It defines 4 independant Wi-Fi networks (working on different logical channels diff --git a/examples/wireless/80211n-mimo.cc b/examples/wireless/80211n-mimo.cc index 9bb45d6ef..0012a62f2 100644 --- a/examples/wireless/80211n-mimo.cc +++ b/examples/wireless/80211n-mimo.cc @@ -31,12 +31,24 @@ // The user can choose whether UDP or TCP should be used and can configure // some 802.11n parameters (frequency, channel width and guard interval). -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" #include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" using namespace ns3; diff --git a/examples/wireless/dsss-validation.cc b/examples/wireless/dsss-validation.cc index 1c2b55585..d9a6a91d7 100644 --- a/examples/wireless/dsss-validation.cc +++ b/examples/wireless/dsss-validation.cc @@ -21,8 +21,10 @@ // It outputs plots of the Frame Success Rate versus the Signal-to-noise ratio // for the DSSS error rate models and for every DSSS mode. +#include +#include #include "ns3/gnuplot.h" -#include "ns3/core-module.h" +#include "ns3/command-line.h" #include "ns3/yans-error-rate-model.h" #include "ns3/nist-error-rate-model.h" #include "ns3/wifi-tx-vector.h" diff --git a/examples/wireless/he-wifi-network.cc b/examples/wireless/he-wifi-network.cc index 572b01149..1db97a6f9 100644 --- a/examples/wireless/he-wifi-network.cc +++ b/examples/wireless/he-wifi-network.cc @@ -18,11 +18,24 @@ * Author: Sebastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" // This is a simple example in order to show how to configure an IEEE 802.11ax Wi-Fi network. // diff --git a/examples/wireless/ht-wifi-network.cc b/examples/wireless/ht-wifi-network.cc index 9fd306782..9622c115e 100644 --- a/examples/wireless/ht-wifi-network.cc +++ b/examples/wireless/ht-wifi-network.cc @@ -19,11 +19,24 @@ * Sebastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" // This is a simple example in order to show how to configure an IEEE 802.11n Wi-Fi network. // diff --git a/examples/wireless/mixed-network.cc b/examples/wireless/mixed-network.cc index 9b72bac4e..6d60ea98a 100644 --- a/examples/wireless/mixed-network.cc +++ b/examples/wireless/mixed-network.cc @@ -18,11 +18,24 @@ * Author: Sébastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/string.h" +#include "ns3/pointer.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/wifi-net-device.h" +#include "ns3/edca-txop-n.h" +#include "ns3/wifi-mac.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/packet-sink.h" // This example shows how to configure mixed networks (i.e. mixed b/g and HT/non-HT) and how are performance in several scenarios. // diff --git a/examples/wireless/mixed-wired-wireless.cc b/examples/wireless/mixed-wired-wireless.cc index 483b1bc7a..eb6c2be77 100644 --- a/examples/wireless/mixed-wired-wireless.cc +++ b/examples/wireless/mixed-wired-wireless.cc @@ -58,14 +58,20 @@ // Note that certain mobility patterns may cause packet forwarding // to fail (if nodes become disconnected) -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/csma-module.h" +#include "ns3/command-line.h" +#include "ns3/string.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/edca-txop-n.h" +#include "ns3/packet-sink-helper.h" #include "ns3/olsr-helper.h" -#include "ns3/internet-module.h" -#include "ns3/netanim-module.h" +#include "ns3/csma-helper.h" +#include "ns3/animation-interface.h" using namespace ns3; diff --git a/examples/wireless/multirate.cc b/examples/wireless/multirate.cc index dde3cc41d..ffd085b0d 100644 --- a/examples/wireless/multirate.cc +++ b/examples/wireless/multirate.cc @@ -48,14 +48,26 @@ * */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/mobility-module.h" -#include "ns3/stats-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" -#include "ns3/flow-monitor-helper.h" +#include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" #include "ns3/olsr-helper.h" +#include "ns3/ipv4-static-routing-helper.h" +#include "ns3/ipv4-list-routing-helper.h" +#include "ns3/rectangle.h" +#include "ns3/flow-monitor-helper.h" using namespace ns3; diff --git a/examples/wireless/ofdm-he-validation.cc b/examples/wireless/ofdm-he-validation.cc index 9cb019746..1e78563a6 100644 --- a/examples/wireless/ofdm-he-validation.cc +++ b/examples/wireless/ofdm-he-validation.cc @@ -21,8 +21,10 @@ // It outputs plots of the Frame Success Rate versus the Signal-to-noise ratio for // both NIST and YANS error rate models and for every HE MCS value. +#include +#include #include "ns3/gnuplot.h" -#include "ns3/core-module.h" +#include "ns3/command-line.h" #include "ns3/yans-error-rate-model.h" #include "ns3/nist-error-rate-model.h" #include "ns3/wifi-tx-vector.h" diff --git a/examples/wireless/ofdm-ht-validation.cc b/examples/wireless/ofdm-ht-validation.cc index ef85cfb1e..df8deb24f 100644 --- a/examples/wireless/ofdm-ht-validation.cc +++ b/examples/wireless/ofdm-ht-validation.cc @@ -21,8 +21,10 @@ // It outputs plots of the Frame Success Rate versus the Signal-to-noise ratio for // both NIST and YANS error rate models and for every HT MCS value. +#include +#include #include "ns3/gnuplot.h" -#include "ns3/core-module.h" +#include "ns3/command-line.h" #include "ns3/yans-error-rate-model.h" #include "ns3/nist-error-rate-model.h" #include "ns3/wifi-tx-vector.h" diff --git a/examples/wireless/ofdm-validation.cc b/examples/wireless/ofdm-validation.cc index 3055ba80c..5fb9e3748 100644 --- a/examples/wireless/ofdm-validation.cc +++ b/examples/wireless/ofdm-validation.cc @@ -23,8 +23,10 @@ // It outputs plots of the Frame Success Rate versus the Signal-to-noise ratio for // both NIST and YANS error rate models and for every OFDM mode. +#include +#include #include "ns3/gnuplot.h" -#include "ns3/core-module.h" +#include "ns3/command-line.h" #include "ns3/yans-error-rate-model.h" #include "ns3/nist-error-rate-model.h" #include "ns3/wifi-tx-vector.h" diff --git a/examples/wireless/ofdm-vht-validation.cc b/examples/wireless/ofdm-vht-validation.cc index 3cbb666c1..c8caab314 100644 --- a/examples/wireless/ofdm-vht-validation.cc +++ b/examples/wireless/ofdm-vht-validation.cc @@ -22,8 +22,10 @@ // both NIST and YANS error rate models and for every VHT MCS value (MCS 9 is not // included since it is forbidden for 20 MHz channels). +#include +#include #include "ns3/gnuplot.h" -#include "ns3/core-module.h" +#include "ns3/command-line.h" #include "ns3/yans-error-rate-model.h" #include "ns3/nist-error-rate-model.h" #include "ns3/wifi-tx-vector.h" diff --git a/examples/wireless/power-adaptation-distance.cc b/examples/wireless/power-adaptation-distance.cc index 98c22291d..7c18d929c 100644 --- a/examples/wireless/power-adaptation-distance.cc +++ b/examples/wireless/power-adaptation-distance.cc @@ -85,12 +85,24 @@ * \endcode */ -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/applications-module.h" -#include "ns3/stats-module.h" +#include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/double.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/wifi-net-device.h" +#include "ns3/wifi-mac.h" +#include "ns3/wifi-mac-header.h" +#include "ns3/mobility-model.h" using namespace ns3; using namespace std; diff --git a/examples/wireless/power-adaptation-interference.cc b/examples/wireless/power-adaptation-interference.cc index 62989bc9b..e769d9f16 100644 --- a/examples/wireless/power-adaptation-interference.cc +++ b/examples/wireless/power-adaptation-interference.cc @@ -55,13 +55,25 @@ * \endcode */ -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/applications-module.h" -#include "ns3/stats-module.h" -#include "ns3/flow-monitor-module.h" +#include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/double.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/wifi-net-device.h" +#include "ns3/wifi-mac.h" +#include "ns3/wifi-mac-header.h" +#include "ns3/flow-monitor-helper.h" +#include "ns3/ipv4-flow-classifier.h" using namespace ns3; using namespace std; diff --git a/examples/wireless/rate-adaptation-distance.cc b/examples/wireless/rate-adaptation-distance.cc index 59b5c062f..87f56bbbd 100644 --- a/examples/wireless/rate-adaptation-distance.cc +++ b/examples/wireless/rate-adaptation-distance.cc @@ -50,12 +50,21 @@ * export NS_LOG=RateAdaptationDistance=level_info */ -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/applications-module.h" -#include "ns3/stats-module.h" +#include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" using namespace ns3; using namespace std; diff --git a/examples/wireless/simple-ht-hidden-stations.cc b/examples/wireless/simple-ht-hidden-stations.cc index 02b88fb19..6d71984a0 100644 --- a/examples/wireless/simple-ht-hidden-stations.cc +++ b/examples/wireless/simple-ht-hidden-stations.cc @@ -18,11 +18,20 @@ * Author: Sébastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/yans-wifi-channel.h" // This example considers two hidden stations in an 802.11n network which supports MPDU aggregation. // The user can specify whether RTS/CTS is used and can set the number of aggregated MPDUs. diff --git a/examples/wireless/vht-wifi-network.cc b/examples/wireless/vht-wifi-network.cc index 67fa92712..2e0a93815 100644 --- a/examples/wireless/vht-wifi-network.cc +++ b/examples/wireless/vht-wifi-network.cc @@ -18,11 +18,24 @@ * Author: Sebastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" // This is a simple example in order to show how to configure an IEEE 802.11ac Wi-Fi network. // diff --git a/examples/wireless/wifi-adhoc.cc b/examples/wireless/wifi-adhoc.cc index ba1969fb1..9b3072911 100644 --- a/examples/wireless/wifi-adhoc.cc +++ b/examples/wireless/wifi-adhoc.cc @@ -18,16 +18,24 @@ * Author: Mathieu Lacage */ -#include "ns3/core-module.h" -#include "ns3/network-module.h" -#include "ns3/applications-module.h" -#include "ns3/mobility-module.h" -#include "ns3/stats-module.h" -#include "ns3/wifi-module.h" +#include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/packet-socket-helper.h" +#include "ns3/packet-socket-address.h" using namespace ns3; -NS_LOG_COMPONENT_DEFINE ("Main"); +NS_LOG_COMPONENT_DEFINE ("Wifi-Adhoc"); class Experiment { diff --git a/examples/wireless/wifi-aggregation.cc b/examples/wireless/wifi-aggregation.cc index e2f7d75fd..937617229 100644 --- a/examples/wireless/wifi-aggregation.cc +++ b/examples/wireless/wifi-aggregation.cc @@ -18,11 +18,20 @@ * Author: Sébastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/yans-wifi-channel.h" // This is an example that illustrates how 802.11n aggregation is configured. // It defines 4 independant Wi-Fi networks (working on different channels). diff --git a/examples/wireless/wifi-ap.cc b/examples/wireless/wifi-ap.cc index c75b9b694..56fd28a07 100644 --- a/examples/wireless/wifi-ap.cc +++ b/examples/wireless/wifi-ap.cc @@ -18,11 +18,19 @@ * Author: Mathieu Lacage */ -#include "ns3/core-module.h" -#include "ns3/network-module.h" -#include "ns3/applications-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/boolean.h" +#include "ns3/string.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/packet-socket-helper.h" +#include "ns3/packet-socket-address.h" +#include "ns3/athstats-helper.h" using namespace ns3; @@ -109,7 +117,6 @@ int main (int argc, char *argv[]) { CommandLine cmd; cmd.AddValue ("verbose", "Print trace information if true", g_verbose); - cmd.Parse (argc, argv); Packet::EnablePrinting (); diff --git a/examples/wireless/wifi-backward-compatibility.cc b/examples/wireless/wifi-backward-compatibility.cc index be7273eb6..1d89080e7 100644 --- a/examples/wireless/wifi-backward-compatibility.cc +++ b/examples/wireless/wifi-backward-compatibility.cc @@ -18,11 +18,19 @@ * Author: Sebastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/yans-wifi-channel.h" // This is an example to show how to configure an IEEE 802.11 Wi-Fi // network where the AP and the station use different 802.11 standards. diff --git a/examples/wireless/wifi-blockack.cc b/examples/wireless/wifi-blockack.cc index 1bf10b39f..f12d44189 100644 --- a/examples/wireless/wifi-blockack.cc +++ b/examples/wireless/wifi-blockack.cc @@ -40,11 +40,22 @@ * - the recipient receives a block ack request or a MPDU with ack policy Block Ack. */ -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" +#include "ns3/command-line.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/rectangle.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/ipv4-global-routing-helper.h" using namespace ns3; @@ -137,7 +148,7 @@ int main (int argc, char * argv[]) Simulator::Stop (Seconds (10.0)); - phy.EnablePcap ("test-blockack-2", ap->GetId (), 0); + phy.EnablePcap ("test-blockack", ap->GetId (), 0); Simulator::Run (); Simulator::Destroy (); diff --git a/examples/wireless/wifi-clear-channel-cmu.cc b/examples/wireless/wifi-clear-channel-cmu.cc index 6adc2ad94..5b31dd38f 100644 --- a/examples/wireless/wifi-clear-channel-cmu.cc +++ b/examples/wireless/wifi-clear-channel-cmu.cc @@ -18,15 +18,22 @@ * Author: Guangyu Pei */ -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/stats-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" +#include "ns3/gnuplot.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" using namespace ns3; -NS_LOG_COMPONENT_DEFINE ("Main"); +NS_LOG_COMPONENT_DEFINE ("ClearChannelCmu"); class Experiment { diff --git a/examples/wireless/wifi-hidden-terminal.cc b/examples/wireless/wifi-hidden-terminal.cc index c37bb3963..facea5d9c 100644 --- a/examples/wireless/wifi-hidden-terminal.cc +++ b/examples/wireless/wifi-hidden-terminal.cc @@ -15,10 +15,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Authors: Pavel Boyko - */ - -/* + * Author: Pavel Boyko + * * Classical hidden terminal problem and its RTS/CTS solution. * * Topology: [node 0] <-- -50 dB --> [node 1] <-- -50 dB --> [node 2] @@ -30,13 +28,22 @@ * - IP flow monitor */ -#include "ns3/core-module.h" -#include "ns3/propagation-module.h" -#include "ns3/applications-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" -#include "ns3/flow-monitor-module.h" -#include "ns3/wifi-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/string.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-echo-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/constant-position-mobility-model.h" +#include "ns3/propagation-loss-model.h" +#include "ns3/propagation-delay-model.h" +#include "ns3/on-off-helper.h" +#include "ns3/flow-monitor-helper.h" +#include "ns3/ipv4-flow-classifier.h" using namespace ns3; diff --git a/examples/wireless/wifi-multi-tos.cc b/examples/wireless/wifi-multi-tos.cc index 111424775..0b943db97 100644 --- a/examples/wireless/wifi-multi-tos.cc +++ b/examples/wireless/wifi-multi-tos.cc @@ -18,11 +18,22 @@ * Author: Sebastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" // This is a simple example in order to show how to configure an IEEE 802.11n Wi-Fi network // with multiple TOS. It outputs the aggregated UDP throughput, which depends on the number of diff --git a/examples/wireless/wifi-simple-adhoc-grid.cc b/examples/wireless/wifi-simple-adhoc-grid.cc index eb3310c30..75e1236e8 100644 --- a/examples/wireless/wifi-simple-adhoc-grid.cc +++ b/examples/wireless/wifi-simple-adhoc-grid.cc @@ -69,11 +69,21 @@ // tcpdump -r wifi-simple-adhoc-grid-0-0.pcap -nn -tt // -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" #include "ns3/olsr-helper.h" +#include "ns3/ipv4-static-routing-helper.h" +#include "ns3/ipv4-list-routing-helper.h" +#include "ns3/internet-stack-helper.h" using namespace ns3; @@ -117,7 +127,6 @@ int main (int argc, char *argv[]) bool tracing = false; CommandLine cmd; - cmd.AddValue ("phyMode", "Wifi Phy mode", phyMode); cmd.AddValue ("distance", "distance (m)", distance); cmd.AddValue ("packetSize", "size of application packet sent", packetSize); @@ -128,7 +137,6 @@ int main (int argc, char *argv[]) cmd.AddValue ("numNodes", "number of nodes", numNodes); cmd.AddValue ("sinkNode", "Receiver node number", sinkNode); cmd.AddValue ("sourceNode", "Sender node number", sourceNode); - cmd.Parse (argc, argv); // Convert to time object Time interPacketInterval = Seconds (interval); diff --git a/examples/wireless/wifi-simple-adhoc.cc b/examples/wireless/wifi-simple-adhoc.cc index cd4932ec2..b3b8f3001 100644 --- a/examples/wireless/wifi-simple-adhoc.cc +++ b/examples/wireless/wifi-simple-adhoc.cc @@ -50,10 +50,17 @@ // tcpdump -r wifi-simple-adhoc-0-0.pcap -nn -tt // -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/internet-stack-helper.h" using namespace ns3; @@ -92,14 +99,12 @@ int main (int argc, char *argv[]) bool verbose = false; CommandLine cmd; - cmd.AddValue ("phyMode", "Wifi Phy mode", phyMode); cmd.AddValue ("rss", "received signal strength", rss); cmd.AddValue ("packetSize", "size of application packet sent", packetSize); cmd.AddValue ("numPackets", "number of packets generated", numPackets); cmd.AddValue ("interval", "interval (seconds) between packets", interval); cmd.AddValue ("verbose", "turn on all WifiNetDevice log components", verbose); - cmd.Parse (argc, argv); // Convert to time object Time interPacketInterval = Seconds (interval); diff --git a/examples/wireless/wifi-simple-infra.cc b/examples/wireless/wifi-simple-infra.cc index 4d43885b9..42e771a5d 100644 --- a/examples/wireless/wifi-simple-infra.cc +++ b/examples/wireless/wifi-simple-infra.cc @@ -51,10 +51,18 @@ // tcpdump -r wifi-simple-infra-0-0.pcap -nn -tt // -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/internet-stack-helper.h" using namespace ns3; @@ -93,14 +101,12 @@ int main (int argc, char *argv[]) bool verbose = false; CommandLine cmd; - cmd.AddValue ("phyMode", "Wifi Phy mode", phyMode); cmd.AddValue ("rss", "received signal strength", rss); cmd.AddValue ("packetSize", "size of application packet sent", packetSize); cmd.AddValue ("numPackets", "number of packets generated", numPackets); cmd.AddValue ("interval", "interval (seconds) between packets", interval); cmd.AddValue ("verbose", "turn on all WifiNetDevice log components", verbose); - cmd.Parse (argc, argv); // Convert to time object Time interPacketInterval = Seconds (interval); diff --git a/examples/wireless/wifi-simple-interference.cc b/examples/wireless/wifi-simple-interference.cc index ade381b04..206e16308 100644 --- a/examples/wireless/wifi-simple-interference.cc +++ b/examples/wireless/wifi-simple-interference.cc @@ -79,10 +79,18 @@ // that are no longer interfering: // ./waf --run "wifi-simple-interference --delta=30000" -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/internet-stack-helper.h" using namespace ns3; @@ -144,7 +152,6 @@ int main (int argc, char *argv[]) double offset = 91; // This is a magic number used to set the // transmit power, based on other configuration CommandLine cmd; - cmd.AddValue ("phyMode", "Wifi Phy mode", phyMode); cmd.AddValue ("Prss", "Intended primary received signal strength (dBm)", Prss); cmd.AddValue ("Irss", "Intended interfering received signal strength (dBm)", Irss); @@ -152,7 +159,6 @@ int main (int argc, char *argv[]) cmd.AddValue ("PpacketSize", "size of application packet sent", PpacketSize); cmd.AddValue ("IpacketSize", "size of interfering packet sent", IpacketSize); cmd.AddValue ("verbose", "turn on all WifiNetDevice log components", verbose); - cmd.Parse (argc, argv); // Convert to time object Time interPacketInterval = Seconds (interval); diff --git a/examples/wireless/wifi-sleep.cc b/examples/wireless/wifi-sleep.cc index f306abcfc..679bca358 100644 --- a/examples/wireless/wifi-sleep.cc +++ b/examples/wireless/wifi-sleep.cc @@ -45,12 +45,22 @@ // two for the remaining energy on each node and two for the state transitions // of each node. -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" -#include "ns3/internet-module.h" -#include "ns3/applications-module.h" -#include "ns3/energy-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/basic-energy-source-helper.h" +#include "ns3/wifi-radio-energy-model-helper.h" +#include "ns3/wifi-utils.h" +#include "ns3/wifi-net-device.h" using namespace ns3; diff --git a/examples/wireless/wifi-spectrum-per-example.cc b/examples/wireless/wifi-spectrum-per-example.cc index dd6319db8..573e76cfa 100644 --- a/examples/wireless/wifi-spectrum-per-example.cc +++ b/examples/wireless/wifi-spectrum-per-example.cc @@ -24,12 +24,27 @@ */ #include -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/spectrum-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/spectrum-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/ipv4-global-routing-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/multi-model-spectrum-channel.h" +#include "ns3/propagation-loss-model.h" // This is a simple example of an IEEE 802.11n Wi-Fi network. // diff --git a/examples/wireless/wifi-spectrum-per-interference.cc b/examples/wireless/wifi-spectrum-per-interference.cc index 918727bee..748f2f083 100644 --- a/examples/wireless/wifi-spectrum-per-interference.cc +++ b/examples/wireless/wifi-spectrum-per-interference.cc @@ -24,12 +24,26 @@ */ #include -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/spectrum-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/string.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/spectrum-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/packet-sink.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/multi-model-spectrum-channel.h" +#include "ns3/propagation-loss-model.h" +#include "ns3/waveform-generator.h" +#include "ns3/waveform-generator-helper.h" +#include "ns3/non-communicating-net-device.h" +#include "ns3/wifi-net-device.h" // This is a simple example of an IEEE 802.11n Wi-Fi network with a // non-Wi-Fi interferer. It is an adaptation of the wifi-spectrum-per-example diff --git a/examples/wireless/wifi-spectrum-saturation-example.cc b/examples/wireless/wifi-spectrum-saturation-example.cc index bae1e44c0..cf65dfca0 100644 --- a/examples/wireless/wifi-spectrum-saturation-example.cc +++ b/examples/wireless/wifi-spectrum-saturation-example.cc @@ -24,12 +24,23 @@ */ #include -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/spectrum-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/boolean.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/spectrum-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/multi-model-spectrum-channel.h" +#include "ns3/propagation-loss-model.h" // This is a simple example of an IEEE 802.11n Wi-Fi network. // diff --git a/examples/wireless/wifi-tcp.cc b/examples/wireless/wifi-tcp.cc index 94e101659..2bd8378fc 100644 --- a/examples/wireless/wifi-tcp.cc +++ b/examples/wireless/wifi-tcp.cc @@ -32,11 +32,22 @@ * of TCP i.e. congestion control algorithm to use. */ -#include "ns3/applications-module.h" -#include "ns3/core-module.h" -#include "ns3/internet-module.h" -#include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/packet-sink.h" +#include "ns3/packet-sink-helper.h" +#include "ns3/tcp-westwood.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/ipv4-global-routing-helper.h" NS_LOG_COMPONENT_DEFINE ("wifi-tcp"); diff --git a/examples/wireless/wifi-timing-attributes.cc b/examples/wireless/wifi-timing-attributes.cc index 426bd760e..409b42960 100644 --- a/examples/wireless/wifi-timing-attributes.cc +++ b/examples/wireless/wifi-timing-attributes.cc @@ -1,6 +1,6 @@ /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* - * Copyright (c) 2015 SEBASTIEN DERONNE + * Copyright (c) 2015 * * 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 @@ -15,14 +15,24 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Authors: Sebastien Deronne + * Author: Sebastien Deronne */ -#include "ns3/core-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/mobility-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/config.h" +#include "ns3/uinteger.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/log.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/mobility-model.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/udp-client-server-helper.h" +#include "ns3/ipv4-global-routing-helper.h" // This example shows how to set Wi-Fi timing parameters through WifiMac attributes. // diff --git a/examples/wireless/wifi-wired-bridging.cc b/examples/wireless/wifi-wired-bridging.cc index 464a9aa0f..ee9bba758 100644 --- a/examples/wireless/wifi-wired-bridging.cc +++ b/examples/wireless/wifi-wired-bridging.cc @@ -41,14 +41,20 @@ // | AP Node | | AP Node | // +---------+ +---------+ -#include "ns3/core-module.h" -#include "ns3/mobility-module.h" -#include "ns3/applications-module.h" -#include "ns3/wifi-module.h" -#include "ns3/network-module.h" -#include "ns3/csma-module.h" -#include "ns3/internet-module.h" +#include "ns3/command-line.h" +#include "ns3/double.h" +#include "ns3/string.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" +#include "ns3/mobility-helper.h" +#include "ns3/internet-stack-helper.h" +#include "ns3/ipv4-address-helper.h" +#include "ns3/on-off-helper.h" +#include "ns3/yans-wifi-channel.h" +#include "ns3/csma-helper.h" +#include "ns3/animation-interface.h" #include "ns3/bridge-helper.h" +#include "ns3/packet-socket-address.h" using namespace ns3;