A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
wave-mac-low.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 WAVE_MAC_LOW_H
23 #define WAVE_MAC_LOW_H
24 
25 #include "ns3/mac-low.h"
26 
27 namespace ns3 {
39 class WaveMacLow : public MacLow
40 {
41 public:
42  static TypeId GetTypeId (void);
43  WaveMacLow (void);
44  virtual ~WaveMacLow (void);
45 private:
46  virtual WifiTxVector GetDataTxVector (Ptr<const Packet> packet, const WifiMacHeader *hdr) const;
47 };
48 
49 } // namespace ns3
50 
51 #endif /* WAVE_MAC_LOW_H*/
This class allows higher layer control data rate and tx power level.
Definition: wave-mac-low.h:39
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
static TypeId GetTypeId(void)
Definition: wave-mac-low.cc:33
virtual WifiTxVector GetDataTxVector(Ptr< const Packet > packet, const WifiMacHeader *hdr) const
Return a TXVECTOR for the DATA frame given the destination.
Definition: wave-mac-low.cc:51
virtual ~WaveMacLow(void)
Definition: wave-mac-low.cc:45
handle RTS/CTS/DATA/ACK transactions.
Definition: mac-low.h:411
a unique identifier for an interface.
Definition: type-id.h:49
Implements the IEEE 802.11 MAC header.