A Discrete-Event Network Simulator
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
12namespace ns3
13{
14
16{
17 public:
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
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
Smart pointer class similar to boost::intrusive_ptr.
spectrum-aware transmit filter object
a unique identifier for an interface.
Definition type-id.h:48
static TypeId GetTypeId()
Get the type ID.
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
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...
Every class exported by the ns3 library is enclosed in the ns3 namespace.