A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
spectrum-wifi-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 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
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
18
*/
19
20
#ifndef SPECTRUM_WIFI_HELPER_H
21
#define SPECTRUM_WIFI_HELPER_H
22
23
#include "
wifi-helper.h
"
24
25
namespace
ns3
26
{
27
28
class
SpectrumChannel;
29
37
class
SpectrumWifiPhyHelper
:
public
WifiPhyHelper
38
{
39
public
:
45
SpectrumWifiPhyHelper
(uint8_t nLinks = 1);
46
52
void
SetChannel
(
Ptr<SpectrumChannel>
channel
);
58
void
SetChannel
(std::string channelName);
66
void
SetChannel
(uint8_t linkId,
Ptr<SpectrumChannel>
channel
);
74
void
SetChannel
(uint8_t linkId, std::string channelName);
75
76
private
:
84
std::vector<Ptr<WifiPhy>>
Create
(
Ptr<Node>
node,
Ptr<WifiNetDevice>
device)
const override
;
85
86
std::vector<Ptr<SpectrumChannel>>
m_channels
;
87
};
88
89
}
// namespace ns3
90
91
#endif
/* SPECTRUM_WIFI_HELPER_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::SpectrumWifiPhyHelper
Make it easy to create and manage PHY objects for the spectrum model.
Definition:
spectrum-wifi-helper.h:38
ns3::SpectrumWifiPhyHelper::m_channels
std::vector< Ptr< SpectrumChannel > > m_channels
the channels
Definition:
spectrum-wifi-helper.h:86
ns3::SpectrumWifiPhyHelper::Create
std::vector< Ptr< WifiPhy > > Create(Ptr< Node > node, Ptr< WifiNetDevice > device) const override
Definition:
spectrum-wifi-helper.cc:84
ns3::SpectrumWifiPhyHelper::SpectrumWifiPhyHelper
SpectrumWifiPhyHelper(uint8_t nLinks=1)
Create a PHY helper.
Definition:
spectrum-wifi-helper.cc:38
ns3::SpectrumWifiPhyHelper::SetChannel
void SetChannel(Ptr< SpectrumChannel > channel)
Definition:
spectrum-wifi-helper.cc:52
ns3::WifiPhyHelper
create PHY objects
Definition:
wifi-helper.h:50
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.channel
channel
Definition:
third.py:81
wifi-helper.h
src
wifi
helper
spectrum-wifi-helper.h
Generated on Fri Mar 31 2023 13:30:52 for ns-3 by
1.9.1