A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
component-carrier-ue.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_UE_H
21
#define COMPONENT_CARRIER_UE_H
22
23
#include "ns3/lte-phy.h"
24
#include <ns3/component-carrier.h>
25
#include <ns3/lte-ue-phy.h>
26
#include <ns3/nstime.h>
27
#include <ns3/object.h>
28
#include <ns3/packet.h>
29
30
namespace
ns3
31
{
32
33
class
LteUeMac;
34
40
class
ComponentCarrierUe
:
public
ComponentCarrier
41
{
42
public
:
47
static
TypeId
GetTypeId
();
48
49
ComponentCarrierUe
();
50
51
~ComponentCarrierUe
()
override
;
52
void
DoDispose
()
override
;
53
57
Ptr<LteUePhy>
GetPhy
()
const
;
58
62
Ptr<LteUeMac>
GetMac
()
const
;
63
68
void
SetPhy
(
Ptr<LteUePhy>
s);
69
74
void
SetMac
(
Ptr<LteUeMac>
s);
75
76
protected
:
77
// inherited from Object
78
void
DoInitialize
()
override
;
79
80
private
:
81
Ptr<LteUePhy>
m_phy
;
82
Ptr<LteUeMac>
m_mac
;
83
};
84
85
}
// namespace ns3
86
87
#endif
/* COMPONENT_CARRIER_UE_H */
ns3::ComponentCarrier
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
Definition:
component-carrier.h:39
ns3::ComponentCarrierUe
ComponentCarrierUe Object, it defines a single Carrier for the Ue.
Definition:
component-carrier-ue.h:41
ns3::ComponentCarrierUe::ComponentCarrierUe
ComponentCarrierUe()
Definition:
component-carrier-ue.cc:57
ns3::ComponentCarrierUe::DoInitialize
void DoInitialize() override
Initialize() implementation.
Definition:
component-carrier-ue.cc:79
ns3::ComponentCarrierUe::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
component-carrier-ue.cc:68
ns3::ComponentCarrierUe::m_phy
Ptr< LteUePhy > m_phy
the Phy instance of this eNodeB component carrier
Definition:
component-carrier-ue.h:81
ns3::ComponentCarrierUe::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
component-carrier-ue.cc:39
ns3::ComponentCarrierUe::GetMac
Ptr< LteUeMac > GetMac() const
Definition:
component-carrier-ue.cc:108
ns3::ComponentCarrierUe::~ComponentCarrierUe
~ComponentCarrierUe() override
Definition:
component-carrier-ue.cc:62
ns3::ComponentCarrierUe::m_mac
Ptr< LteUeMac > m_mac
the MAC instance of this eNodeB component carrier
Definition:
component-carrier-ue.h:82
ns3::ComponentCarrierUe::SetPhy
void SetPhy(Ptr< LteUePhy > s)
Set LteUePhy.
Definition:
component-carrier-ue.cc:87
ns3::ComponentCarrierUe::SetMac
void SetMac(Ptr< LteUeMac > s)
Set the LteEnbMac.
Definition:
component-carrier-ue.cc:101
ns3::ComponentCarrierUe::GetPhy
Ptr< LteUePhy > GetPhy() const
Definition:
component-carrier-ue.cc:94
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
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
component-carrier-ue.h
Generated on Fri Mar 31 2023 13:30:44 for ns-3 by
1.9.1