A Discrete-Event Network Simulator
API
component-carrier-enb.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_ENB_H
23 #define COMPONENT_CARRIER_ENB_H
24 
25 #include "component-carrier.h"
26 #include <ns3/object.h>
27 #include <ns3/packet.h>
28 #include <ns3/nstime.h>
29 #include "ns3/lte-phy.h"
30 #include <ns3/lte-enb-phy.h>
31 #include <ns3/pointer.h>
32 //#include <ns3/lte-enb-mac.h>
33 
34 
35 namespace ns3 {
36 
37 class LteEnbMac;
38 class FfMacScheduler;
39 class LteFfrAlgorithm;
40 
49 {
50 public:
55  static TypeId GetTypeId (void);
56 
58 
59  virtual ~ComponentCarrierEnb (void);
60  virtual void DoDispose (void);
61 
66  uint16_t GetCellId ();
67 
71  Ptr<LteEnbPhy> GetPhy (void);
72 
76  Ptr<LteEnbMac> GetMac (void);
77 
82 
87 
92  void SetCellId (uint16_t cellId);
93 
98  void SetPhy (Ptr<LteEnbPhy> s);
103  void SetMac (Ptr<LteEnbMac> s);
104 
110 
116 
117 protected:
118 
119  virtual void DoInitialize (void);
120 
121 private:
122 
123  uint16_t m_cellId;
128 
129 
130 };
131 
132 } // namespace ns3
133 
134 
135 
136 #endif /* COMPONENT_CARRIER_H */
void SetFfrAlgorithm(Ptr< LteFfrAlgorithm > s)
Set the LteFfrAlgorithm.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:73
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
Ptr< LteEnbMac > m_mac
the MAC instance of this eNodeB component carrier
void SetPhy(Ptr< LteEnbPhy > s)
Set the LteEnbPhy.
static TypeId GetTypeId(void)
Get the type ID.
uint16_t GetCellId()
Get cell identifier.
Defines a single carrier for enb, and contains pointers to LteEnbPhy, LteEnbMac, LteFfrAlgorithm, and FfMacScheduler objects.
Ptr< FfMacScheduler > GetFfMacScheduler()
Ptr< LteEnbMac > GetMac(void)
virtual void DoInitialize(void)
Initialize() implementation.
virtual void DoDispose(void)
Destructor implementation.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint16_t m_cellId
Cell identifer.
void SetCellId(uint16_t cellId)
Set physical cell identifier.
void SetFfMacScheduler(Ptr< FfMacScheduler > s)
Set the FfMacScheduler Algorithm.
void SetMac(Ptr< LteEnbMac > s)
Set the LteEnbMac.
Ptr< FfMacScheduler > m_scheduler
the scheduler instance of this eNodeB component carrier
Ptr< LteFfrAlgorithm > m_ffrAlgorithm
the FFR algorithm instance of this eNodeB component carrier
Ptr< LteFfrAlgorithm > GetFfrAlgorithm()
Ptr< LteEnbPhy > GetPhy(void)
Ptr< LteEnbPhy > m_phy
the Phy instance of this eNodeB component carrier
a unique identifier for an interface.
Definition: type-id.h:58