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
wifi-tx-vector.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 CTTC
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: Nicola Baldo <nbaldo@cttc.es>
19
* : Ghada Badawy <gbadawy@gmail.com>
20
*/
21
22
#ifndef WIFI_TX_VECTOR_H
23
#define WIFI_TX_VECTOR_H
24
25
#include <ns3/wifi-mode.h>
26
#include <ostream>
27
28
namespace
ns3 {
29
30
47
class
WifiTxVector
48
{
49
public
:
50
WifiTxVector
();
51
WifiTxVector
(
WifiMode
m, uint8_t l, uint8_t r,
bool
sg, uint8_t ns, uint8_t ne,
bool
Stbc);
55
WifiMode
GetMode
(
void
)
const
;
59
void
SetMode
(
WifiMode
mode);
63
uint8_t
GetTxPowerLevel
(
void
)
const
;
67
void
SetTxPowerLevel
(uint8_t powerlevel);
71
uint8_t
GetRetries
(
void
)
const
;
75
void
SetRetries
(uint8_t retries);
79
bool
IsShortGuardInterval
(
void
)
const
;
83
void
SetShortGuardInterval
(
bool
guardinterval);
87
uint8_t
GetNss
(
void
)
const
;
91
void
SetNss
(uint8_t nss);
95
uint8_t
GetNess
(
void
)
const
;
99
void
SetNess
(uint8_t ness);
103
bool
IsStbc
(
void
)
const
;
107
void
SetStbc
(
bool
stbcsatuts);
108
109
110
private
:
111
112
WifiMode
m_mode
;
115
uint8_t
m_txPowerLevel
;
118
uint8_t
m_retries
;
120
bool
m_shortGuardInterval
;
//true if short GI is going to be used
121
uint8_t
m_nss
;
//number of streams
122
uint8_t
m_ness
;
//number of stream in beamforming
123
bool
m_stbc
;
//STBC used or not
124
125
};
126
127
std::ostream &
operator <<
(std::ostream & os,
const
WifiTxVector
&v);
128
129
}
// namespace ns3
130
131
#endif // WIFI_TX_VECTOR_H
ns3::WifiTxVector::SetShortGuardInterval
void SetShortGuardInterval(bool guardinterval)
Definition:
wifi-tx-vector.cc:93
ns3::WifiTxVector
Definition:
wifi-tx-vector.h:47
ns3::WifiTxVector::m_shortGuardInterval
bool m_shortGuardInterval
Definition:
wifi-tx-vector.h:120
ns3::WifiTxVector::IsShortGuardInterval
bool IsShortGuardInterval(void) const
Definition:
wifi-tx-vector.cc:57
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::WifiTxVector::GetTxPowerLevel
uint8_t GetTxPowerLevel(void) const
Definition:
wifi-tx-vector.cc:47
ns3::WifiTxVector::WifiTxVector
WifiTxVector()
Definition:
wifi-tx-vector.cc:26
ns3::WifiTxVector::m_nss
uint8_t m_nss
Definition:
wifi-tx-vector.h:121
ns3::WifiTxVector::GetNess
uint8_t GetNess(void) const
Definition:
wifi-tx-vector.cc:67
ns3::WifiTxVector::IsStbc
bool IsStbc(void) const
Definition:
wifi-tx-vector.cc:72
ns3::WifiTxVector::m_retries
uint8_t m_retries
Definition:
wifi-tx-vector.h:118
ns3::WifiTxVector::SetNss
void SetNss(uint8_t nss)
Definition:
wifi-tx-vector.cc:98
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition:
angles.cc:43
ns3::WifiTxVector::SetTxPowerLevel
void SetTxPowerLevel(uint8_t powerlevel)
Definition:
wifi-tx-vector.cc:83
ns3::WifiTxVector::m_stbc
bool m_stbc
Definition:
wifi-tx-vector.h:123
ns3::WifiTxVector::SetMode
void SetMode(WifiMode mode)
Definition:
wifi-tx-vector.cc:78
ns3::WifiTxVector::GetNss
uint8_t GetNss(void) const
Definition:
wifi-tx-vector.cc:62
ns3::WifiTxVector::SetNess
void SetNess(uint8_t ness)
Definition:
wifi-tx-vector.cc:103
ns3::WifiTxVector::SetRetries
void SetRetries(uint8_t retries)
Definition:
wifi-tx-vector.cc:88
ns3::WifiTxVector::SetStbc
void SetStbc(bool stbcsatuts)
Definition:
wifi-tx-vector.cc:108
ns3::WifiTxVector::GetRetries
uint8_t GetRetries(void) const
Definition:
wifi-tx-vector.cc:52
ns3::WifiTxVector::m_ness
uint8_t m_ness
Definition:
wifi-tx-vector.h:122
ns3::WifiTxVector::GetMode
WifiMode GetMode(void) const
Definition:
wifi-tx-vector.cc:42
ns3::WifiTxVector::m_txPowerLevel
uint8_t m_txPowerLevel
Definition:
wifi-tx-vector.h:115
ns3::WifiTxVector::m_mode
WifiMode m_mode
Definition:
wifi-tx-vector.h:112
src
wifi
model
wifi-tx-vector.h
Generated on Sat Nov 16 2013 12:55:41 for ns-3 by
1.8.5