A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ideal-wifi-manager.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2006 INRIA
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
#ifndef IDEAL_WIFI_MANAGER_H
21
#define IDEAL_WIFI_MANAGER_H
22
23
#include <stdint.h>
24
#include <vector>
25
#include "
wifi-mode.h
"
26
#include "
wifi-remote-station-manager.h
"
27
28
namespace
ns3 {
29
45
class
IdealWifiManager
:
public
WifiRemoteStationManager
46
{
47
public
:
48
static
TypeId
GetTypeId
(
void
);
49
IdealWifiManager
();
50
virtual
~IdealWifiManager
();
51
52
virtual
void
SetupPhy
(
Ptr<WifiPhy>
phy);
53
54
private
:
55
// overriden from base class
56
virtual
WifiRemoteStation
*
DoCreateStation
(
void
)
const
;
57
virtual
void
DoReportRxOk
(
WifiRemoteStation
*station,
58
double
rxSnr,
WifiMode
txMode);
59
virtual
void
DoReportRtsFailed
(
WifiRemoteStation
*station);
60
virtual
void
DoReportDataFailed
(
WifiRemoteStation
*station);
61
virtual
void
DoReportRtsOk
(
WifiRemoteStation
*station,
62
double
ctsSnr,
WifiMode
ctsMode,
double
rtsSnr);
63
virtual
void
DoReportDataOk
(
WifiRemoteStation
*station,
64
double
ackSnr,
WifiMode
ackMode,
double
dataSnr);
65
virtual
void
DoReportFinalRtsFailed
(
WifiRemoteStation
*station);
66
virtual
void
DoReportFinalDataFailed
(
WifiRemoteStation
*station);
67
virtual
WifiTxVector
DoGetDataTxVector
(
WifiRemoteStation
*station, uint32_t size);
68
virtual
WifiTxVector
DoGetRtsTxVector
(
WifiRemoteStation
*station);
69
virtual
bool
IsLowLatency
(
void
)
const
;
70
71
// return the min snr needed to successfully transmit
72
// data with this mode at the specified ber.
73
double
GetSnrThreshold
(
WifiMode
mode)
const
;
74
void
AddModeSnrThreshold
(
WifiMode
mode,
double
ber);
75
76
typedef
std::vector<std::pair<double,WifiMode> >
Thresholds
;
77
78
double
m_ber
;
79
Thresholds
m_thresholds
;
80
};
81
82
}
// namespace ns3
83
84
#endif
/* IDEAL_WIFI_MANAGER_H */
ns3::IdealWifiManager::DoReportFinalDataFailed
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
Definition:
ideal-wifi-manager.cc:133
ns3::IdealWifiManager::IsLowLatency
virtual bool IsLowLatency(void) const
Definition:
ideal-wifi-manager.cc:183
ns3::Ptr< WifiPhy >
ns3::IdealWifiManager::AddModeSnrThreshold
void AddModeSnrThreshold(WifiMode mode, double ber)
Definition:
ideal-wifi-manager.cc:87
ns3::WifiTxVector
Definition:
wifi-tx-vector.h:47
ns3::IdealWifiManager::DoReportFinalRtsFailed
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
Definition:
ideal-wifi-manager.cc:129
ns3::IdealWifiManager::GetSnrThreshold
double GetSnrThreshold(WifiMode mode) const
Definition:
ideal-wifi-manager.cc:73
wifi-remote-station-manager.h
ns3::IdealWifiManager::SetupPhy
virtual void SetupPhy(Ptr< WifiPhy > phy)
Definition:
ideal-wifi-manager.cc:60
wifi-mode.h
ns3::IdealWifiManager::DoReportRtsOk
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
Definition:
ideal-wifi-manager.cc:115
ns3::WifiMode
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
Definition:
wifi-mode.h:91
ns3::IdealWifiManager::DoReportRxOk
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
Definition:
ideal-wifi-manager.cc:102
ns3::IdealWifiManager::GetTypeId
static TypeId GetTypeId(void)
Definition:
ideal-wifi-manager.cc:38
ns3::IdealWifiManager::m_ber
double m_ber
Definition:
ideal-wifi-manager.h:78
ns3::IdealWifiManager::m_thresholds
Thresholds m_thresholds
Definition:
ideal-wifi-manager.h:79
ns3::IdealWifiManager::IdealWifiManager
IdealWifiManager()
Definition:
ideal-wifi-manager.cc:52
ns3::WifiRemoteStationManager
hold a list of per-remote-station state.
Definition:
wifi-remote-station-manager.h:83
ns3::IdealWifiManager::DoReportDataOk
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
Definition:
ideal-wifi-manager.cc:122
ns3::IdealWifiManager::DoCreateStation
virtual WifiRemoteStation * DoCreateStation(void) const
Definition:
ideal-wifi-manager.cc:93
ns3::IdealWifiManager::Thresholds
std::vector< std::pair< double, WifiMode > > Thresholds
Definition:
ideal-wifi-manager.h:76
ns3::IdealWifiManager::DoGetDataTxVector
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
Definition:
ideal-wifi-manager.cc:138
ns3::IdealWifiManager::DoGetRtsTxVector
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
Definition:
ideal-wifi-manager.cc:160
ns3::IdealWifiManager
Ideal rate control algorithmThis class implements an 'ideal' rate control algorithm similar to RBAR i...
Definition:
ideal-wifi-manager.h:45
ns3::IdealWifiManager::~IdealWifiManager
virtual ~IdealWifiManager()
Definition:
ideal-wifi-manager.cc:55
ns3::IdealWifiManager::DoReportDataFailed
virtual void DoReportDataFailed(WifiRemoteStation *station)
Definition:
ideal-wifi-manager.cc:111
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::IdealWifiManager::DoReportRtsFailed
virtual void DoReportRtsFailed(WifiRemoteStation *station)
Definition:
ideal-wifi-manager.cc:107
ns3::WifiRemoteStation
hold per-remote-station state.
Definition:
wifi-remote-station-manager.h:594
src
wifi
model
ideal-wifi-manager.h
Generated on Sun Apr 20 2014 11:15:04 for ns-3 by
1.8.6