A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
tx-vector-tag.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2005,2006,2007 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
21
#ifndef TX_VECTOR_TAG_H
22
#define TX_VECTOR_TAG_H
23
24
#include "ns3/tag.h"
25
#include "
wifi-tx-vector.h
"
26
27
/***************************************************************
28
* Packet Mode Tagger
29
***************************************************************/
30
31
namespace
ns3
{
32
36
class
HighLatencyDataTxVectorTag
:
public
Tag
37
{
38
public
:
39
HighLatencyDataTxVectorTag
();
45
HighLatencyDataTxVectorTag
(
WifiTxVector
dataTxVector);
49
WifiTxVector
GetDataTxVector
(
void
)
const
;
50
55
static
TypeId
GetTypeId
(
void
);
56
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
57
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
58
virtual
void
Serialize
(
TagBuffer
i)
const
;
59
virtual
void
Deserialize
(
TagBuffer
i);
60
virtual
void
Print
(std::ostream &os)
const
;
61
62
private
:
63
WifiTxVector
m_dataTxVector
;
64
};
65
69
class
HighLatencyRtsTxVectorTag
:
public
Tag
70
{
71
public
:
72
HighLatencyRtsTxVectorTag
();
78
HighLatencyRtsTxVectorTag
(
WifiTxVector
rtsTxVector);
83
WifiTxVector
GetRtsTxVector
(
void
)
const
;
84
89
static
TypeId
GetTypeId
(
void
);
90
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
91
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
92
virtual
void
Serialize
(
TagBuffer
i)
const
;
93
virtual
void
Deserialize
(
TagBuffer
i);
94
virtual
void
Print
(std::ostream &os)
const
;
95
96
private
:
97
WifiTxVector
m_rtsTxVector
;
98
};
99
103
class
HighLatencyCtsToSelfTxVectorTag
:
public
Tag
104
{
105
public
:
106
HighLatencyCtsToSelfTxVectorTag
();
112
HighLatencyCtsToSelfTxVectorTag
(
WifiTxVector
ctsToSelfTxVector);
116
WifiTxVector
GetCtsToSelfTxVector
(
void
)
const
;
117
122
static
TypeId
GetTypeId
(
void
);
123
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
124
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
125
virtual
void
Serialize
(
TagBuffer
i)
const
;
126
virtual
void
Deserialize
(
TagBuffer
i);
127
virtual
void
Print
(std::ostream &os)
const
;
128
129
private
:
130
WifiTxVector
m_ctsToSelfTxVector
;
131
};
132
133
}
//namespace ns3
134
135
#endif
/* TX_VECTOR_TAG_H */
ns3::HighLatencyRtsTxVectorTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
tx-vector-tag.cc:130
ns3::HighLatencyDataTxVectorTag::Print
virtual void Print(std::ostream &os) const
Definition:
tx-vector-tag.cc:80
ns3::HighLatencyDataTxVectorTag
HighLatencyDataTxVectorTag class.
Definition:
tx-vector-tag.h:36
ns3::WifiTxVector
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Definition:
wifi-tx-vector.h:61
ns3::HighLatencyRtsTxVectorTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
tx-vector-tag.cc:124
ns3::HighLatencyRtsTxVectorTag::m_rtsTxVector
WifiTxVector m_rtsTxVector
TXVECTOR for data frames.
Definition:
tx-vector-tag.h:97
ns3::HighLatencyRtsTxVectorTag::HighLatencyRtsTxVectorTag
HighLatencyRtsTxVectorTag()
Definition:
tx-vector-tag.cc:85
ns3::HighLatencyDataTxVectorTag::HighLatencyDataTxVectorTag
HighLatencyDataTxVectorTag()
Definition:
tx-vector-tag.cc:29
ns3::HighLatencyCtsToSelfTxVectorTag::m_ctsToSelfTxVector
WifiTxVector m_ctsToSelfTxVector
TXVECTOR for CTS-to-self frames.
Definition:
tx-vector-tag.h:130
ns3::HighLatencyRtsTxVectorTag::GetRtsTxVector
WifiTxVector GetRtsTxVector(void) const
Definition:
tx-vector-tag.cc:95
ns3::HighLatencyDataTxVectorTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
tx-vector-tag.cc:56
ns3::HighLatencyCtsToSelfTxVectorTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tx-vector-tag.cc:157
ns3::HighLatencyRtsTxVectorTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
tx-vector-tag.cc:112
ns3::HighLatencyDataTxVectorTag::GetDataTxVector
WifiTxVector GetDataTxVector(void) const
Definition:
tx-vector-tag.cc:39
ns3::HighLatencyDataTxVectorTag::m_dataTxVector
WifiTxVector m_dataTxVector
TXVECTOR for data frames.
Definition:
tx-vector-tag.h:63
ns3::HighLatencyCtsToSelfTxVectorTag::HighLatencyCtsToSelfTxVectorTag
HighLatencyCtsToSelfTxVectorTag()
Definition:
tx-vector-tag.cc:141
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:36
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::HighLatencyRtsTxVectorTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
tx-vector-tag.cc:118
ns3::HighLatencyRtsTxVectorTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tx-vector-tag.cc:101
ns3::HighLatencyCtsToSelfTxVectorTag::Print
virtual void Print(std::ostream &os) const
Definition:
tx-vector-tag.cc:192
ns3::HighLatencyCtsToSelfTxVectorTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
tx-vector-tag.cc:180
ns3::HighLatencyCtsToSelfTxVectorTag
HighLatencyCtsToSelfTxVectorTag class.
Definition:
tx-vector-tag.h:103
ns3::HighLatencyDataTxVectorTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tx-vector-tag.cc:45
ns3::HighLatencyCtsToSelfTxVectorTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
tx-vector-tag.cc:186
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:51
ns3::HighLatencyCtsToSelfTxVectorTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
tx-vector-tag.cc:174
wifi-tx-vector.h
ns3::HighLatencyCtsToSelfTxVectorTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
tx-vector-tag.cc:168
ns3::HighLatencyDataTxVectorTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
tx-vector-tag.cc:68
ns3::HighLatencyCtsToSelfTxVectorTag::GetCtsToSelfTxVector
WifiTxVector GetCtsToSelfTxVector(void) const
Definition:
tx-vector-tag.cc:151
ns3::HighLatencyDataTxVectorTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
tx-vector-tag.cc:74
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::HighLatencyRtsTxVectorTag
HighLatencyRtsTxVectorTag class.
Definition:
tx-vector-tag.h:69
ns3::HighLatencyDataTxVectorTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
tx-vector-tag.cc:62
ns3::HighLatencyRtsTxVectorTag::Print
virtual void Print(std::ostream &os) const
Definition:
tx-vector-tag.cc:136
src
wifi
model
tx-vector-tag.h
Generated on Wed Aug 21 2019 03:38:34 for ns-3 by
1.8.14