OLD | NEW |
(Empty) | |
| 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2015 Danilo Abrignani |
| 4 * |
| 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 |
| 7 * published by the Free Software Foundation; |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software |
| 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 * |
| 18 * Author: Danilo Abrignani <danilo.abrignani@unibo.it> |
| 19 * |
| 20 */ |
| 21 |
| 22 #ifndef SIMPLE_UE_COMPONENT_CARRIER_MANAGER_H |
| 23 #define SIMPLE_UE_COMPONENT_CARRIER_MANAGER_H |
| 24 |
| 25 #include <ns3/lte-ue-component-carrier-manager.h> |
| 26 #include <ns3/lte-ue-ccm-rrc-sap.h> |
| 27 #include <ns3/lte-rrc-sap.h> |
| 28 #include <map> |
| 29 |
| 30 namespace ns3 { |
| 31 class LteUeCcmRrcSapProvider; |
| 32 |
| 33 /** |
| 34 * \brief Component carrier selection algorithm implementation which simply does
nothing. |
| 35 * |
| 36 * Selecting this Component carrier selection algorithm is equivalent to disabli
ng automatic |
| 37 * triggering of Component carrier selection. This is the default choice. |
| 38 * |
| 39 * To enable automatic Component carrier selection, please select another Compon
ent carrier selection algorithm, i.e., |
| 40 * another child class of LteCcsAlgorithm. |
| 41 */ |
| 42 class SimpleUeComponentCarrierManager : public LteUeComponentCarrierManager |
| 43 { |
| 44 public: |
| 45 /// Creates a No-op CCS algorithm instance. |
| 46 SimpleUeComponentCarrierManager (); |
| 47 |
| 48 virtual ~SimpleUeComponentCarrierManager (); |
| 49 |
| 50 // inherited from Object |
| 51 static TypeId GetTypeId (); |
| 52 |
| 53 // inherited from LteComponentCarrierManager |
| 54 virtual void SetLteCcmRrcSapUser (LteUeCcmRrcSapUser* s); |
| 55 virtual LteUeCcmRrcSapProvider* GetLteCcmRrcSapProvider (); |
| 56 virtual LteMacSapProvider* GetLteMacSapProvider (); |
| 57 |
| 58 |
| 59 |
| 60 // let the forwarder class access the protected and private members |
| 61 friend class MemberLteUeCcmRrcSapProvider<SimpleUeComponentCarrierManager>; |
| 62 //friend class MemberLteUeCcmRrcSapUser<SimpleUeComponentCarrierManager>; |
| 63 ·· |
| 64 friend class SimpleUeCcmMacSapProvider; |
| 65 friend class SimpleUeCcmMacSapUser; |
| 66 |
| 67 protected: |
| 68 // inherited from Object |
| 69 virtual void DoInitialize (); |
| 70 virtual void DoDispose (); |
| 71 |
| 72 // inherited from LteCcsAlgorithm as a Component Carrier Management SAP implem
entation |
| 73 void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); |
| 74 // forwarded from LteMacSapProvider |
| 75 void DoTransmitPdu (LteMacSapProvider::TransmitPduParameters params); |
| 76 void DoReportBufferStatus (LteMacSapProvider::ReportBufferStatusParameters par
ams); |
| 77 void DoNotifyHarqDeliveryFailure (); |
| 78 |
| 79 // forwarded from LteMacSapUser |
| 80 void DoNotifyTxOpportunity (uint32_t bytes, uint8_t layer, uint8_t harqId, uin
t8_t componentCarrierId, uint16_t rnti, uint8_t lcid); |
| 81 void DoReceivePdu (Ptr<Packet> p, uint16_t rnti, uint8_t lcid); |
| 82 ·· |
| 83 //forwarded from LteUeCcmRrcSapProvider |
| 84 |
| 85 std::vector<LteUeCcmRrcSapProvider::LcsConfig> DoAddLc (uint8_t lcId, LteUeCm
acSapProvider::LogicalChannelConfig lcConfig, LteMacSapUser* msu); |
| 86 |
| 87 std::vector<uint16_t> DoRemoveLc (uint8_t lcid); |
| 88 void DoNotifyConnectionReconfigurationMsg (); |
| 89 |
| 90 LteMacSapUser* DoConfigureSignalBearer (uint8_t lcId, LteUeCmacSapProvider::L
ogicalChannelConfig lcConfig, LteMacSapUser* msu); |
| 91 private: |
| 92 // Interface to the eNodeB RRC instance. |
| 93 LteUeCcmRrcSapUser* m_ccmRrcSapUser; |
| 94 /// Receive API calls from the eNodeB RRC instance. |
| 95 LteUeCcmRrcSapProvider* m_ccmRrcSapProvider; |
| 96 |
| 97 ///Interface to the eNodeB RLC instance. |
| 98 LteMacSapUser* m_ccmMacSapUser; |
| 99 ///Receive API calls from the eNodeB RLC instance. |
| 100 LteMacSapProvider* m_ccmMacSapProvider; |
| 101 |
| 102 }; // end of class SimpleUeComponentCarrierManager |
| 103 |
| 104 |
| 105 } // end of namespace ns3 |
| 106 |
| 107 |
| 108 #endif /* SIMPLE_UE_COMPONENT_CARRIER_MANAGER_H */ |
OLD | NEW |