22 #include "ns3/core-module.h"
23 #include "ns3/satellite-module.h"
36 NS_LOG_COMPONENT_DEFINE(
"sat-markov-logic-example");
66 main(
int argc,
char* argv[])
69 LogComponentEnable(
"sat-markov-logic-example", LOG_LEVEL_INFO);
70 LogComponentEnable(
"SatMarkovContainer", LOG_LEVEL_INFO);
71 LogComponentEnable(
"SatMarkovModel", LOG_LEVEL_INFO);
72 LogComponentEnable(
"SatMarkovConf", LOG_LEVEL_INFO);
75 Config::SetDefault(
"ns3::SatEnvVariables::SimulationCampaignName",
76 StringValue(
"example-markov-logic"));
77 Config::SetDefault(
"ns3::SatEnvVariables::SimulationTag", StringValue(
""));
78 Config::SetDefault(
"ns3::SatEnvVariables::EnableSimulationOutputOverwrite", BooleanValue(
true));
81 Ptr<SatMarkovConf> markovConf = CreateObject<SatMarkovConf>();
87 Ptr<SatMarkovContainer> markovContainer =
88 CreateObject<SatMarkovContainer>(markovConf, elevationCb, velocityCb);
94 Simulator::Schedule(Time(
"10ms"),
99 Simulator::Schedule(Time(
"30ms"),
105 Simulator::Schedule(Time(
"50ms"),
110 Simulator::Schedule(Time(
"60ms"),
115 Simulator::Schedule(Time(
"90ms"),
121 Simulator::Schedule(Time(
"100ms"),
126 Simulator::Schedule(Time(
"130ms"),
131 Simulator::Schedule(Time(
"200ms"),
138 Simulator::Destroy();
Callback< double > VelocityCallback
Gets velocity in m/s.
Callback< double > ElevationCallback
Gets elevation angle in degrees.
double DoGetFading(Address macAddress, SatEnums::ChannelType_t channeltype)
Function for getting the fading.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.
static void SetElevation(double elevation)
static double g_elevation
static double GetVelocity()
static void SetVelocity(double velocity)
static double GetElevation()