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
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
:
48
static
TypeId
GetTypeId
(
void
);
49
WaveMacLow
();
50
virtual
~WaveMacLow
();
51
55
void
SetWaveNetDevice
(
Ptr<WaveNetDevice>
device);
56
66
virtual
void
StartTransmission
(
Ptr<const Packet>
packet,
67
const
WifiMacHeader
* hdr,
68
MacLowTransmissionParameters
parameters,
69
MacLowTransmissionListener
*listener);
70
private
:
80
virtual
WifiTxVector
GetDataTxVector
(
Ptr<const Packet>
packet,
const
WifiMacHeader
*hdr)
const
;
81
82
Ptr<ChannelScheduler>
m_scheduler
;
83
Ptr<ChannelCoordinator>
m_coordinator
;
84
};
85
86
}
// namespace ns3
87
88
#endif
/* WAVE_MAC_LOW_H*/
ns3::Ptr< WaveNetDevice >
ns3::WaveMacLow
This class is the subclass of MacLow to provide support for MAC extension (1) allows higher layer con...
Definition:
wave-mac-low.h:45
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::WaveMacLow::StartTransmission
virtual void StartTransmission(Ptr< const Packet > packet, const WifiMacHeader *hdr, MacLowTransmissionParameters parameters, MacLowTransmissionListener *listener)
Definition:
wave-mac-low.cc:103
ns3::WaveMacLow::GetTypeId
static TypeId GetTypeId(void)
Definition:
wave-mac-low.cc:33
ns3::WaveMacLow::m_scheduler
Ptr< ChannelScheduler > m_scheduler
Definition:
wave-mac-low.h:82
ns3::MacLowTransmissionListener
listen to events coming from ns3::MacLow.
Definition:
mac-low.h:61
ns3::MacLowTransmissionParameters
control how a packet is transmitted.
Definition:
mac-low.h:296
ns3::WaveMacLow::~WaveMacLow
virtual ~WaveMacLow()
Definition:
wave-mac-low.cc:46
ns3::WaveMacLow::GetDataTxVector
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:60
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wave-net-device.h
ns3::MacLow
handle RTS/CTS/DATA/ACK transactions.
Definition:
mac-low.h:486
ns3::WaveMacLow::m_coordinator
Ptr< ChannelCoordinator > m_coordinator
Definition:
wave-mac-low.h:83
ns3::WaveMacLow::WaveMacLow
WaveMacLow()
Definition:
wave-mac-low.cc:42
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:57
ns3::WifiMacHeader
Implements the IEEE 802.11 MAC header.
Definition:
wifi-mac-header.h:80
ns3::WaveMacLow::SetWaveNetDevice
void SetWaveNetDevice(Ptr< WaveNetDevice > device)
Definition:
wave-mac-low.cc:52
src
wave
model
wave-mac-low.h
Generated on Thu Aug 13 2015 14:28:12 for ns-3 by
1.8.9.1