OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari | 3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 m_harqPhyModule = Create <LteHarqPhy> (); | 152 m_harqPhyModule = Create <LteHarqPhy> (); |
153 m_downlinkSpectrumPhy->SetHarqPhyModule (m_harqPhyModule); | 153 m_downlinkSpectrumPhy->SetHarqPhyModule (m_harqPhyModule); |
154 m_uplinkSpectrumPhy->SetHarqPhyModule (m_harqPhyModule); | 154 m_uplinkSpectrumPhy->SetHarqPhyModule (m_harqPhyModule); |
155 } | 155 } |
156 | 156 |
157 TypeId | 157 TypeId |
158 LteEnbPhy::GetTypeId (void) | 158 LteEnbPhy::GetTypeId (void) |
159 { | 159 { |
160 static TypeId tid = TypeId ("ns3::LteEnbPhy") | 160 static TypeId tid = TypeId ("ns3::LteEnbPhy") |
161 .SetParent<LtePhy> () | 161 .SetParent<LtePhy> () |
162 .SetGroupName("Lte") | 162 .SetGroupName ("Lte") |
163 .AddConstructor<LteEnbPhy> () | 163 .AddConstructor<LteEnbPhy> () |
164 .AddAttribute ("TxPower", | 164 .AddAttribute ("TxPower", |
165 "Transmission power in dBm", | 165 "Transmission power in dBm", |
166 DoubleValue (30.0), | 166 DoubleValue (30.0), |
167 MakeDoubleAccessor (&LteEnbPhy::SetTxPower,· | 167 MakeDoubleAccessor (&LteEnbPhy::SetTxPower,· |
168 &LteEnbPhy::GetTxPower), | 168 &LteEnbPhy::GetTxPower), |
169 MakeDoubleChecker<double> ()) | 169 MakeDoubleChecker<double> ()) |
170 .AddAttribute ("NoiseFigure", | 170 .AddAttribute ("NoiseFigure", |
171 "Loss (dB) in the Signal-to-Noise-Ratio due to " | 171 "Loss (dB) in the Signal-to-Noise-Ratio due to " |
172 "non-idealities in the receiver. According to Wikipedia " | 172 "non-idealities in the receiver. According to Wikipedia " |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 | 1111 |
1112 void | 1112 void |
1113 LteEnbPhy::ReceiveLteUlHarqFeedback (UlInfoListElement_s mes) | 1113 LteEnbPhy::ReceiveLteUlHarqFeedback (UlInfoListElement_s mes) |
1114 { | 1114 { |
1115 NS_LOG_FUNCTION (this); | 1115 NS_LOG_FUNCTION (this); |
1116 // forward to scheduler | 1116 // forward to scheduler |
1117 m_enbPhySapUser->UlInfoListElementHarqFeeback (mes); | 1117 m_enbPhySapUser->UlInfoListElementHarqFeeback (mes); |
1118 } | 1118 } |
1119 | 1119 |
1120 }; | 1120 }; |
OLD | NEW |