A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
component-carrier-enb.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Danilo Abrignani
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: Danilo Abrignani <danilo.abrignani@unibo.it>
18
*/
19
20
#ifndef COMPONENT_CARRIER_ENB_H
21
#define COMPONENT_CARRIER_ENB_H
22
23
#include "
component-carrier.h
"
24
25
#include "ns3/lte-phy.h"
26
#include <ns3/lte-enb-phy.h>
27
#include <ns3/nstime.h>
28
#include <ns3/object.h>
29
#include <ns3/packet.h>
30
#include <ns3/pointer.h>
31
32
namespace
ns3
33
{
34
35
class
LteEnbMac;
36
class
FfMacScheduler;
37
class
LteFfrAlgorithm;
38
46
class
ComponentCarrierEnb
:
public
ComponentCarrierBaseStation
47
{
48
public
:
53
static
TypeId
GetTypeId
();
54
55
ComponentCarrierEnb
();
56
57
~ComponentCarrierEnb
()
override
;
58
void
DoDispose
()
override
;
59
63
Ptr<LteEnbPhy>
GetPhy
();
64
68
Ptr<LteEnbMac>
GetMac
();
69
73
Ptr<LteFfrAlgorithm>
GetFfrAlgorithm
();
74
78
Ptr<FfMacScheduler>
GetFfMacScheduler
();
79
84
void
SetPhy
(
Ptr<LteEnbPhy>
s);
89
void
SetMac
(
Ptr<LteEnbMac>
s);
90
95
void
SetFfMacScheduler
(
Ptr<FfMacScheduler>
s);
96
101
void
SetFfrAlgorithm
(
Ptr<LteFfrAlgorithm>
s);
102
103
protected
:
104
void
DoInitialize
()
override
;
105
106
private
:
107
Ptr<LteEnbPhy>
m_phy
;
108
Ptr<LteEnbMac>
m_mac
;
109
Ptr<FfMacScheduler>
m_scheduler
;
110
Ptr<LteFfrAlgorithm>
111
m_ffrAlgorithm
;
112
};
113
114
}
// namespace ns3
115
116
#endif
/* COMPONENT_CARRIER_H */
ns3::ComponentCarrierBaseStation
Defines a Base station, that is a ComponentCarrier but with a cell Id.
Definition:
component-carrier.h:169
ns3::ComponentCarrierEnb
Defines a single carrier for enb, and contains pointers to LteEnbPhy, LteEnbMac, LteFfrAlgorithm,...
Definition:
component-carrier-enb.h:47
ns3::ComponentCarrierEnb::DoInitialize
void DoInitialize() override
Initialize() implementation.
Definition:
component-carrier-enb.cc:107
ns3::ComponentCarrierEnb::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
component-carrier-enb.cc:79
ns3::ComponentCarrierEnb::GetFfrAlgorithm
Ptr< LteFfrAlgorithm > GetFfrAlgorithm()
Definition:
component-carrier-enb.cc:145
ns3::ComponentCarrierEnb::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
component-carrier-enb.cc:40
ns3::ComponentCarrierEnb::m_scheduler
Ptr< FfMacScheduler > m_scheduler
the scheduler instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:109
ns3::ComponentCarrierEnb::m_mac
Ptr< LteEnbMac > m_mac
the MAC instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:108
ns3::ComponentCarrierEnb::ComponentCarrierEnb
ComponentCarrierEnb()
Definition:
component-carrier-enb.cc:68
ns3::ComponentCarrierEnb::SetFfrAlgorithm
void SetFfrAlgorithm(Ptr< LteFfrAlgorithm > s)
Set the LteFfrAlgorithm.
Definition:
component-carrier-enb.cc:152
ns3::ComponentCarrierEnb::m_ffrAlgorithm
Ptr< LteFfrAlgorithm > m_ffrAlgorithm
the FFR algorithm instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:111
ns3::ComponentCarrierEnb::SetMac
void SetMac(Ptr< LteEnbMac > s)
Set the LteEnbMac.
Definition:
component-carrier-enb.cc:138
ns3::ComponentCarrierEnb::SetFfMacScheduler
void SetFfMacScheduler(Ptr< FfMacScheduler > s)
Set the FfMacScheduler Algorithm.
Definition:
component-carrier-enb.cc:166
ns3::ComponentCarrierEnb::GetFfMacScheduler
Ptr< FfMacScheduler > GetFfMacScheduler()
Definition:
component-carrier-enb.cc:159
ns3::ComponentCarrierEnb::~ComponentCarrierEnb
~ComponentCarrierEnb() override
Definition:
component-carrier-enb.cc:73
ns3::ComponentCarrierEnb::GetPhy
Ptr< LteEnbPhy > GetPhy()
Definition:
component-carrier-enb.cc:117
ns3::ComponentCarrierEnb::m_phy
Ptr< LteEnbPhy > m_phy
the Phy instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:107
ns3::ComponentCarrierEnb::SetPhy
void SetPhy(Ptr< LteEnbPhy > s)
Set the LteEnbPhy.
Definition:
component-carrier-enb.cc:124
ns3::ComponentCarrierEnb::GetMac
Ptr< LteEnbMac > GetMac()
Definition:
component-carrier-enb.cc:131
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
component-carrier.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
component-carrier-enb.h
Generated on Fri Mar 31 2023 13:30:44 for ns-3 by
1.9.1