A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
higher-tx-tag.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2008 INRIA
4
* Copyright (c) 2013 Dalian University of Technology
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation;
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20
* Junling Bu <linlinjavaer@gmail.com>
21
*/
22
#ifndef HIGHER_LAYER_TX_VECTOR_TAG_H
23
#define HIGHER_LAYER_TX_VECTOR_TAG_H
24
25
#include "ns3/tag.h"
26
#include "ns3/wifi-tx-vector.h"
27
28
namespace
ns3
{
29
30
class
Tag;
31
class
TypeId;
32
47
class
HigherLayerTxVectorTag
:
public
Tag
48
{
49
public
:
54
static
TypeId
GetTypeId
(
void
);
55
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
56
57
HigherLayerTxVectorTag
(
void
);
64
HigherLayerTxVectorTag
(
WifiTxVector
txVector,
bool
adaptable);
68
WifiTxVector
GetTxVector
(
void
)
const
;
72
bool
IsAdaptable
(
void
)
const
;
73
74
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
75
virtual
void
Serialize
(
TagBuffer
i)
const
;
76
virtual
void
Deserialize
(
TagBuffer
i);
77
virtual
void
Print
(std::ostream &os)
const
;
78
79
private
:
80
WifiTxVector
m_txVector
;
81
bool
m_adaptable
;
82
};
83
84
}
// namespace ns3
85
86
#endif
/* HIGHER_LAYER_TX_VECTOR_TAG_H*/
ns3::HigherLayerTxVectorTag
This tag will be used to support higher layer control DataRate and TxPwr_Level for transmission.
Definition:
higher-tx-tag.h:48
ns3::HigherLayerTxVectorTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
higher-tx-tag.cc:44
ns3::HigherLayerTxVectorTag::GetTxVector
WifiTxVector GetTxVector(void) const
Definition:
higher-tx-tag.cc:65
ns3::HigherLayerTxVectorTag::IsAdaptable
bool IsAdaptable(void) const
Definition:
higher-tx-tag.cc:72
ns3::HigherLayerTxVectorTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
higher-tx-tag.cc:79
ns3::HigherLayerTxVectorTag::m_adaptable
bool m_adaptable
adaptable
Definition:
higher-tx-tag.h:81
ns3::HigherLayerTxVectorTag::m_txVector
WifiTxVector m_txVector
transmit vector
Definition:
higher-tx-tag.h:80
ns3::HigherLayerTxVectorTag::HigherLayerTxVectorTag
HigherLayerTxVectorTag(void)
Definition:
higher-tx-tag.cc:50
ns3::HigherLayerTxVectorTag::Print
virtual void Print(std::ostream &os) const
Definition:
higher-tx-tag.cc:102
ns3::HigherLayerTxVectorTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
higher-tx-tag.cc:86
ns3::HigherLayerTxVectorTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
higher-tx-tag.cc:33
ns3::HigherLayerTxVectorTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
higher-tx-tag.cc:94
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:52
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:37
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
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:86
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wave
model
higher-tx-tag.h
Generated on Tue Feb 6 2024 19:21:28 for ns-3 by
1.9.1