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 "component-carrier.h"
24 #include "lte-phy.h"
25 #include "lte-ue-phy.h"
26 
27 #include <ns3/nstime.h>
28 #include <ns3/object.h>
29 #include <ns3/packet.h>
30 
31 namespace ns3
32 {
33 
34 class LteUeMac;
35 
42 {
43  public:
48  static TypeId GetTypeId();
49 
51 
52  ~ComponentCarrierUe() override;
53  void DoDispose() override;
54 
58  Ptr<LteUePhy> GetPhy() const;
59 
63  Ptr<LteUeMac> GetMac() const;
64 
69  void SetPhy(Ptr<LteUePhy> s);
70 
75  void SetMac(Ptr<LteUeMac> s);
76 
77  protected:
78  // inherited from Object
79  void DoInitialize() override;
80 
81  private:
84 };
85 
86 } // namespace ns3
87 
88 #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:77
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.