A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
47
class
LteSimpleSpectrumPhy
:
public
SpectrumPhy
48
{
49
public
:
50
LteSimpleSpectrumPhy
();
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
;
67
Ptr<const SpectrumModel>
GetRxSpectrumModel
()
const override
;
68
Ptr<Object>
GetAntenna
()
const override
;
69
void
StartRx
(
Ptr<SpectrumSignalParameters>
params
)
override
;
70
75
void
SetRxSpectrumModel
(
Ptr<const SpectrumModel>
model);
76
81
void
SetCellId
(uint16_t cellId);
82
83
private
:
84
Ptr<MobilityModel>
m_mobility
;
85
Ptr<AntennaModel>
m_antenna
;
86
Ptr<NetDevice>
m_device
;
87
Ptr<SpectrumChannel>
m_channel
;
88
Ptr<const SpectrumModel>
m_rxSpectrumModel
;
89
90
uint16_t
m_cellId
;
91
92
TracedCallback<Ptr<const SpectrumValue>
>
m_rxStart
;
93
};
94
95
}
// namespace ns3
96
97
#endif
/* LTE_SIMPLE_SPECTRUM_PHY_H */
ns3::LteSimpleSpectrumPhy
The LteSimpleSpectrumPhy models the physical layer of LTE This class is used to test Frequency Reuse ...
Definition:
lte-simple-spectrum-phy.h:48
ns3::LteSimpleSpectrumPhy::~LteSimpleSpectrumPhy
~LteSimpleSpectrumPhy() override
Definition:
lte-simple-spectrum-phy.cc:46
ns3::LteSimpleSpectrumPhy::SetMobility
void SetMobility(Ptr< MobilityModel > m) override
Set the mobility model associated with this device.
Definition:
lte-simple-spectrum-phy.cc:96
ns3::LteSimpleSpectrumPhy::GetDevice
Ptr< NetDevice > GetDevice() const override
Get the associated NetDevice instance.
Definition:
lte-simple-spectrum-phy.cc:75
ns3::LteSimpleSpectrumPhy::m_channel
Ptr< SpectrumChannel > m_channel
the channel
Definition:
lte-simple-spectrum-phy.h:87
ns3::LteSimpleSpectrumPhy::SetRxSpectrumModel
void SetRxSpectrumModel(Ptr< const SpectrumModel > model)
Set receive spectrum model.
Definition:
lte-simple-spectrum-phy.cc:151
ns3::LteSimpleSpectrumPhy::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
lte-simple-spectrum-phy.cc:52
ns3::LteSimpleSpectrumPhy::GetMobility
Ptr< MobilityModel > GetMobility() const override
Get the associated MobilityModel instance.
Definition:
lte-simple-spectrum-phy.cc:82
ns3::LteSimpleSpectrumPhy::GetRxSpectrumModel
Ptr< const SpectrumModel > GetRxSpectrumModel() const override
Definition:
lte-simple-spectrum-phy.cc:110
ns3::LteSimpleSpectrumPhy::m_antenna
Ptr< AntennaModel > m_antenna
the antenna model
Definition:
lte-simple-spectrum-phy.h:85
ns3::LteSimpleSpectrumPhy::SetDevice
void SetDevice(Ptr< NetDevice > d) override
Set the associated NetDevice instance.
Definition:
lte-simple-spectrum-phy.cc:89
ns3::LteSimpleSpectrumPhy::StartRx
void StartRx(Ptr< SpectrumSignalParameters > params) override
Notify the SpectrumPhy instance of an incoming signal.
Definition:
lte-simple-spectrum-phy.cc:122
ns3::LteSimpleSpectrumPhy::GetAntenna
Ptr< Object > GetAntenna() const override
Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
Definition:
lte-simple-spectrum-phy.cc:116
ns3::LteSimpleSpectrumPhy::m_device
Ptr< NetDevice > m_device
the device
Definition:
lte-simple-spectrum-phy.h:86
ns3::LteSimpleSpectrumPhy::LteSimpleSpectrumPhy
LteSimpleSpectrumPhy()
Definition:
lte-simple-spectrum-phy.cc:41
ns3::LteSimpleSpectrumPhy::m_rxSpectrumModel
Ptr< const SpectrumModel > m_rxSpectrumModel
the spectrum model
Definition:
lte-simple-spectrum-phy.h:88
ns3::LteSimpleSpectrumPhy::m_rxStart
TracedCallback< Ptr< const SpectrumValue > > m_rxStart
receive start trace callback function
Definition:
lte-simple-spectrum-phy.h:92
ns3::LteSimpleSpectrumPhy::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-simple-spectrum-phy.cc:62
ns3::LteSimpleSpectrumPhy::m_mobility
Ptr< MobilityModel > m_mobility
the mobility model
Definition:
lte-simple-spectrum-phy.h:84
ns3::LteSimpleSpectrumPhy::SetCellId
void SetCellId(uint16_t cellId)
Set cell ID.
Definition:
lte-simple-spectrum-phy.cc:158
ns3::LteSimpleSpectrumPhy::SetChannel
void SetChannel(Ptr< SpectrumChannel > c) override
Set the channel attached to this device.
Definition:
lte-simple-spectrum-phy.cc:103
ns3::LteSimpleSpectrumPhy::m_cellId
uint16_t m_cellId
the cell ID
Definition:
lte-simple-spectrum-phy.h:90
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::SpectrumPhy
Abstract base class for Spectrum-aware PHY layers.
Definition:
spectrum-phy.h:46
ns3::TracedCallback
Forward calls to a chain of Callback.
Definition:
traced-callback.h:54
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.params
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.
Definition:
two-ray-to-three-gpp-ch-calibration.py:514
two-ray-to-three-gpp-ch-calibration.m
m
Definition:
two-ray-to-three-gpp-ch-calibration.py:591
src
lte
test
lte-simple-spectrum-phy.h
Generated on Sun Mar 3 2024 17:11:03 for ns-3 by
1.9.1