A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
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
ComponentCarrierBaseStation
49
{
50
public
:
55
static
TypeId
GetTypeId
(
void
);
56
57
ComponentCarrierEnb
();
58
59
virtual
~ComponentCarrierEnb
(
void
);
60
virtual
void
DoDispose
(
void
);
61
65
Ptr<LteEnbPhy>
GetPhy
(
void
);
66
70
Ptr<LteEnbMac>
GetMac
(
void
);
71
75
Ptr<LteFfrAlgorithm>
GetFfrAlgorithm
();
76
80
Ptr<FfMacScheduler>
GetFfMacScheduler
();
81
86
void
SetPhy
(
Ptr<LteEnbPhy>
s);
91
void
SetMac
(
Ptr<LteEnbMac>
s);
92
97
void
SetFfMacScheduler
(
Ptr<FfMacScheduler>
s);
98
103
void
SetFfrAlgorithm
(
Ptr<LteFfrAlgorithm>
s);
104
105
protected
:
106
107
virtual
void
DoInitialize
(
void
);
108
109
private
:
110
Ptr<LteEnbPhy>
m_phy
;
111
Ptr<LteEnbMac>
m_mac
;
112
Ptr<FfMacScheduler>
m_scheduler
;
113
Ptr<LteFfrAlgorithm>
m_ffrAlgorithm
;
114
};
115
116
}
// namespace ns3
117
118
#endif
/* COMPONENT_CARRIER_H */
ns3::ComponentCarrierBaseStation
Defines a Base station, that is a ComponentCarrier but with a cell Id.
Definition:
component-carrier.h:170
ns3::ComponentCarrierEnb
Defines a single carrier for enb, and contains pointers to LteEnbPhy, LteEnbMac, LteFfrAlgorithm,...
Definition:
component-carrier-enb.h:49
ns3::ComponentCarrierEnb::GetFfrAlgorithm
Ptr< LteFfrAlgorithm > GetFfrAlgorithm()
Definition:
component-carrier-enb.cc:147
ns3::ComponentCarrierEnb::m_scheduler
Ptr< FfMacScheduler > m_scheduler
the scheduler instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:112
ns3::ComponentCarrierEnb::m_mac
Ptr< LteEnbMac > m_mac
the MAC instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:111
ns3::ComponentCarrierEnb::ComponentCarrierEnb
ComponentCarrierEnb()
Definition:
component-carrier-enb.cc:68
ns3::ComponentCarrierEnb::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition:
component-carrier-enb.cc:108
ns3::ComponentCarrierEnb::GetMac
Ptr< LteEnbMac > GetMac(void)
Definition:
component-carrier-enb.cc:134
ns3::ComponentCarrierEnb::SetFfrAlgorithm
void SetFfrAlgorithm(Ptr< LteFfrAlgorithm > s)
Set the LteFfrAlgorithm.
Definition:
component-carrier-enb.cc:154
ns3::ComponentCarrierEnb::m_ffrAlgorithm
Ptr< LteFfrAlgorithm > m_ffrAlgorithm
the FFR algorithm instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:113
ns3::ComponentCarrierEnb::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
component-carrier-enb.cc:79
ns3::ComponentCarrierEnb::~ComponentCarrierEnb
virtual ~ComponentCarrierEnb(void)
Definition:
component-carrier-enb.cc:73
ns3::ComponentCarrierEnb::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier-enb.cc:38
ns3::ComponentCarrierEnb::GetPhy
Ptr< LteEnbPhy > GetPhy(void)
Definition:
component-carrier-enb.cc:119
ns3::ComponentCarrierEnb::SetMac
void SetMac(Ptr< LteEnbMac > s)
Set the LteEnbMac.
Definition:
component-carrier-enb.cc:140
ns3::ComponentCarrierEnb::SetFfMacScheduler
void SetFfMacScheduler(Ptr< FfMacScheduler > s)
Set the FfMacScheduler Algorithm.
Definition:
component-carrier-enb.cc:168
ns3::ComponentCarrierEnb::GetFfMacScheduler
Ptr< FfMacScheduler > GetFfMacScheduler()
Definition:
component-carrier-enb.cc:161
ns3::ComponentCarrierEnb::m_phy
Ptr< LteEnbPhy > m_phy
the Phy instance of this eNodeB component carrier
Definition:
component-carrier-enb.h:110
ns3::ComponentCarrierEnb::SetPhy
void SetPhy(Ptr< LteEnbPhy > s)
Set the LteEnbPhy.
Definition:
component-carrier-enb.cc:127
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
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 Tue Feb 6 2024 19:21:21 for ns-3 by
1.9.1