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
#include "
wifi-tx-vector.h
"
30
31
namespace
ns3 {
32
33
class
NetDevice;
34
class
PropagationLossModel;
35
class
PropagationDelayModel;
36
class
YansWifiPhy;
37
50
class
YansWifiChannel
:
public
WifiChannel
51
{
52
public
:
53
static
TypeId
GetTypeId
(
void
);
54
55
YansWifiChannel
();
56
virtual
~YansWifiChannel
();
57
58
// inherited from Channel.
59
virtual
uint32_t
GetNDevices
(
void
)
const
;
60
virtual
Ptr<NetDevice>
GetDevice
(uint32_t i)
const
;
61
62
void
Add
(
Ptr<YansWifiPhy>
phy);
63
67
void
SetPropagationLossModel
(
Ptr<PropagationLossModel>
loss);
71
void
SetPropagationDelayModel
(
Ptr<PropagationDelayModel>
delay);
72
85
void
Send
(
Ptr<YansWifiPhy>
sender,
Ptr<const Packet>
packet,
double
txPowerDbm,
86
WifiTxVector
txVector,
WifiPreamble
preamble)
const
;
87
96
int64_t
AssignStreams
(int64_t stream);
97
98
private
:
99
YansWifiChannel
&
operator =
(
const
YansWifiChannel
&);
100
YansWifiChannel
(
const
YansWifiChannel
&);
101
102
typedef
std::vector<Ptr<YansWifiPhy> >
PhyList
;
103
void
Receive
(uint32_t i,
Ptr<Packet>
packet,
double
rxPowerDbm,
104
WifiTxVector
txVector,
WifiPreamble
preamble)
const
;
105
106
107
PhyList
m_phyList
;
108
Ptr<PropagationLossModel>
m_loss
;
109
Ptr<PropagationDelayModel>
m_delay
;
110
};
111
112
}
// namespace ns3
113
114
115
#endif
/* YANS_WIFI_CHANNEL_H */
ns3::YansWifiChannel::m_delay
Ptr< PropagationDelayModel > m_delay
Definition:
yans-wifi-channel.h:109
wifi-preamble.h
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::WifiTxVector
Definition:
wifi-tx-vector.h:47
ns3::YansWifiChannel::AssignStreams
int64_t AssignStreams(int64_t stream)
Definition:
yans-wifi-channel.cc:142
wifi-mode.h
ns3::YansWifiChannel::SetPropagationLossModel
void SetPropagationLossModel(Ptr< PropagationLossModel > loss)
Definition:
yans-wifi-channel.cc:67
ns3::YansWifiChannel::SetPropagationDelayModel
void SetPropagationDelayModel(Ptr< PropagationDelayModel > delay)
Definition:
yans-wifi-channel.cc:72
wifi-channel.h
ns3::YansWifiChannel::YansWifiChannel
YansWifiChannel()
Definition:
yans-wifi-channel.cc:57
ns3::WifiPreamble
WifiPreamble
Definition:
wifi-preamble.h:29
ns3::YansWifiChannel::GetDevice
virtual Ptr< NetDevice > GetDevice(uint32_t i) const
Definition:
yans-wifi-channel.cc:130
ns3::YansWifiChannel::~YansWifiChannel
virtual ~YansWifiChannel()
Definition:
yans-wifi-channel.cc:60
ns3::YansWifiChannel::GetNDevices
virtual uint32_t GetNDevices(void) const
Definition:
yans-wifi-channel.cc:125
ns3::YansWifiChannel::m_loss
Ptr< PropagationLossModel > m_loss
Definition:
yans-wifi-channel.h:108
ns3::YansWifiChannel::m_phyList
PhyList m_phyList
Definition:
yans-wifi-channel.h:107
ns3::YansWifiChannel::GetTypeId
static TypeId GetTypeId(void)
Definition:
yans-wifi-channel.cc:40
ns3::YansWifiChannel::PhyList
std::vector< Ptr< YansWifiPhy > > PhyList
Definition:
yans-wifi-channel.h:102
ns3::WifiChannel
Wifi Channel interface specificationThis class works in tandem with the ns3::WifiPhy class...
Definition:
wifi-channel.h:42
ns3::YansWifiChannel::Receive
void Receive(uint32_t i, Ptr< Packet > packet, double rxPowerDbm, WifiTxVector txVector, WifiPreamble preamble) const
Definition:
yans-wifi-channel.cc:118
wifi-tx-vector.h
ns3::YansWifiChannel::Add
void Add(Ptr< YansWifiPhy > phy)
Definition:
yans-wifi-channel.cc:136
ns3::YansWifiChannel
A Yans wifi channelThis wifi channel implements the propagation model described in "Yet Another Netwo...
Definition:
yans-wifi-channel.h:50
ns3::YansWifiChannel::operator=
YansWifiChannel & operator=(const YansWifiChannel &)
ns3::YansWifiChannel::Send
void Send(Ptr< YansWifiPhy > sender, Ptr< const Packet > packet, double txPowerDbm, WifiTxVector txVector, WifiPreamble preamble) const
Definition:
yans-wifi-channel.cc:78
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
src
wifi
model
yans-wifi-channel.h
Generated on Sat Nov 16 2013 12:55:41 for ns-3 by
1.8.5