A Discrete-Event Network Simulator
API
lte-simple-spectrum-phy.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Piotr Gawlowicz
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: Piotr Gawlowicz <gawlowicz.p@gmail.com>
18  *
19  */
20 
21 #ifndef LTE_SIMPLE_SPECTRUM_PHY_H
22 #define LTE_SIMPLE_SPECTRUM_PHY_H
23 
24 #include <ns3/event-id.h>
25 #include <ns3/mobility-model.h>
26 #include <ns3/net-device.h>
27 #include <ns3/spectrum-channel.h>
28 #include <ns3/spectrum-phy.h>
29 #include <ns3/spectrum-value.h>
30 #include <ns3/traced-callback.h>
31 
32 namespace ns3
33 {
34 
48 {
49  public:
51  ~LteSimpleSpectrumPhy() override;
52 
57  static TypeId GetTypeId();
58  // inherited from Object
59  void DoDispose() override;
60 
61  // inherited from SpectrumPhy
62  void SetChannel(Ptr<SpectrumChannel> c) override;
63  void SetMobility(Ptr<MobilityModel> m) override;
64  void SetDevice(Ptr<NetDevice> d) override;
65  Ptr<MobilityModel> GetMobility() const override;
66  Ptr<NetDevice> GetDevice() const override;
68  Ptr<Object> GetAntenna() const override;
70 
76 
81  void SetCellId(uint16_t cellId);
82 
83  private:
89 
90  uint16_t m_cellId;
91 
93 };
94 
95 } // namespace ns3
96 
97 #endif /* LTE_SIMPLE_SPECTRUM_PHY_H */
The LteSimpleSpectrumPhy models the physical layer of LTE This class is used to test Frequency Reuse ...
void SetMobility(Ptr< MobilityModel > m) override
Set the mobility model associated with this device.
Ptr< NetDevice > GetDevice() const override
Get the associated NetDevice instance.
Ptr< SpectrumChannel > m_channel
the channel
void SetRxSpectrumModel(Ptr< const SpectrumModel > model)
Set receive spectrum model.
void DoDispose() override
Destructor implementation.
Ptr< MobilityModel > GetMobility() const override
Get the associated MobilityModel instance.
Ptr< const SpectrumModel > GetRxSpectrumModel() const override
Ptr< AntennaModel > m_antenna
the antenna model
void SetDevice(Ptr< NetDevice > d) override
Set the associated NetDevice instance.
void StartRx(Ptr< SpectrumSignalParameters > params) override
Notify the SpectrumPhy instance of an incoming signal.
Ptr< Object > GetAntenna() const override
Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
Ptr< NetDevice > m_device
the device
Ptr< const SpectrumModel > m_rxSpectrumModel
the spectrum model
TracedCallback< Ptr< const SpectrumValue > > m_rxStart
receive start trace callback function
static TypeId GetTypeId()
Get the type ID.
Ptr< MobilityModel > m_mobility
the mobility model
void SetCellId(uint16_t cellId)
Set cell ID.
void SetChannel(Ptr< SpectrumChannel > c) override
Set the channel attached to this device.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
Abstract base class for Spectrum-aware PHY layers.
Definition: spectrum-phy.h:46
Forward calls to a chain of Callback.
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.