A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_DATA_TXVECTOR_TAG_H
23 #define HIGHER_DATA_TXVECTOR_TAG_H
24 
25 #include "ns3/packet.h"
26 #include "ns3/wifi-tx-vector.h"
27 
28 namespace ns3 {
29 class Tag;
30 
35 class HigherDataTxVectorTag : public Tag
36 {
37 public:
38  HigherDataTxVectorTag (void);
39  HigherDataTxVectorTag (WifiTxVector dataTxVector, bool adapter);
40  virtual ~HigherDataTxVectorTag (void);
41 
42  WifiTxVector GetDataTxVector (void) const;
43  bool IsAdapter (void) const;
44 
45  static TypeId GetTypeId (void);
46  virtual TypeId GetInstanceTypeId (void) const;
47  virtual uint32_t GetSerializedSize (void) const;
48  virtual void Serialize (TagBuffer i) const;
49  virtual void Deserialize (TagBuffer i);
50  virtual void Print (std::ostream &os) const;
51 
52 private:
54  bool m_adapter;
55 };
56 
57 } // namespace ns3
58 
59 #endif /* HIGHER_DATA_TXVECTOR_TAG_H*/
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
virtual uint32_t GetSerializedSize(void) const
This tag will be used to support higher layer control data rate and tx power level.
Definition: higher-tx-tag.h:35
WifiTxVector GetDataTxVector(void) const
tag a set of bytes in a packet
Definition: tag.h:36
virtual void Serialize(TagBuffer i) const
virtual void Deserialize(TagBuffer i)
read and write tag data
Definition: tag-buffer.h:51
virtual ~HigherDataTxVectorTag(void)
virtual TypeId GetInstanceTypeId(void) const
static TypeId GetTypeId(void)
a unique identifier for an interface.
Definition: type-id.h:49
virtual void Print(std::ostream &os) const
bool IsAdapter(void) const