A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-fr-no-op-algorithm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014 Piotr Gawlowicz
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
18 *
19 */
20
21#ifndef LTE_FR_NO_OP_ALGORITHM_H
22#define LTE_FR_NO_OP_ALGORITHM_H
23
24#include "lte-ffr-algorithm.h"
25#include "lte-ffr-rrc-sap.h"
26#include "lte-ffr-sap.h"
27#include "lte-rrc-sap.h"
28
29namespace ns3
30{
31
32/**
33 * \brief FR algorithm implementation which simply does nothing.
34 *
35 * Selecting this FR algorithm is equivalent to disabling FFR.
36 * This is the default choice.
37 *
38 * To enable FR, please select another FR algorithm, i.e.,
39 * another child class of LteFfrAlgorithm.
40 */
42{
43 public:
44 /**
45 * \brief Creates a NoOP FR algorithm instance.
46 */
48
49 ~LteFrNoOpAlgorithm() override;
50
51 /**
52 * \brief Get the type ID.
53 * \return the object TypeId
54 */
55 static TypeId GetTypeId();
56
57 // inherited from LteFfrAlgorithm
58 void SetLteFfrSapUser(LteFfrSapUser* s) override;
60
61 void SetLteFfrRrcSapUser(LteFfrRrcSapUser* s) override;
63
64 /// let the forwarder class access the protected and private members
66 /// let the forwarder class access the protected and private members
68
69 protected:
70 // inherited from Object
71 void DoInitialize() override;
72 void DoDispose() override;
73
74 void Reconfigure() override;
75
76 // FFR SAP PROVIDER IMPLEMENTATION
77 std::vector<bool> DoGetAvailableDlRbg() override;
78 bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti) override;
79 std::vector<bool> DoGetAvailableUlRbg() override;
80 bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti) override;
85 void DoReportUlCqiInfo(std::map<uint16_t, std::vector<double>> ulCqiMap) override;
86 uint8_t DoGetTpc(uint16_t rnti) override;
87 uint16_t DoGetMinContinuousUlBandwidth() override;
88
89 // FFR SAP RRC PROVIDER IMPLEMENTATION
90 void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override;
92
93 private:
94 // FFR SAP
95 LteFfrSapUser* m_ffrSapUser; ///< FFR SAP user
96 LteFfrSapProvider* m_ffrSapProvider; ///< FFR SAP provider
97
98 // FFR RRF SAP
99 LteFfrRrcSapUser* m_ffrRrcSapUser; ///< FFR RRC SAP user
100 LteFfrRrcSapProvider* m_ffrRrcSapProvider; ///< FFR RRC SAP provider
101
102}; // end of class LteFrNoOpAlgorithm
103
104} // end of namespace ns3
105
106#endif /* LTE_FFR_NO_OP_ALGORITHM_H */
The abstract base class of a Frequency Reuse algorithm.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
Definition: lte-ffr-sap.h:40
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Definition: lte-ffr-sap.h:140
FR algorithm implementation which simply does nothing.
LteFfrSapProvider * m_ffrSapProvider
FFR SAP provider.
std::vector< bool > DoGetAvailableUlRbg() override
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
LteFfrRrcSapUser * m_ffrRrcSapUser
FFR RRC SAP user.
bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti) override
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
std::vector< bool > DoGetAvailableDlRbg() override
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti) override
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.
LteFfrSapProvider * GetLteFfrSapProvider() override
Export the "provider" part of the LteFfrSap interface.
void DoReportDlCqiInfo(const FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params) override
DoReportDlCqiInfo.
static TypeId GetTypeId()
Get the type ID.
uint16_t DoGetMinContinuousUlBandwidth() override
DoGetMinContinuousUlBandwidth in number of RB.
LteFfrRrcSapProvider * GetLteFfrRrcSapProvider() override
Export the "provider" part of the LteFfrRrcSap interface.
LteFfrRrcSapProvider * m_ffrRrcSapProvider
FFR RRC SAP provider.
void DoInitialize() override
Initialize() implementation.
void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params) override
DoRecvLoadInformation.
void DoDispose() override
Destructor implementation.
void Reconfigure() override
Automatic FR reconfiguration.
uint8_t DoGetTpc(uint16_t rnti) override
DoGetTpc for UE.
void SetLteFfrSapUser(LteFfrSapUser *s) override
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
void DoReportUlCqiInfo(const FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params) override
DoReportUlCqiInfo.
LteFrNoOpAlgorithm()
Creates a NoOP FR algorithm instance.
LteFfrSapUser * m_ffrSapUser
FFR SAP user.
void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s) override
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
Template for the implementation of the LteFfrRrcSapProvider as a member of an owner class of type C t...
Template for the implementation of the LteFfrSapProvider as a member of an owner class of type C to w...
Definition: lte-ffr-sap.h:153
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Parameters of the LOAD INFORMATION message.
Definition: epc-x2-sap.h:306
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
MeasResults structure.
Definition: lte-rrc-sap.h:717