From ff67569f92cbfc71959736bdf2bebe74686359d0 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Tue, 11 Aug 2020 12:19:36 +0200 Subject: [PATCH] fixup: Set type id of factory --- helper/leo-channel-helper.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helper/leo-channel-helper.cc b/helper/leo-channel-helper.cc index 1f58508..4d729b5 100644 --- a/helper/leo-channel-helper.cc +++ b/helper/leo-channel-helper.cc @@ -32,6 +32,9 @@ LeoChannelHelper::LeoChannelHelper () m_satDeviceFactory.Set ("DeviceType", EnumValue (LeoMockNetDevice::SAT)); m_channelFactory.SetTypeId ("ns3::LeoMockChannel"); + + m_propagationLossFactory.SetTypeId ("ns3::LeoPropagationLossModel"); + } LeoChannelHelper::LeoChannelHelper (std::string constellation) : @@ -119,8 +122,6 @@ LeoChannelHelper::SetConstellationAttributes (double eirp, m_gndDeviceFactory.Set ("DataRate", DoubleValue (dataRate)); m_satDeviceFactory.Set ("DataRate", DoubleValue (dataRate)); - m_propagationLossFactory.SetTypeId ("ns3::LeoPropagationLossModel"); - m_propagationLossFactory.Set ("ElevationAngle", DoubleValue (elevationAngle)); m_propagationLossFactory.Set ("FreeSpaceLoss", DoubleValue (fspl)); m_propagationLossFactory.Set ("AtmosphericLoss", DoubleValue (atmosphericLoss));