A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
model
component-carrier-enb.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 COMPONENT_CARRIER_ENB_H
23
#define COMPONENT_CARRIER_ENB_H
24
25
#include "
component-carrier.h
"
26
#include <ns3/object.h>
27
#include <ns3/packet.h>
28
#include <ns3/nstime.h>
29
#include "ns3/lte-phy.h"
30
#include <ns3/lte-enb-phy.h>
31
#include <ns3/pointer.h>
32
//#include <ns3/lte-enb-mac.h>
33
34
35
namespace
ns3
{
36
37
class
LteEnbMac;
38
class
FfMacScheduler;
39
class
LteFfrAlgorithm;
40
48
class
ComponentCarrierEnb
:
public
ComponentCarrier
49
{
50
public
:
55
static
TypeId
GetTypeId
(
void
);
56
57
ComponentCarrierEnb
();
58
59
virtual
~ComponentCarrierEnb
(
void
);
60
virtual
void
DoDispose
(
void
);
61
66
uint16_t
GetCellId
();
67
71
Ptr<LteEnbPhy>
GetPhy
(
void
);
72
76
Ptr<LteEnbMac>
GetMac
(
void
);
77
81
Ptr<LteFfrAlgorithm>
GetFfrAlgorithm
();
82
86
Ptr<FfMacScheduler>
GetFfMacScheduler
();
87
92
void
SetCellId
(uint16_t cellId);
93
98
void
SetPhy
(
Ptr<LteEnbPhy>
s);
103
void
SetMac
(
Ptr<LteEnbMac>
s);
104
109
void
SetFfMacScheduler
(
Ptr<FfMacScheduler>
s);
110
115
void
SetFfrAlgorithm
(
Ptr<LteFfrAlgorithm>
s);
116
117
protected
:
118
119
virtual
void
DoInitialize
(
void
);
120
121
private
:
122
123
uint16_t
m_cellId
;
124
Ptr<LteEnbPhy>
m_phy
;
125
Ptr<LteEnbMac>
m_mac
;
126
Ptr<FfMacScheduler>
m_scheduler
;
127
Ptr<LteFfrAlgorithm>
m_ffrAlgorithm
;
128
129
130
};
131
132
}
// namespace ns3
133
134
135
136
#endif
/* COMPONENT_CARRIER_H */
ns3::ComponentCarrierEnb::SetFfrAlgorithm
void SetFfrAlgorithm(Ptr< LteFfrAlgorithm > s)
Set the LteFfrAlgorithm.
Definition:
component-carrier-enb.cc:167
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
component-carrier.h
ns3::ComponentCarrier
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
Definition:
component-carrier.h:45
ns3::ComponentCarrierEnb::m_mac
Ptr< LteEnbMac > m_mac
the MAC instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:125
ns3::ComponentCarrierEnb::SetPhy
void SetPhy(Ptr< LteEnbPhy > s)
Set the LteEnbPhy.
Definition:
component-carrier-enb.cc:140
ns3::ComponentCarrierEnb::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier-enb.cc:38
ns3::ComponentCarrierEnb::~ComponentCarrierEnb
virtual ~ComponentCarrierEnb(void)
Definition:
component-carrier-enb.cc:73
ns3::ComponentCarrierEnb::GetCellId
uint16_t GetCellId()
Get cell identifier.
Definition:
component-carrier-enb.cc:120
ns3::ComponentCarrierEnb
Defines a single carrier for enb, and contains pointers to LteEnbPhy, LteEnbMac, LteFfrAlgorithm, and FfMacScheduler objects.
Definition:
component-carrier-enb.h:48
ns3::ComponentCarrierEnb::GetFfMacScheduler
Ptr< FfMacScheduler > GetFfMacScheduler()
Definition:
component-carrier-enb.cc:174
ns3::ComponentCarrierEnb::GetMac
Ptr< LteEnbMac > GetMac(void)
Definition:
component-carrier-enb.cc:147
ns3::ComponentCarrierEnb::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition:
component-carrier-enb.cc:108
ns3::ComponentCarrierEnb::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
component-carrier-enb.cc:79
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ComponentCarrierEnb::m_cellId
uint16_t m_cellId
Cell identifier.
Definition:
component-carrier-enb.h:123
ns3::ComponentCarrierEnb::SetCellId
void SetCellId(uint16_t cellId)
Set physical cell identifier.
Definition:
component-carrier-enb.cc:133
ns3::ComponentCarrierEnb::SetFfMacScheduler
void SetFfMacScheduler(Ptr< FfMacScheduler > s)
Set the FfMacScheduler Algorithm.
Definition:
component-carrier-enb.cc:181
ns3::ComponentCarrierEnb::SetMac
void SetMac(Ptr< LteEnbMac > s)
Set the LteEnbMac.
Definition:
component-carrier-enb.cc:153
ns3::ComponentCarrierEnb::m_scheduler
Ptr< FfMacScheduler > m_scheduler
the scheduler instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:126
ns3::ComponentCarrierEnb::m_ffrAlgorithm
Ptr< LteFfrAlgorithm > m_ffrAlgorithm
the FFR algorithm instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:127
ns3::ComponentCarrierEnb::GetFfrAlgorithm
Ptr< LteFfrAlgorithm > GetFfrAlgorithm()
Definition:
component-carrier-enb.cc:160
ns3::ComponentCarrierEnb::GetPhy
Ptr< LteEnbPhy > GetPhy(void)
Definition:
component-carrier-enb.cc:126
ns3::ComponentCarrierEnb::ComponentCarrierEnb
ComponentCarrierEnb()
Definition:
component-carrier-enb.cc:68
ns3::ComponentCarrierEnb::m_phy
Ptr< LteEnbPhy > m_phy
the Phy instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:124
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
Generated on Wed Nov 7 2018 10:01:59 for ns-3 by
1.8.14