A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
reference-point-group-mobility-example.cc File Reference
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include <ns3/mobility-module.h>
#include <iostream>
+ Include dependency graph for reference-point-group-mobility-example.cc:

Go to the source code of this file.

Functions

void PrintPosition (Ptr< Node > node)
 Print the node position to the time series file. More...
 

Variables

std::ofstream g_timeSeries
 The time series file. More...
 

Function Documentation

◆ PrintPosition()

void PrintPosition ( Ptr< Node node)

Print the node position to the time series file.

Parameters
nodeThe node.

Definition at line 78 of file reference-point-group-mobility-example.cc.

References g_timeSeries, ns3::Node::GetId(), ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), and NS_LOG_LOGIC.

+ Here is the call graph for this function:

Variable Documentation

◆ g_timeSeries

std::ofstream g_timeSeries

The time series file.

Definition at line 70 of file reference-point-group-mobility-example.cc.

Referenced by PrintPosition().