22 #include "ns3/core-module.h"
23 #include "ns3/satellite-module.h"
38 NS_LOG_COMPONENT_DEFINE(
"sat-markov-logic-example");
68 main(
int argc,
char* argv[])
71 LogComponentEnable(
"sat-markov-logic-example", LOG_LEVEL_INFO);
72 LogComponentEnable(
"SatMarkovContainer", LOG_LEVEL_INFO);
73 LogComponentEnable(
"SatMarkovModel", LOG_LEVEL_INFO);
74 LogComponentEnable(
"SatMarkovConf", LOG_LEVEL_INFO);
77 Config::SetDefault(
"ns3::SatEnvVariables::SimulationCampaignName",
78 StringValue(
"example-markov-logic"));
79 Config::SetDefault(
"ns3::SatEnvVariables::SimulationTag", StringValue(
""));
80 Config::SetDefault(
"ns3::SatEnvVariables::EnableSimulationOutputOverwrite", BooleanValue(
true));
83 Ptr<SatMarkovConf> markovConf = CreateObject<SatMarkovConf>();
89 Ptr<SatMarkovContainer> markovContainer =
90 CreateObject<SatMarkovContainer>(markovConf, elevationCb, velocityCb);
96 Simulator::Schedule(Time(
"10ms"),
101 Simulator::Schedule(Time(
"30ms"),
107 Simulator::Schedule(Time(
"50ms"),
112 Simulator::Schedule(Time(
"60ms"),
117 Simulator::Schedule(Time(
"90ms"),
123 Simulator::Schedule(Time(
"100ms"),
128 Simulator::Schedule(Time(
"130ms"),
133 Simulator::Schedule(Time(
"200ms"),
140 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()