A Discrete-Event Network Simulator
API
lte-ue-component-carrier-manager.h
Go to the documentation of this file.
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 LTE_UE_COMPONENT_CARRIER_MANAGER_H
23 #define LTE_UE_COMPONENT_CARRIER_MANAGER_H
24 
25 #include <ns3/object.h>
26 #include <ns3/lte-rrc-sap.h>
27 #include <ns3/lte-ue-ccm-rrc-sap.h>
28 #include <ns3/lte-mac-sap.h>
29 #include <map>
30 #include <vector>
31 
32 namespace ns3 {
33 
34 
35 class LteUeCcmRrcSapUser;
36 class LteUeCcmRrcSapProvider;
37 
38 class LteMacSapUser;
39 class LteMacSapProvider;
40 
41 
48 {
49 
50 public:
53 
58  static TypeId GetTypeId ();
59 
66  virtual void SetLteCcmRrcSapUser (LteUeCcmRrcSapUser* s) = 0;
67 
74 
81 
88  bool SetComponentCarrierMacSapProviders (uint8_t componentCarrierId, LteMacSapProvider* sap);
89 
94  void SetNumberOfComponentCarriers (uint8_t noOfComponentCarriers);
95 
96 protected:
97 
98  // inherited from Object
99  virtual void DoDispose ();
100 
101  std::map<uint8_t, LteMacSapUser*> m_lcAttached;
102  std::map<uint8_t, std::map<uint8_t, LteMacSapProvider*> > m_componentCarrierLcMap;
105  std::map <uint8_t, LteMacSapProvider*> m_macSapProvidersMap;
106 
107 }; // end of class LteUeComponentCarrierManager
108 
109 
110 } // end of namespace ns3
111 
112 
113 #endif /* LTE_UE_COMPONENT_CARRIER_MANAGER_H */
bool SetComponentCarrierMacSapProviders(uint8_t componentCarrierId, LteMacSapProvider *sap)
Sets a pointer to SAP interface of MAC instance for the specified carrier.
virtual void SetLteCcmRrcSapUser(LteUeCcmRrcSapUser *s)=0
Set the "user" part of the ComponentCarrier Management SAP interface that this UE component carrier m...
uint16_t m_noOfComponentCarriersEnabled
The number of enabled component carriers that are enabled for this UE.
std::map< uint8_t, LteMacSapUser * > m_lcAttached
Map of pointers to SAP interfaces of the RLC instance of the flows of this UE.
std::map< uint8_t, std::map< uint8_t, LteMacSapProvider * > > m_componentCarrierLcMap
Flow configuration per flow Id of this UE.
virtual LteUeCcmRrcSapProvider * GetLteCcmRrcSapProvider()=0
Exports the "provider" part of the ComponentCarrier Management SAP interface.
Service Access Point (SAP) offered by the UE RRC to the UE CCM.
virtual LteMacSapProvider * GetLteMacSapProvider()=0
Returns the MAC sap provider interface that if forwarding calls to the instance of the LteUeComponent...
void SetNumberOfComponentCarriers(uint8_t noOfComponentCarriers)
Sets number of component carriers that are supported by this UE.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::map< uint8_t, LteMacSapProvider * > m_macSapProvidersMap
Map of pointers to SAP to interfaces of the MAC instance if the flows of this UE. ...
The abstract base class of a Component Carrier Manager* for UE that operates using the component carr...
Service Access Point (SAP) offered by the UE component carrier manager to the UE RRC...
virtual void DoDispose()
Destructor implementation.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Definition: lte-mac-sap.h:36
A base class which provides memory management and object aggregation.
Definition: object.h:87
a unique identifier for an interface.
Definition: type-id.h:58
uint16_t m_noOfComponentCarriers
// The number of component carriers that this UE can support.