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 NO_OP_COMPONENT_CARRIER_MANAGER_H |
| 23 #define NO_OP_COMPONENT_CARRIER_MANAGER_H |
| 24 |
| 25 #include <ns3/lte-enb-component-carrier-manager.h> |
| 26 #include <ns3/lte-ccm-rrc-sap.h> |
| 27 #include <ns3/lte-rrc-sap.h> |
| 28 |
| 29 namespace ns3 { |
| 30 |
| 31 |
| 32 /** |
| 33 * \brief Component carrier selection algorithm implementation which simply does
nothing. |
| 34 * |
| 35 * Selecting this Component carrier selection algorithm is equivalent to disabli
ng automatic |
| 36 * triggering of Component carrier selection. This is the default choice. |
| 37 * |
| 38 * To enable automatic Component carrier selection, please select another Compon
ent carrier selection algorithm, i.e., |
| 39 * another child class of LteCcsAlgorithm. |
| 40 */ |
| 41 class NoOpComponentCarrierManager : public LteEnbComponentCarrierManager |
| 42 { |
| 43 public: |
| 44 /// Creates a No-op CCS algorithm instance. |
| 45 NoOpComponentCarrierManager (); |
| 46 |
| 47 virtual ~NoOpComponentCarrierManager (); |
| 48 |
| 49 // inherited from Object |
| 50 static TypeId GetTypeId (); |
| 51 |
| 52 // inherited from LteComponentCarrierManager |
| 53 virtual void SetLteCcmRrcSapUser (LteCcmRrcSapUser* s); |
| 54 virtual LteCcmRrcSapProvider* GetLteCcmRrcSapProvider (); |
| 55 |
| 56 // let the forwarder class access the protected and private members |
| 57 friend class MemberLteCcmRrcSapProvider<NoOpComponentCarrierManager>; |
| 58 |
| 59 protected: |
| 60 // inherited from Object |
| 61 virtual void DoInitialize (); |
| 62 virtual void DoDispose (); |
| 63 |
| 64 // inherited from LteCcsAlgorithm as a Component Carrier Management SAP implem
entation |
| 65 void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); |
| 66 |
| 67 private: |
| 68 /// Interface to the eNodeB RRC instance. |
| 69 LteCcmRrcSapUser* m_ccmRrcSapUser; |
| 70 /// Receive API calls from the eNodeB RRC instance. |
| 71 LteCcmRrcSapProvider* m_ccmRrcSapProvider; |
| 72 |
| 73 }; // end of class NoOpComponentCarrierManager |
| 74 |
| 75 |
| 76 } // end of namespace ns3 |
| 77 |
| 78 |
| 79 #endif /* NO_OP_COMPONENT_CARRIER_MANAGER_H */ |
OLD | NEW |