#include "ns3/buildings-module.h"#include "ns3/core-module.h"#include "ns3/network-module.h"#include <ns3/mobility-module.h>#include <iostream>
Include dependency graph for outdoor-group-mobility-example.cc:Go to the source code of this file.
Functions | |
| void | PrintGnuplottableBuildingListToFile (std::string filename) |
| Print the buildings list in a format that can be used by Gnuplot to draw them. | |
| void | PrintPosition (Ptr< Node > node) |
| Print the node position to the time series file. | |
Variables | |
| std::ofstream | g_timeSeries |
| The time series file. | |
$ ./ns3 run "outdoor-group-mobility-example [Program Options]"
--useHelper Definition in file outdoor-group-mobility-example.cc.
| void PrintGnuplottableBuildingListToFile | ( | std::string | filename | ) |
Print the buildings list in a format that can be used by Gnuplot to draw them.
| filename | The output filename. |
Definition at line 104 of file outdoor-group-mobility-example.cc.
References ns3::BuildingList::Begin(), ns3::BuildingList::End(), NS_LOG_ERROR, ns3::Box::xMax, ns3::Box::xMin, ns3::Box::yMax, and ns3::Box::yMin.
Here is the call graph for this function:Print the node position to the time series file.
| node | The node. |
Definition at line 82 of file outdoor-group-mobility-example.cc.
References g_timeSeries, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and NS_LOG_LOGIC.
Here is the call graph for this function:| std::ofstream g_timeSeries |
The time series file.
Definition at line 74 of file outdoor-group-mobility-example.cc.
Referenced by PrintPosition().