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
* SPDX-License-Identifier: GPL-2.0-only
5
*/
6
7
#ifndef WIFI_BANDWIDTH_FILTER_H
8
#define WIFI_BANDWIDTH_FILTER_H
9
10
#include <ns3/spectrum-transmit-filter.h>
11
12
namespace
ns3
13
{
14
15
class
WifiBandwidthFilter
:
public
SpectrumTransmitFilter
16
{
17
public
:
18
WifiBandwidthFilter
();
19
20
/**
21
* \brief Get the type ID.
22
* \return the object TypeId
23
*/
24
static
TypeId
GetTypeId
();
25
26
/**
27
* \brief Ignore the signal being received if it is a Wi-Fi PPDU whose TX band
28
* (including guard bands) does not overlap the current operating channel.
29
*
30
* \param params the parameters of the signals being received
31
* \param receiverPhy the SpectrumPhy of the receiver
32
* \return whether the signal being received should be ignored
33
*/
34
35
bool
DoFilter
(
Ptr<const SpectrumSignalParameters>
params,
36
Ptr<const SpectrumPhy>
receiverPhy)
override
;
37
38
protected
:
39
int64_t
DoAssignStreams
(int64_t stream)
override
;
40
};
41
42
}
// namespace ns3
43
44
#endif
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SpectrumTransmitFilter
spectrum-aware transmit filter object
Definition
spectrum-transmit-filter.h:29
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::WifiBandwidthFilter
Definition
wifi-bandwidth-filter.h:16
ns3::WifiBandwidthFilter::WifiBandwidthFilter
WifiBandwidthFilter()
Definition
wifi-bandwidth-filter.cc:25
ns3::WifiBandwidthFilter::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
wifi-bandwidth-filter.cc:31
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:137
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:41
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
wifi-bandwidth-filter.h
Generated on Fri Nov 8 2024 13:59:08 for ns-3 by
1.11.0