A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
yans-wifi-phy.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005,2006 INRIA
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
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
18
* Ghada Badawy <gbadawy@gmail.com>
19
* Sébastien Deronne <sebastien.deronne@gmail.com>
20
*/
21
22
#ifndef YANS_WIFI_PHY_H
23
#define YANS_WIFI_PHY_H
24
25
#include "
wifi-phy.h
"
26
27
namespace
ns3
28
{
29
30
class
YansWifiChannel;
31
47
class
YansWifiPhy
:
public
WifiPhy
48
{
49
public
:
54
static
TypeId
GetTypeId
();
55
56
YansWifiPhy
();
57
~YansWifiPhy
()
override
;
58
59
void
SetInterferenceHelper
(
const
Ptr<InterferenceHelper>
helper)
override
;
60
void
StartTx
(
Ptr<const WifiPpdu>
ppdu)
override
;
61
Ptr<Channel>
GetChannel
()
const override
;
62
uint16_t
GetGuardBandwidth
(uint16_t currentChannelWidth)
const override
;
63
std::tuple<double, double, double>
GetTxMaskRejectionParams
()
const override
;
64
70
void
SetChannel
(
const
Ptr<YansWifiChannel>
channel
);
71
72
protected
:
73
void
DoDispose
()
override
;
74
75
private
:
76
Ptr<YansWifiChannel>
m_channel
;
77
};
78
79
}
// namespace ns3
80
81
#endif
/* YANS_WIFI_PHY_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
ns3::WifiPhy
802.11 PHY layer model
Definition:
wifi-phy.h:53
ns3::YansWifiPhy
802.11 PHY layer model
Definition:
yans-wifi-phy.h:48
ns3::YansWifiPhy::YansWifiPhy
YansWifiPhy()
Definition:
yans-wifi-phy.cc:46
ns3::YansWifiPhy::m_channel
Ptr< YansWifiChannel > m_channel
YansWifiChannel that this YansWifiPhy is connected to.
Definition:
yans-wifi-phy.h:76
ns3::YansWifiPhy::StartTx
void StartTx(Ptr< const WifiPpdu > ppdu) override
Definition:
yans-wifi-phy.cc:90
ns3::YansWifiPhy::GetGuardBandwidth
uint16_t GetGuardBandwidth(uint16_t currentChannelWidth) const override
Definition:
yans-wifi-phy.cc:99
ns3::YansWifiPhy::SetChannel
void SetChannel(const Ptr< YansWifiChannel > channel)
Set the YansWifiChannel this YansWifiPhy is to be connected to.
Definition:
yans-wifi-phy.cc:82
ns3::YansWifiPhy::GetTxMaskRejectionParams
std::tuple< double, double, double > GetTxMaskRejectionParams() const override
Definition:
yans-wifi-phy.cc:106
ns3::YansWifiPhy::~YansWifiPhy
~YansWifiPhy() override
Definition:
yans-wifi-phy.cc:62
ns3::YansWifiPhy::SetInterferenceHelper
void SetInterferenceHelper(const Ptr< InterferenceHelper > helper) override
Sets the interference helper.
Definition:
yans-wifi-phy.cc:52
ns3::YansWifiPhy::GetChannel
Ptr< Channel > GetChannel() const override
Return the Channel this WifiPhy is connected to.
Definition:
yans-wifi-phy.cc:76
ns3::YansWifiPhy::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
yans-wifi-phy.cc:68
ns3::YansWifiPhy::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
yans-wifi-phy.cc:37
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.channel
channel
Definition:
third.py:81
wifi-phy.h
src
wifi
model
yans-wifi-phy.h
Generated on Fri Mar 31 2023 13:30:54 for ns-3 by
1.9.1