A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
wifi-bandwidth-filter.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 University of Washington
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
18
#ifndef WIFI_BANDWIDTH_FILTER_H
19
#define WIFI_BANDWIDTH_FILTER_H
20
21
#include <ns3/spectrum-transmit-filter.h>
22
23
namespace
ns3
24
{
25
26
class
WifiBandwidthFilter
:
public
SpectrumTransmitFilter
27
{
28
public
:
29
WifiBandwidthFilter
();
30
31
/**
32
* \brief Get the type ID.
33
* \return the object TypeId
34
*/
35
static
TypeId
GetTypeId
();
36
37
/**
38
* \brief Ignore the signal being received if it is a Wi-Fi PPDU whose TX band
39
* (including guard bands) does not overlap the current operating channel.
40
*
41
* \param params the parameters of the signals being received
42
* \param receiverPhy the SpectrumPhy of the receiver
43
* \return whether the signal being received should be ignored
44
*/
45
46
bool
DoFilter
(
Ptr<const SpectrumSignalParameters>
params,
47
Ptr<const SpectrumPhy>
receiverPhy)
override
;
48
49
protected
:
50
int64_t
DoAssignStreams
(int64_t stream)
override
;
51
};
52
53
}
// namespace ns3
54
55
#endif
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::SpectrumTransmitFilter
spectrum-aware transmit filter object
Definition:
spectrum-transmit-filter.h:40
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::WifiBandwidthFilter
Introspection did not find any typical Config paths.
Definition:
wifi-bandwidth-filter.h:27
ns3::WifiBandwidthFilter::WifiBandwidthFilter
WifiBandwidthFilter()
Definition:
wifi-bandwidth-filter.cc:36
ns3::WifiBandwidthFilter::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
wifi-bandwidth-filter.cc:42
ns3::WifiBandwidthFilter::DoAssignStreams
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
Definition:
wifi-bandwidth-filter.cc:141
ns3::WifiBandwidthFilter::DoFilter
bool DoFilter(Ptr< const SpectrumSignalParameters > params, Ptr< const SpectrumPhy > receiverPhy) override
Ignore the signal being received if it is a Wi-Fi PPDU whose TX band (including guard bands) does not...
Definition:
wifi-bandwidth-filter.cc:52
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
wifi-bandwidth-filter.h
Generated on Fri May 24 2024 02:47:19 for ns-3 by
1.9.6