22 #include "ns3/core-module.h"
23 #include "ns3/satellite-module.h"
39 NS_LOG_COMPONENT_DEFINE(
"sat-environmental-variables-example");
42 main(
int argc,
char* argv[])
44 LogComponentEnable(
"sat-environmental-variables-example", LOG_LEVEL_INFO);
45 LogComponentEnable(
"SatEnvVariables", LOG_LEVEL_INFO);
48 auto simulationHelper = CreateObject<SimulationHelper>(
"exampleCampaign");
49 simulationHelper->SetOutputTag(
"exampleTag");
50 Config::SetDefault(
"ns3::SatEnvVariables::EnableSimulationOutputOverwrite", BooleanValue(
true));
53 simulationHelper->AddDefaultUiArguments(cmd);
54 cmd.Parse(argc, argv);
57 Ptr<SatEnvVariables> envVariables = CreateObject<SatEnvVariables>();
60 Simulator::Schedule(MilliSeconds(0),
67 Simulator::Schedule(MilliSeconds(5),
70 "contrib/satellite/data");
71 Simulator::Schedule(MilliSeconds(6),
74 "contrib/satellite/data/notfound");
77 simulationHelper->SetSimulationTime(Seconds(1));
78 simulationHelper->RunSimulation();
std::string GetPathToExecutable()
Function for getting the path to executable.
std::string GetOutputPath()
Function for getting the simulation folder.
std::string GetCurrentWorkingDirectory()
Function for getting the path to current working directory.
std::string LocateDataDirectory()
Function for locating the data directory within the NS-3 simulator folder.
bool IsValidDirectory(std::string path)
Function for checking if the directory exists.
std::string GetDataPath()
Function for locating the data folder.
std::string LocateDirectory(std::string initialPath)
Function for locating a specific directory within the NS-3 simulator folder.
std::string GetCurrentDateAndTime()
Returns current real world date and time.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.