A Discrete-Event Network Simulator
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 
41 {
42  public:
47  static TypeId GetTypeId();
48 
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:
83 };
84 
85 } // namespace ns3
86 
87 #endif /* COMPONENT_CARRIER_UE_H */
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
ComponentCarrierUe Object, it defines a single Carrier for the Ue.
void DoInitialize() override
Initialize() implementation.
void DoDispose() override
Destructor implementation.
Ptr< LteUePhy > m_phy
the Phy instance of this eNodeB component carrier
static TypeId GetTypeId()
Get the type ID.
Ptr< LteUeMac > GetMac() const
Ptr< LteUeMac > m_mac
the MAC instance of this eNodeB component carrier
void SetPhy(Ptr< LteUePhy > s)
Set LteUePhy.
void SetMac(Ptr< LteUeMac > s)
Set the LteEnbMac.
Ptr< LteUePhy > GetPhy() const
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
a unique identifier for an interface.
Definition: type-id.h:60
Every class exported by the ns3 library is enclosed in the ns3 namespace.