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