104 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService0_ConstantAssignmentProvided",
105 BooleanValue(
false));
106 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService1_ConstantAssignmentProvided",
107 BooleanValue(
false));
108 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService2_ConstantAssignmentProvided",
109 BooleanValue(
false));
110 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService3_ConstantAssignmentProvided",
111 BooleanValue(
false));
112 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService0_RbdcAllowed",
113 BooleanValue(
false));
114 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService1_RbdcAllowed",
115 BooleanValue(
false));
116 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService2_RbdcAllowed",
117 BooleanValue(
false));
118 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService3_RbdcAllowed",
119 BooleanValue(
false));
120 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService0_VolumeAllowed",
121 BooleanValue(
false));
122 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService1_VolumeAllowed",
123 BooleanValue(
false));
124 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService2_VolumeAllowed",
125 BooleanValue(
false));
126 Config::SetDefault(
"ns3::SatLowerLayerServiceConf::DaService3_VolumeAllowed",
127 BooleanValue(
false));
129 Ptr<SatLowerLayerServiceConf> llsConf = CreateObject<SatLowerLayerServiceConf>();
131 Time superFrameDuration(MilliSeconds(100));
134 Ptr<SatNodeInfo> nodeInfo = Create<SatNodeInfo>(
SatEnums::NT_UT, 0, Mac48Address::Allocate());
135 Ptr<SatRequestManager> rm = CreateObject<SatRequestManager>();
136 rm->SetNodeInfo(nodeInfo);
137 rm->Initialize(llsConf, superFrameDuration);
145 Callback<SatQueue::QueueStats_t, bool> cb =
147 for (uint8_t rc = 0; rc < llsConf->GetDaServiceCount(); ++rc)
149 rm->AddQueueCallback(rc, cb);
152 Simulator::Stop(Seconds(10));
157 Simulator::Destroy();