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
wifi-phy-tag.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 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
*/
20
#ifndef WIFI_PHY_TAG_H
21
#define WIFI_PHY_TAG_H
22
23
#include <ns3/tag.h>
24
#include <ns3/wifi-tx-vector.h>
25
#include <ns3/wifi-preamble.h>
26
#include <ns3/wifi-phy.h>
27
28
namespace
ns3
{
29
36
class
WifiPhyTag
:
public
Tag
37
{
38
public
:
39
static
TypeId
GetTypeId
(
void
);
40
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
41
45
WifiPhyTag
();
52
WifiPhyTag
(
WifiTxVector
txVector,
WifiPreamble
preamble,
enum
mpduType
mpdutype);
57
WifiTxVector
GetWifiTxVector
(
void
)
const
;
62
WifiPreamble
GetWifiPreamble
(
void
)
const
;
67
enum
mpduType
GetMpduType
(
void
)
const
;
68
69
// From class Tag
70
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
71
virtual
void
Serialize
(
TagBuffer
i)
const
;
72
virtual
void
Deserialize
(
TagBuffer
i);
73
virtual
void
Print
(std::ostream &os)
const
;
74
75
private
:
76
WifiTxVector
m_wifiTxVector
;
77
int32_t
m_wifiPreamble
;
78
enum
mpduType
m_mpduType
;
79
};
80
81
}
// namespace ns3
82
83
#endif
/* WIFI_PHY_TAG_H */
ns3::WifiPhyTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
wifi-phy-tag.cc:34
ns3::WifiPhyTag::m_wifiPreamble
int32_t m_wifiPreamble
Definition:
wifi-phy-tag.h:77
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::WifiPhyTag::m_wifiTxVector
WifiTxVector m_wifiTxVector
Definition:
wifi-phy-tag.h:76
ns3::WifiPreamble
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
Definition:
wifi-preamble.h:30
ns3::WifiPhyTag::WifiPhyTag
WifiPhyTag()
Constructor.
Definition:
wifi-phy-tag.cc:78
ns3::WifiPhyTag::GetTypeId
static TypeId GetTypeId(void)
Definition:
wifi-phy-tag.cc:25
ns3::WifiPhyTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
wifi-phy-tag.cc:60
ns3::WifiPhyTag::Print
virtual void Print(std::ostream &os) const
Definition:
wifi-phy-tag.cc:73
ns3::WifiPhyTag::m_mpduType
enum mpduType m_mpduType
Definition:
wifi-phy-tag.h:78
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::WifiPhyTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
wifi-phy-tag.cc:40
ns3::WifiPhyTag::GetWifiPreamble
WifiPreamble GetWifiPreamble(void) const
Getter for WifiPreamble parameter.
Definition:
wifi-phy-tag.cc:96
ns3::WifiPhyTag::GetWifiTxVector
WifiTxVector GetWifiTxVector(void) const
Getter for WifiTxVector parameter.
Definition:
wifi-phy-tag.cc:90
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:51
ns3::WifiPhyTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
wifi-phy-tag.cc:46
ns3::WifiPhyTag::GetMpduType
enum mpduType GetMpduType(void) const
Getter for mpduType parameter.
Definition:
wifi-phy-tag.cc:102
ns3::WifiPhyTag
Tag for WifiTxVector and WifiPreamble information to be embedded in outgoing transmissions as a Packe...
Definition:
wifi-phy-tag.h:36
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::mpduType
mpduType
This enumeration defines the type of an MPDU.
Definition:
wifi-phy.h:56
src
wifi
model
wifi-phy-tag.h
Generated on Mon Oct 3 2016 23:04:49 for ns-3 by
1.8.9.1