A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
wifi-spectrum-phy-interface.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 CTTC
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: Nicola Baldo <nbaldo@cttc.es>
18
*/
19
20
#ifndef WIFI_SPECTRUM_PHY_INTERFACE_H
21
#define WIFI_SPECTRUM_PHY_INTERFACE_H
22
23
#include "ns3/spectrum-phy.h"
24
25
namespace
ns3
26
{
27
28
class
SpectrumWifiPhy;
29
41
class
WifiSpectrumPhyInterface
:
public
SpectrumPhy
42
{
43
public
:
48
static
TypeId
GetTypeId
();
49
WifiSpectrumPhyInterface
();
54
void
SetSpectrumWifiPhy
(
const
Ptr<SpectrumWifiPhy>
phy
);
55
56
Ptr<NetDevice>
GetDevice
()
const override
;
57
void
SetDevice
(
const
Ptr<NetDevice>
d)
override
;
58
void
SetMobility
(
const
Ptr<MobilityModel>
m
)
override
;
59
Ptr<MobilityModel>
GetMobility
()
const override
;
60
void
SetChannel
(
const
Ptr<SpectrumChannel>
c)
override
;
61
Ptr<const SpectrumModel>
GetRxSpectrumModel
()
const override
;
62
Ptr<Object>
GetAntenna
()
const override
;
63
void
StartRx
(
Ptr<SpectrumSignalParameters>
params
)
override
;
64
65
private
:
66
void
DoDispose
()
override
;
67
68
Ptr<SpectrumWifiPhy>
m_spectrumWifiPhy
;
69
Ptr<NetDevice>
m_netDevice
;
70
Ptr<SpectrumChannel>
m_channel
;
71
};
72
73
}
// namespace ns3
74
75
#endif
/* WIFI_SPECTRUM_PHY_INTERFACE_H */
ns3::Ptr< SpectrumWifiPhy >
ns3::SpectrumPhy
Abstract base class for Spectrum-aware PHY layers.
Definition:
spectrum-phy.h:46
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
ns3::WifiSpectrumPhyInterface
This class is an adaptor between class SpectrumWifiPhy (which inherits from WifiPhy) and class Spectr...
Definition:
wifi-spectrum-phy-interface.h:42
ns3::WifiSpectrumPhyInterface::SetDevice
void SetDevice(const Ptr< NetDevice > d) override
Set the associated NetDevice instance.
Definition:
wifi-spectrum-phy-interface.cc:77
ns3::WifiSpectrumPhyInterface::GetAntenna
Ptr< Object > GetAntenna() const override
Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
Definition:
wifi-spectrum-phy-interface.cc:102
ns3::WifiSpectrumPhyInterface::WifiSpectrumPhyInterface
WifiSpectrumPhyInterface()
Definition:
wifi-spectrum-phy-interface.cc:44
ns3::WifiSpectrumPhyInterface::SetSpectrumWifiPhy
void SetSpectrumWifiPhy(const Ptr< SpectrumWifiPhy > phy)
Connect SpectrumWifiPhy object.
Definition:
wifi-spectrum-phy-interface.cc:59
ns3::WifiSpectrumPhyInterface::m_netDevice
Ptr< NetDevice > m_netDevice
the device
Definition:
wifi-spectrum-phy-interface.h:69
ns3::WifiSpectrumPhyInterface::SetChannel
void SetChannel(const Ptr< SpectrumChannel > c) override
Set the channel attached to this device.
Definition:
wifi-spectrum-phy-interface.cc:89
ns3::WifiSpectrumPhyInterface::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
wifi-spectrum-phy-interface.cc:50
ns3::WifiSpectrumPhyInterface::StartRx
void StartRx(Ptr< SpectrumSignalParameters > params) override
Notify the SpectrumPhy instance of an incoming signal.
Definition:
wifi-spectrum-phy-interface.cc:108
ns3::WifiSpectrumPhyInterface::GetRxSpectrumModel
Ptr< const SpectrumModel > GetRxSpectrumModel() const override
Definition:
wifi-spectrum-phy-interface.cc:96
ns3::WifiSpectrumPhyInterface::SetMobility
void SetMobility(const Ptr< MobilityModel > m) override
Set the mobility model associated with this device.
Definition:
wifi-spectrum-phy-interface.cc:83
ns3::WifiSpectrumPhyInterface::GetDevice
Ptr< NetDevice > GetDevice() const override
Get the associated NetDevice instance.
Definition:
wifi-spectrum-phy-interface.cc:65
ns3::WifiSpectrumPhyInterface::GetMobility
Ptr< MobilityModel > GetMobility() const override
Get the associated MobilityModel instance.
Definition:
wifi-spectrum-phy-interface.cc:71
ns3::WifiSpectrumPhyInterface::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
wifi-spectrum-phy-interface.cc:37
ns3::WifiSpectrumPhyInterface::m_channel
Ptr< SpectrumChannel > m_channel
spectrum channel
Definition:
wifi-spectrum-phy-interface.h:70
ns3::WifiSpectrumPhyInterface::m_spectrumWifiPhy
Ptr< SpectrumWifiPhy > m_spectrumWifiPhy
spectrum PHY
Definition:
wifi-spectrum-phy-interface.h:68
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.phy
phy
Definition:
third.py:82
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:468
two-ray-to-three-gpp-ch-calibration.m
m
Definition:
two-ray-to-three-gpp-ch-calibration.py:540
src
wifi
model
wifi-spectrum-phy-interface.h
Generated on Fri Mar 31 2023 13:30:54 for ns-3 by
1.9.1