22 #include "ns3/core-module.h"
23 #include "ns3/satellite-module.h"
37 NS_LOG_COMPONENT_DEFINE(
"sat-environmental-variables-example");
40 main(
int argc,
char* argv[])
42 LogComponentEnable(
"sat-environmental-variables-example", LOG_LEVEL_INFO);
43 LogComponentEnable(
"SatEnvVariables", LOG_LEVEL_INFO);
46 auto simulationHelper = CreateObject<SimulationHelper>(
"exampleCampaign");
47 simulationHelper->SetOutputTag(
"exampleTag");
48 Config::SetDefault(
"ns3::SatEnvVariables::EnableSimulationOutputOverwrite", BooleanValue(
true));
51 simulationHelper->AddDefaultUiArguments(cmd);
52 cmd.Parse(argc, argv);
55 Ptr<SatEnvVariables> envVariables = CreateObject<SatEnvVariables>();
58 Simulator::Schedule(MilliSeconds(0),
65 Simulator::Schedule(MilliSeconds(5),
68 "contrib/satellite/data");
69 Simulator::Schedule(MilliSeconds(6),
72 "contrib/satellite/data/notfound");
75 simulationHelper->SetSimulationTime(Seconds(1));
76 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.