A Discrete-Event Network Simulator
API
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  *
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  * Junling Bu <linlinjavaer@gmail.com>
20  */
21 #ifndef WAVE_MAC_LOW_H
22 #define WAVE_MAC_LOW_H
23 
24 #include "ns3/mac-low.h"
25 #include "wave-net-device.h"
26 
27 namespace ns3 {
28 class WaveNetDevice;
29 
45 class WaveMacLow : public MacLow
46 {
47 public:
52  static TypeId GetTypeId (void);
53  WaveMacLow ();
54  virtual ~WaveMacLow ();
55 
60 
70  virtual void StartTransmission (Ptr<const Packet> packet,
71  const WifiMacHeader* hdr,
73  Ptr<Txop> txop);
74 private:
84  virtual WifiTxVector GetDataTxVector (Ptr<const Packet> packet, const WifiMacHeader *hdr) const;
85 
88 };
89 
90 } // namespace ns3
91 
92 #endif /* WAVE_MAC_LOW_H*/
virtual void StartTransmission(Ptr< const Packet > packet, const WifiMacHeader *hdr, MacLowTransmissionParameters parameters, Ptr< Txop > txop)
This class is the subclass of MacLow to provide support for MAC extension (1) allows higher layer con...
Definition: wave-mac-low.h:45
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
static TypeId GetTypeId(void)
Get the type ID.
Definition: wave-mac-low.cc:36
Ptr< ChannelScheduler > m_scheduler
the channel scheduler
Definition: wave-mac-low.h:86
control how a packet is transmitted.
virtual ~WaveMacLow()
Definition: wave-mac-low.cc:49
Every class exported by the ns3 library is enclosed in the ns3 namespace.
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:63
handle RTS/CTS/DATA/ACK transactions.
Definition: mac-low.h:58
Ptr< ChannelCoordinator > m_coordinator
the channel coordinator
Definition: wave-mac-low.h:87
a unique identifier for an interface.
Definition: type-id.h:58
Implements the IEEE 802.11 MAC header.
void SetWaveNetDevice(Ptr< WaveNetDevice > device)
Definition: wave-mac-low.cc:55