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 
65  Ptr<LteEnbPhy> GetPhy (void);
66 
70  Ptr<LteEnbMac> GetMac (void);
71 
76 
81 
86  void SetPhy (Ptr<LteEnbPhy> s);
91  void SetMac (Ptr<LteEnbMac> s);
92 
98 
104 
105 protected:
106 
107  virtual void DoInitialize (void);
108 
109 private:
114 };
115 
116 } // namespace ns3
117 
118 #endif /* COMPONENT_CARRIER_H */
Defines a Base station, that is a ComponentCarrier but with a cell Id.
Defines a single carrier for enb, and contains pointers to LteEnbPhy, LteEnbMac, LteFfrAlgorithm,...
Ptr< LteFfrAlgorithm > GetFfrAlgorithm()
Ptr< FfMacScheduler > m_scheduler
the scheduler instance of this eNodeB component carrier
Ptr< LteEnbMac > m_mac
the MAC instance of this eNodeB component carrier
virtual void DoInitialize(void)
Initialize() implementation.
Ptr< LteEnbMac > GetMac(void)
void SetFfrAlgorithm(Ptr< LteFfrAlgorithm > s)
Set the LteFfrAlgorithm.
Ptr< LteFfrAlgorithm > m_ffrAlgorithm
the FFR algorithm instance of this eNodeB component carrier
virtual void DoDispose(void)
Destructor implementation.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< LteEnbPhy > GetPhy(void)
void SetMac(Ptr< LteEnbMac > s)
Set the LteEnbMac.
void SetFfMacScheduler(Ptr< FfMacScheduler > s)
Set the FfMacScheduler Algorithm.
Ptr< FfMacScheduler > GetFfMacScheduler()
Ptr< LteEnbPhy > m_phy
the Phy instance of this eNodeB component carrier
void SetPhy(Ptr< LteEnbPhy > s)
Set the LteEnbPhy.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:74
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.