A Discrete-Event Network Simulator
API
eht-ppdu.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 DERONNE SOFTWARE ENGINEERING
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: Sébastien Deronne <sebastien.deronne@gmail.com>
18 */
19
20#ifndef EHT_PPDU_H
21#define EHT_PPDU_H
22
23#include "ns3/he-ppdu.h"
24
31namespace ns3
32{
33
40class EhtPpdu : public HePpdu
41{
42 public:
57 EhtPpdu(const WifiConstPsduMap& psdus,
58 const WifiTxVector& txVector,
59 uint16_t txCenterFreq,
60 Time ppduDuration,
61 WifiPhyBand band,
62 uint64_t uid,
63 TxPsdFlag flag,
64 uint8_t p20Index);
68 ~EhtPpdu() override;
69
70 WifiPpduType GetType() const override;
71 Ptr<WifiPpdu> Copy() const override;
72
73 protected:
74 bool IsDlMu() const override;
75 bool IsUlMu() const override;
76 WifiTxVector DoGetTxVector() const override;
77}; // class EhtPpdu
78
79} // namespace ns3
80
81#endif /* EHT_PPDU_H */
EHT PPDU (11be)
Definition: eht-ppdu.h:41
EhtPpdu(const WifiConstPsduMap &psdus, const WifiTxVector &txVector, uint16_t txCenterFreq, Time ppduDuration, WifiPhyBand band, uint64_t uid, TxPsdFlag flag, uint8_t p20Index)
Create an EHT PPDU, storing a map of PSDUs.
Definition: eht-ppdu.cc:32
bool IsDlMu() const override
Return true if the PPDU is a DL MU PPDU.
Definition: eht-ppdu.cc:71
WifiTxVector DoGetTxVector() const override
Get the TXVECTOR used to send the PPDU.
Definition: eht-ppdu.cc:83
bool IsUlMu() const override
Return true if the PPDU is an UL MU PPDU.
Definition: eht-ppdu.cc:77
Ptr< WifiPpdu > Copy() const override
Copy this instance.
Definition: eht-ppdu.cc:103
WifiPpduType GetType() const override
Return the PPDU type (.
Definition: eht-ppdu.cc:52
~EhtPpdu() override
Destructor for EhtPpdu.
Definition: eht-ppdu.cc:46
HE PPDU (11ax)
Definition: he-ppdu.h:45
TxPsdFlag
The transmit power spectral density flag, namely used to correctly build PSDs for pre-HE and HE porti...
Definition: he-ppdu.h:157
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiPhyBand
Identifies the PHY band.
Definition: wifi-phy-band.h:33
WifiPpduType
The type of PPDU (SU, DL MU, or UL MU)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.