A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
no-op-component-carrier-manager.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Danilo Abrignani
3 * Copyright (c) 2016 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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 * Authors: Danilo Abrignani <danilo.abrignani@unibo.it>
19 * Biljana Bojovic <biljana.bojovic@cttc.es>
20 */
21
22#ifndef NO_OP_COMPONENT_CARRIER_MANAGER_H
23#define NO_OP_COMPONENT_CARRIER_MANAGER_H
24
25#include "lte-ccm-rrc-sap.h"
27#include "lte-rrc-sap.h"
28
29#include <map>
30
31namespace ns3
32{
33
34class UeManager;
36
45{
54
55 public:
62 static TypeId GetTypeId();
63
64 protected:
65 // Inherited methods
66 void DoInitialize() override;
67 void DoDispose() override;
68 void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override;
74 virtual void DoAddUe(uint16_t rnti, uint8_t state);
80 virtual void DoAddLc(LteEnbCmacSapProvider::LcInfo lcInfo, LteMacSapUser* msu);
91 virtual std::vector<LteCcmRrcSapProvider::LcsConfig> DoSetupDataRadioBearer(EpsBearer bearer,
92 uint8_t bearerId,
93 uint16_t rnti,
94 uint8_t lcid,
95 uint8_t lcGroup,
96 LteMacSapUser* msu);
118 virtual void DoReceivePdu(LteMacSapUser::ReceivePduParameters rxPduParams);
120 virtual void DoNotifyHarqDeliveryFailure();
125 virtual void DoRemoveUe(uint16_t rnti);
132 virtual std::vector<uint8_t> DoReleaseDataRadioBearer(uint16_t rnti, uint8_t lcid);
140 LteMacSapUser* msu);
146 virtual void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId);
152 virtual void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId);
159 virtual void DoNotifyPrbOccupancy(double prbOccupancy, uint8_t componentCarrierId);
160
161 protected:
162 std::map<uint8_t, double>
164
165}; // end of class NoOpComponentCarrierManager
166
171{
172 public:
179 static TypeId GetTypeId();
180
181 protected:
182 // Inherited methods
184 void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId) override;
185 void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId) override;
186
187 private:
188 uint8_t m_lastCcIdForSr{0};
189}; // end of class RrComponentCarrierManager
190
191} // end of namespace ns3
192
193#endif /* NO_OP_COMPONENT_CARRIER_MANAGER_H */
EnbMacMemberLteMacSapProvider class.
Definition: lte-mac-sap.h:203
This class contains the specification of EPS Bearers.
Definition: eps-bearer.h:91
Service Access Point (SAP) offered by the Component Carrier Manager (CCM) instance to the eNodeB RRC ...
The class implements Component Carrier Manager (CCM) that operates using the Component Carrier Manage...
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Definition: lte-mac-sap.h:96
MemberLteCcmMacSapUser class.
MemberLteCcmRrcSapProvider class.
MemberLteCcmRrcSapUser class.
The default component carrier manager that forwards all traffic, the uplink and the downlink,...
void DoDispose() override
Destructor implementation.
virtual LteMacSapUser * DoConfigureSignalBearer(LteEnbCmacSapProvider::LcInfo lcinfo, LteMacSapUser *msu)
Configure the signal bearer.
std::map< uint8_t, double > m_ccPrbOccupancy
The physical resource block occupancy per carrier.
virtual void DoNotifyPrbOccupancy(double prbOccupancy, uint8_t componentCarrierId)
Function implements the function of the SAP interface of CCM instance which is used by MAC to notify ...
virtual void DoTransmitPdu(LteMacSapProvider::TransmitPduParameters params)
Transmit PDU.
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override
Implementation of ReportUeMeas.
virtual void DoReportBufferStatus(LteMacSapProvider::ReportBufferStatusParameters params)
Report buffer status.
virtual void DoAddLc(LteEnbCmacSapProvider::LcInfo lcInfo, LteMacSapUser *msu)
Add LC.
virtual void DoRemoveUe(uint16_t rnti)
Remove UE.
virtual void DoAddUe(uint16_t rnti, uint8_t state)
Add UE.
virtual void DoNotifyTxOpportunity(LteMacSapUser::TxOpportunityParameters txOpParams)
Notify transmit opportunity.
virtual void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId)
Forward uplink SR to CCM, called by MAC through CCM SAP interface.
virtual void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId)
Forwards uplink BSR to CCM, called by MAC through CCM SAP interface.
virtual std::vector< uint8_t > DoReleaseDataRadioBearer(uint16_t rnti, uint8_t lcid)
Release data radio bearer.
virtual void DoReceivePdu(LteMacSapUser::ReceivePduParameters rxPduParams)
Receive PDU.
virtual std::vector< LteCcmRrcSapProvider::LcsConfig > DoSetupDataRadioBearer(EpsBearer bearer, uint8_t bearerId, uint16_t rnti, uint8_t lcid, uint8_t lcGroup, LteMacSapUser *msu)
Setup data radio bearer.
void DoInitialize() override
Initialize() implementation.
virtual void DoNotifyHarqDeliveryFailure()
Notify HARQ delivery failure.
Component carrier manager implementation that splits traffic equally among carriers.
void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId) override
Forwards uplink BSR to CCM, called by MAC through CCM SAP interface.
static TypeId GetTypeId()
Get the type ID.
void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId) override
Forward uplink SR to CCM, called by MAC through CCM SAP interface.
uint8_t m_lastCcIdForSr
Last CCID to which a SR was routed.
void DoReportBufferStatus(LteMacSapProvider::ReportBufferStatusParameters params) override
Report buffer status.
a unique identifier for an interface.
Definition: type-id.h:59
Manages all the radio bearer information possessed by the ENB RRC for a single UE.
Definition: lte-enb-rrc.h:67
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Logical Channel information to be passed to CmacSapProvider::ConfigureLc.
Parameters for LteMacSapProvider::ReportBufferStatus.
Definition: lte-mac-sap.h:69
Parameters for LteMacSapProvider::TransmitPdu.
Definition: lte-mac-sap.h:45
Parameters for LteMacSapUser::ReceivePdu.
Definition: lte-mac-sap.h:166
Parameters for LteMacSapUser::NotifyTxOpportunity.
Definition: lte-mac-sap.h:105
MeasResults structure.
Definition: lte-rrc-sap.h:717
See section 4.3.14 macCEListElement.