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
simple-ofdm-wimax-channel.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
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: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
19
* <amine.ismail@udcast.com>
20
*/
21
22
#ifndef SIMPLE_OFDM_WIMAX_CHANNEL_H
23
#define SIMPLE_OFDM_WIMAX_CHANNEL_H
24
25
#include <list>
26
#include "
wimax-channel.h
"
27
#include "
bvec.h
"
28
#include "
wimax-phy.h
"
29
#include "ns3/propagation-loss-model.h"
30
#include "
simple-ofdm-send-param.h
"
31
32
namespace
ns3
{
33
34
class
Packet;
35
class
PacketBurst;
36
class
SimpleOfdmWimaxPhy;
37
41
class
SimpleOfdmWimaxChannel
:
public
WimaxChannel
42
{
43
public
:
44
SimpleOfdmWimaxChannel
(
void
);
45
~SimpleOfdmWimaxChannel
(
void
);
46
47
enum
PropModel
48
{
49
RANDOM_PROPAGATION
,
50
FRIIS_PROPAGATION
,
51
LOG_DISTANCE_PROPAGATION
,
52
COST231_PROPAGATION
53
};
54
59
static
TypeId
GetTypeId
(
void
);
60
65
SimpleOfdmWimaxChannel
(
PropModel
propModel);
66
80
void
Send
(
Time
BlockTime,
81
uint32_t burstSize,
Ptr<WimaxPhy>
phy
,
bool
isFirstBlock,
82
bool
isLastBlock,
83
uint64_t frequency,
WimaxPhy::ModulationType
modulationType,
84
uint8_t direction,
double
txPowerDbm,
Ptr<PacketBurst>
burst);
89
void
SetPropagationModel
(
PropModel
propModel);
90
99
int64_t
AssignStreams
(int64_t stream);
100
101
private
:
102
void
DoAttach
(
Ptr<WimaxPhy>
phy
);
103
std::list<Ptr<SimpleOfdmWimaxPhy> >
m_phyList
;
104
uint32_t
DoGetNDevices
(
void
)
const
;
105
void
EndSendDummyBlock
(
Ptr<SimpleOfdmWimaxPhy>
rxphy,
simpleOfdmSendParam
* param);
106
Ptr<NetDevice>
DoGetDevice
(uint32_t i)
const
;
107
Ptr<PropagationLossModel>
m_loss
;
108
};
109
110
}
// namespace ns3
111
112
#endif
/* SIMPLE_OFDM_WIMAX_CHANNEL_H */
ns3::SimpleOfdmWimaxChannel::DoGetDevice
Ptr< NetDevice > DoGetDevice(uint32_t i) const
Definition:
simple-ofdm-wimax-channel.cc:131
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::SimpleOfdmWimaxChannel::PropModel
PropModel
Definition:
simple-ofdm-wimax-channel.h:47
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::SimpleOfdmWimaxChannel::SimpleOfdmWimaxChannel
SimpleOfdmWimaxChannel(void)
Definition:
simple-ofdm-wimax-channel.cc:43
simple-ofdm-send-param.h
ns3::WimaxChannel
Definition:
wimax-channel.h:39
ns3::SimpleOfdmWimaxChannel
Definition:
simple-ofdm-wimax-channel.h:41
ns3::SimpleOfdmWimaxChannel::AssignStreams
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
Definition:
simple-ofdm-wimax-channel.cc:220
ns3::simpleOfdmSendParam
Definition:
simple-ofdm-send-param.h:36
ns3::SimpleOfdmWimaxChannel::~SimpleOfdmWimaxChannel
~SimpleOfdmWimaxChannel(void)
Definition:
simple-ofdm-wimax-channel.cc:48
third.phy
tuple phy
Definition:
third.py:86
ns3::SimpleOfdmWimaxChannel::GetTypeId
static TypeId GetTypeId(void)
Register this type.
Definition:
simple-ofdm-wimax-channel.cc:55
ns3::SimpleOfdmWimaxChannel::Send
void Send(Time BlockTime, uint32_t burstSize, Ptr< WimaxPhy > phy, bool isFirstBlock, bool isLastBlock, uint64_t frequency, WimaxPhy::ModulationType modulationType, uint8_t direction, double txPowerDbm, Ptr< PacketBurst > burst)
Sends a dummy fec block to all connected physical devices.
Definition:
simple-ofdm-wimax-channel.cc:148
wimax-channel.h
ns3::SimpleOfdmWimaxChannel::m_phyList
std::list< Ptr< SimpleOfdmWimaxPhy > > m_phyList
Definition:
simple-ofdm-wimax-channel.h:103
ns3::WimaxPhy::ModulationType
ModulationType
Definition:
wimax-phy.h:48
ns3::SimpleOfdmWimaxChannel::RANDOM_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:49
ns3::SimpleOfdmWimaxChannel::COST231_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:52
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::SimpleOfdmWimaxChannel::LOG_DISTANCE_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:51
ns3::SimpleOfdmWimaxChannel::SetPropagationModel
void SetPropagationModel(PropModel propModel)
sets the propagation model
Definition:
simple-ofdm-wimax-channel.cc:91
wimax-phy.h
ns3::SimpleOfdmWimaxChannel::DoGetNDevices
uint32_t DoGetNDevices(void) const
Definition:
simple-ofdm-wimax-channel.cc:125
ns3::SimpleOfdmWimaxChannel::EndSendDummyBlock
void EndSendDummyBlock(Ptr< SimpleOfdmWimaxPhy > rxphy, simpleOfdmSendParam *param)
Definition:
simple-ofdm-wimax-channel.cc:207
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::SimpleOfdmWimaxChannel::FRIIS_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:50
ns3::SimpleOfdmWimaxChannel::m_loss
Ptr< PropagationLossModel > m_loss
Definition:
simple-ofdm-wimax-channel.h:107
bvec.h
ns3::SimpleOfdmWimaxChannel::DoAttach
void DoAttach(Ptr< WimaxPhy > phy)
Definition:
simple-ofdm-wimax-channel.cc:118
src
wimax
model
simple-ofdm-wimax-channel.h
Generated on Wed Sep 30 2015 15:55:55 for ns-3 by
1.8.9.1