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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static const Time DL_CTRL_DELAY_FROM_SUBFRAME_START = NanoSeconds (214286); | 67 static const Time DL_CTRL_DELAY_FROM_SUBFRAME_START = NanoSeconds (214286); |
68 | 68 |
69 //////////////////////////////////////// | 69 //////////////////////////////////////// |
70 // member SAP forwarders | 70 // member SAP forwarders |
71 //////////////////////////////////////// | 71 //////////////////////////////////////// |
72 | 72 |
73 /// \todo SetBandwidth() and SetCellId() can be removed. | 73 /// \todo SetBandwidth() and SetCellId() can be removed. |
74 class EnbMemberLteEnbPhySapProvider : public LteEnbPhySapProvider | 74 class EnbMemberLteEnbPhySapProvider : public LteEnbPhySapProvider |
75 { | 75 { |
76 public: | 76 public: |
| 77 /** |
| 78 * Constructor |
| 79 * |
| 80 * \param phy the ENB Phy |
| 81 */ |
77 EnbMemberLteEnbPhySapProvider (LteEnbPhy* phy); | 82 EnbMemberLteEnbPhySapProvider (LteEnbPhy* phy); |
78 | 83 |
79 // inherited from LteEnbPhySapProvider | 84 // inherited from LteEnbPhySapProvider |
80 virtual void SendMacPdu (Ptr<Packet> p); | 85 virtual void SendMacPdu (Ptr<Packet> p); |
81 virtual void SetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth); | |
82 virtual void SetCellId (uint16_t cellId); | |
83 virtual void SendLteControlMessage (Ptr<LteControlMessage> msg); | 86 virtual void SendLteControlMessage (Ptr<LteControlMessage> msg); |
84 virtual uint8_t GetMacChTtiDelay (); | 87 virtual uint8_t GetMacChTtiDelay (); |
| 88 /** |
| 89 * Set bandwidth function |
| 90 * |
| 91 * \param ulBandwidth the UL bandwidth |
| 92 * \param dlBandwidth the DL bandwidth |
| 93 */ |
| 94 virtual void SetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth); |
| 95 /** |
| 96 * Set Cell ID function |
| 97 * |
| 98 * \param cellId the cell ID |
| 99 */ |
| 100 virtual void SetCellId (uint16_t cellId); |
85 | 101 |
86 | 102 |
87 private: | 103 private: |
88 LteEnbPhy* m_phy; | 104 LteEnbPhy* m_phy; ///< the ENB Phy |
89 }; | 105 }; |
90 | 106 |
91 EnbMemberLteEnbPhySapProvider::EnbMemberLteEnbPhySapProvider (LteEnbPhy* phy) :
m_phy (phy) | 107 EnbMemberLteEnbPhySapProvider::EnbMemberLteEnbPhySapProvider (LteEnbPhy* phy) :
m_phy (phy) |
92 { | 108 { |
93 | 109 |
94 } | 110 } |
95 | 111 |
96 void | 112 void |
97 EnbMemberLteEnbPhySapProvider::SendMacPdu (Ptr<Packet> p) | 113 EnbMemberLteEnbPhySapProvider::SendMacPdu (Ptr<Packet> p) |
98 { | 114 { |
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 | 1128 |
1113 void | 1129 void |
1114 LteEnbPhy::ReceiveLteUlHarqFeedback (UlInfoListElement_s mes) | 1130 LteEnbPhy::ReceiveLteUlHarqFeedback (UlInfoListElement_s mes) |
1115 { | 1131 { |
1116 NS_LOG_FUNCTION (this); | 1132 NS_LOG_FUNCTION (this); |
1117 // forward to scheduler | 1133 // forward to scheduler |
1118 m_enbPhySapUser->UlInfoListElementHarqFeeback (mes); | 1134 m_enbPhySapUser->UlInfoListElementHarqFeeback (mes); |
1119 } | 1135 } |
1120 | 1136 |
1121 }; | 1137 }; |
OLD | NEW |