A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
obss-pd-algorithm.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2018 University of Washington
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: Sébastien Deronne <sebastien.deronne@gmail.com>
19
*/
20
21
#ifndef OBSS_PD_ALGORITHM_H
22
#define OBSS_PD_ALGORITHM_H
23
24
#include "ns3/object.h"
25
#include "ns3/traced-callback.h"
26
#include "
he-configuration.h
"
27
28
namespace
ns3
{
29
30
struct
HePreambleParameters;
31
32
class
WifiNetDevice;
33
45
class
ObssPdAlgorithm
:
public
Object
46
{
47
public
:
48
static
TypeId
GetTypeId
(
void
);
49
55
virtual
void
ConnectWifiNetDevice
(
const
Ptr<WifiNetDevice>
device);
56
61
void
ResetPhy
(
HePreambleParameters
params);
62
68
virtual
void
ReceiveHeSig
(
HePreambleParameters
params) = 0;
69
79
typedef
void (*
ResetTracedCallback
)(uint8_t bssColor,
double
rssiDbm,
bool
powerRestricted,
double
txPowerMaxDbmSiso,
double
txPowerMaxDbmMimo);
80
81
protected
:
82
virtual
void
DoDispose
(
void
);
83
84
Ptr<WifiNetDevice>
m_device
;
85
double
m_obssPdLevel
;
86
87
88
private
:
89
double
m_obssPdLevelMin
;
90
double
m_obssPdLevelMax
;
91
double
m_txPowerRefSiso
;
92
double
m_txPowerRefMimo
;
93
94
TracedCallback<uint8_t, double, bool, double, double>
m_resetEvent
;
95
};
96
97
}
//namespace ns3
98
99
#endif
/* OBSS_PD_ALGORITHM_H */
ns3::ObssPdAlgorithm::m_txPowerRefSiso
double m_txPowerRefSiso
SISO reference TX power level.
Definition:
obss-pd-algorithm.h:91
ns3::Ptr< WifiNetDevice >
ns3::TracedCallback< uint8_t, double, bool, double, double >
ns3::ObssPdAlgorithm::m_txPowerRefMimo
double m_txPowerRefMimo
MIMO reference TX power level.
Definition:
obss-pd-algorithm.h:92
ns3::ObssPdAlgorithm
OBSS PD algorithm interfaceThis object provides the interface for all OBSS_PD algorithms and is desig...
Definition:
obss-pd-algorithm.h:45
ns3::ObssPdAlgorithm::GetTypeId
static TypeId GetTypeId(void)
Definition:
obss-pd-algorithm.cc:35
ns3::ObssPdAlgorithm::m_obssPdLevelMin
double m_obssPdLevelMin
Minimum OBSS PD level.
Definition:
obss-pd-algorithm.h:89
ns3::ObssPdAlgorithm::m_obssPdLevelMax
double m_obssPdLevelMax
Maximum OBSS PD level.
Definition:
obss-pd-algorithm.h:90
he-configuration.h
ns3::ObssPdAlgorithm::ResetTracedCallback
void(* ResetTracedCallback)(uint8_t bssColor, double rssiDbm, bool powerRestricted, double txPowerMaxDbmSiso, double txPowerMaxDbmMimo)
TracedCallback signature for OBSS_PD reset events.
Definition:
obss-pd-algorithm.h:79
ns3::ObssPdAlgorithm::m_obssPdLevel
double m_obssPdLevel
Current OBSS PD level.
Definition:
obss-pd-algorithm.h:85
ns3::ObssPdAlgorithm::ConnectWifiNetDevice
virtual void ConnectWifiNetDevice(const Ptr< WifiNetDevice > device)
Connect the WifiNetDevice and setup eventual callbacks.
Definition:
obss-pd-algorithm.cc:80
ns3::ObssPdAlgorithm::m_device
Ptr< WifiNetDevice > m_device
Pointer to the WifiNetDevice.
Definition:
obss-pd-algorithm.h:84
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ObssPdAlgorithm::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
obss-pd-algorithm.cc:73
ns3::ObssPdAlgorithm::ResetPhy
void ResetPhy(HePreambleParameters params)
Reset PHY to IDLE.
Definition:
obss-pd-algorithm.cc:87
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:87
ns3::ObssPdAlgorithm::ReceiveHeSig
virtual void ReceiveHeSig(HePreambleParameters params)=0
ns3::ObssPdAlgorithm::m_resetEvent
TracedCallback< uint8_t, double, bool, double, double > m_resetEvent
Definition:
obss-pd-algorithm.h:94
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::HePreambleParameters
Definition:
wifi-phy.h:78
src
wifi
model
obss-pd-algorithm.h
Generated on Wed Aug 21 2019 03:38:31 for ns-3 by
1.8.14