A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
constant-rate-wifi-manager.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2005,2006 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 CONSTANT_RATE_WIFI_MANAGER_H
21#define CONSTANT_RATE_WIFI_MANAGER_H
22
23#include "ns3/wifi-remote-station-manager.h"
24
25namespace ns3
26{
27
36{
37 public:
42 static TypeId GetTypeId();
44 ~ConstantRateWifiManager() override;
45
46 private:
47 WifiRemoteStation* DoCreateStation() const override;
48 void DoReportRxOk(WifiRemoteStation* station, double rxSnr, WifiMode txMode) override;
49 void DoReportRtsFailed(WifiRemoteStation* station) override;
50 void DoReportDataFailed(WifiRemoteStation* station) override;
51 void DoReportRtsOk(WifiRemoteStation* station,
52 double ctsSnr,
53 WifiMode ctsMode,
54 double rtsSnr) override;
56 double ackSnr,
57 WifiMode ackMode,
58 double dataSnr,
59 uint16_t dataChannelWidth,
60 uint8_t dataNss) override;
61 void DoReportFinalRtsFailed(WifiRemoteStation* station) override;
62 void DoReportFinalDataFailed(WifiRemoteStation* station) override;
63 WifiTxVector DoGetDataTxVector(WifiRemoteStation* station, uint16_t allowedWidth) override;
65
68};
69
70} // namespace ns3
71
72#endif /* CONSTANT_RATE_WIFI_MANAGER_H */
use constant rates for data and RTS transmissions
void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode) override
This method is a pure virtual method that must be implemented by the sub-class.
WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station) override
WifiMode m_ctlMode
Wifi mode for RTS frames.
WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint16_t allowedWidth) override
void DoReportRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
void DoReportFinalRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
WifiRemoteStation * DoCreateStation() const override
void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr, uint16_t dataChannelWidth, uint8_t dataNss) override
This method is a pure virtual method that must be implemented by the sub-class.
void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr) override
This method is a pure virtual method that must be implemented by the sub-class.
void DoReportDataFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
WifiMode m_dataMode
Wifi mode for unicast Data frames.
void DoReportFinalDataFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
static TypeId GetTypeId()
Get the type ID.
a unique identifier for an interface.
Definition: type-id.h:59
represent a single transmission mode
Definition: wifi-mode.h:51
hold a list of per-remote-station state.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
hold per-remote-station state.