A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
model
component-carrier-ue.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_UE_H
23
#define COMPONENT_CARRIER_UE_H
24
25
#include <ns3/object.h>
26
#include <ns3/packet.h>
27
#include <ns3/nstime.h>
28
#include "ns3/lte-phy.h"
29
#include <ns3/lte-ue-phy.h>
30
#include <ns3/component-carrier.h>
31
32
namespace
ns3
{
33
34
class
LteUeMac;
40
class
ComponentCarrierUe
:
public
ComponentCarrier
41
{
42
public
:
47
static
TypeId
GetTypeId
(
void
);
48
49
ComponentCarrierUe
();
50
51
virtual
~ComponentCarrierUe
(
void
);
52
virtual
void
DoDispose
(
void
);
53
54
58
Ptr<LteUePhy>
GetPhy
(
void
)
const
;
59
63
Ptr<LteUeMac>
GetMac
(
void
)
const
;
64
69
void
SetPhy
(
Ptr<LteUePhy>
s);
70
75
void
SetMac
(
Ptr<LteUeMac>
s);
76
77
protected
:
78
// inherited from Object
79
virtual
void
DoInitialize
(
void
);
80
81
private
:
82
83
Ptr<LteUePhy>
m_phy
;
84
Ptr<LteUeMac>
m_mac
;
85
86
};
87
88
89
90
}
// namespace ns3
91
92
93
94
#endif
/* COMPONENT_CARRIER_UE_H */
ns3::ComponentCarrierUe::~ComponentCarrierUe
virtual ~ComponentCarrierUe(void)
Definition:
component-carrier-ue.cc:62
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::ComponentCarrierUe::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
component-carrier-ue.cc:68
ns3::ComponentCarrierUe
ComponentCarrierUe Object, it defines a single Carrier for the Ue.
Definition:
component-carrier-ue.h:40
ns3::ComponentCarrier
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
Definition:
component-carrier.h:45
ns3::ComponentCarrierUe::SetMac
void SetMac(Ptr< LteUeMac > s)
Set the LteEnbMac.
Definition:
component-carrier-ue.cc:104
ns3::ComponentCarrierUe::GetMac
Ptr< LteUeMac > GetMac(void) const
Definition:
component-carrier-ue.cc:111
ns3::ComponentCarrierUe::m_phy
Ptr< LteUePhy > m_phy
the Phy instance of this eNodeB component carrier
Definition:
component-carrier-ue.h:83
ns3::ComponentCarrierUe::ComponentCarrierUe
ComponentCarrierUe()
Definition:
component-carrier-ue.cc:57
ns3::ComponentCarrierUe::GetPhy
Ptr< LteUePhy > GetPhy(void) const
Definition:
component-carrier-ue.cc:97
ns3::ComponentCarrierUe::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier-ue.cc:37
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ComponentCarrierUe::m_mac
Ptr< LteUeMac > m_mac
the MAC instance of this eNodeB component carrier
Definition:
component-carrier-ue.h:84
ns3::ComponentCarrierUe::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition:
component-carrier-ue.cc:80
ns3::ComponentCarrierUe::SetPhy
void SetPhy(Ptr< LteUePhy > s)
Set LteUePhy.
Definition:
component-carrier-ue.cc:89
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