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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
yans-wifi-channel.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2006,2007 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
*/
20
#ifndef YANS_WIFI_CHANNEL_H
21
#define YANS_WIFI_CHANNEL_H
22
23
#include <vector>
24
#include <stdint.h>
25
#include "ns3/packet.h"
26
#include "
wifi-channel.h
"
27
#include "
wifi-mode.h
"
28
#include "
wifi-preamble.h
"
29
30
namespace
ns3 {
31
32
class
NetDevice;
33
class
PropagationLossModel;
34
class
PropagationDelayModel;
35
class
YansWifiPhy;
36
49
class
YansWifiChannel
:
public
WifiChannel
50
{
51
public
:
52
static
TypeId
GetTypeId
(
void
);
53
54
YansWifiChannel
();
55
virtual
~YansWifiChannel
();
56
57
// inherited from Channel.
58
virtual
uint32_t
GetNDevices
(
void
)
const
;
59
virtual
Ptr<NetDevice>
GetDevice
(uint32_t i)
const
;
60
61
void
Add
(
Ptr<YansWifiPhy>
phy);
62
66
void
SetPropagationLossModel
(
Ptr<PropagationLossModel>
loss);
70
void
SetPropagationDelayModel
(
Ptr<PropagationDelayModel>
delay);
71
84
void
Send
(
Ptr<YansWifiPhy>
sender,
Ptr<const Packet>
packet,
double
txPowerDbm,
85
WifiMode
wifiMode,
WifiPreamble
preamble)
const
;
86
95
int64_t
AssignStreams
(int64_t stream);
96
97
private
:
98
YansWifiChannel
&
operator =
(
const
YansWifiChannel
&);
99
YansWifiChannel
(
const
YansWifiChannel
&);
100
101
typedef
std::vector<Ptr<YansWifiPhy> >
PhyList
;
102
void
Receive
(uint32_t i,
Ptr<Packet>
packet,
double
rxPowerDbm,
103
WifiMode
txMode,
WifiPreamble
preamble)
const
;
104
105
106
PhyList
m_phyList
;
107
Ptr<PropagationLossModel>
m_loss
;
108
Ptr<PropagationDelayModel>
m_delay
;
109
};
110
111
}
// namespace ns3
112
113
114
#endif
/* YANS_WIFI_CHANNEL_H */
src
wifi
model
yans-wifi-channel.h
Generated on Fri Dec 21 2012 19:00:49 for ns-3 by
1.8.1.2