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
#include "
lte-enb-phy.h
"
25
26
#include <ns3/nstime.h>
27
#include <ns3/object.h>
28
#include <ns3/packet.h>
29
#include <ns3/pointer.h>
30
31
namespace
ns3
32
{
33
34
class
LteEnbMac;
35
class
FfMacScheduler;
36
class
LteFfrAlgorithm;
37
45
class
ComponentCarrierEnb
:
public
ComponentCarrierBaseStation
46
{
47
public
:
52
static
TypeId
GetTypeId
();
53
54
ComponentCarrierEnb
();
55
56
~ComponentCarrierEnb
()
override
;
57
void
DoDispose
()
override
;
58
62
Ptr<LteEnbPhy>
GetPhy
();
63
67
Ptr<LteEnbMac>
GetMac
();
68
72
Ptr<LteFfrAlgorithm>
GetFfrAlgorithm
();
73
77
Ptr<FfMacScheduler>
GetFfMacScheduler
();
78
83
void
SetPhy
(
Ptr<LteEnbPhy>
s);
88
void
SetMac
(
Ptr<LteEnbMac>
s);
89
94
void
SetFfMacScheduler
(
Ptr<FfMacScheduler>
s);
95
100
void
SetFfrAlgorithm
(
Ptr<LteFfrAlgorithm>
s);
101
102
protected
:
103
void
DoInitialize
()
override
;
104
105
private
:
106
Ptr<LteEnbPhy>
m_phy
;
107
Ptr<LteEnbMac>
m_mac
;
108
Ptr<FfMacScheduler>
m_scheduler
;
109
Ptr<LteFfrAlgorithm>
110
m_ffrAlgorithm
;
111
};
112
113
}
// namespace ns3
114
115
#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:46
ns3::ComponentCarrierEnb::DoInitialize
void DoInitialize() override
Initialize() implementation.
Definition:
component-carrier-enb.cc:108
ns3::ComponentCarrierEnb::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
component-carrier-enb.cc:80
ns3::ComponentCarrierEnb::GetFfrAlgorithm
Ptr< LteFfrAlgorithm > GetFfrAlgorithm()
Definition:
component-carrier-enb.cc:146
ns3::ComponentCarrierEnb::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
component-carrier-enb.cc:41
ns3::ComponentCarrierEnb::m_scheduler
Ptr< FfMacScheduler > m_scheduler
the scheduler instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:108
ns3::ComponentCarrierEnb::m_mac
Ptr< LteEnbMac > m_mac
the MAC instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:107
ns3::ComponentCarrierEnb::ComponentCarrierEnb
ComponentCarrierEnb()
Definition:
component-carrier-enb.cc:69
ns3::ComponentCarrierEnb::SetFfrAlgorithm
void SetFfrAlgorithm(Ptr< LteFfrAlgorithm > s)
Set the LteFfrAlgorithm.
Definition:
component-carrier-enb.cc:153
ns3::ComponentCarrierEnb::m_ffrAlgorithm
Ptr< LteFfrAlgorithm > m_ffrAlgorithm
the FFR algorithm instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:110
ns3::ComponentCarrierEnb::SetMac
void SetMac(Ptr< LteEnbMac > s)
Set the LteEnbMac.
Definition:
component-carrier-enb.cc:139
ns3::ComponentCarrierEnb::SetFfMacScheduler
void SetFfMacScheduler(Ptr< FfMacScheduler > s)
Set the FfMacScheduler Algorithm.
Definition:
component-carrier-enb.cc:167
ns3::ComponentCarrierEnb::GetFfMacScheduler
Ptr< FfMacScheduler > GetFfMacScheduler()
Definition:
component-carrier-enb.cc:160
ns3::ComponentCarrierEnb::~ComponentCarrierEnb
~ComponentCarrierEnb() override
Definition:
component-carrier-enb.cc:74
ns3::ComponentCarrierEnb::GetPhy
Ptr< LteEnbPhy > GetPhy()
Definition:
component-carrier-enb.cc:118
ns3::ComponentCarrierEnb::m_phy
Ptr< LteEnbPhy > m_phy
the Phy instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:106
ns3::ComponentCarrierEnb::SetPhy
void SetPhy(Ptr< LteEnbPhy > s)
Set the LteEnbPhy.
Definition:
component-carrier-enb.cc:125
ns3::ComponentCarrierEnb::GetMac
Ptr< LteEnbMac > GetMac()
Definition:
component-carrier-enb.cc:132
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
component-carrier.h
lte-enb-phy.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
component-carrier-enb.h
Generated on Sun Mar 3 2024 17:11:01 for ns-3 by
1.9.1