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
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
};
58
SimpleOfdmWimaxChannel
(
PropModel
propModel);
59
73
void
Send
(
Time
BlockTime,
74
uint32_t burstSize,
Ptr<WimaxPhy>
phy,
bool
isFirstBlock,
75
bool
isLastBlock,
76
uint64_t frequency,
WimaxPhy::ModulationType
modulationType,
77
uint8_t direction,
double
txPowerDbm,
Ptr<PacketBurst>
burst);
82
void
SetPropagationModel
(
PropModel
propModel);
83
92
int64_t
AssignStreams
(int64_t stream);
93
94
private
:
95
void
DoAttach
(
Ptr<WimaxPhy>
phy);
96
std::list<Ptr<SimpleOfdmWimaxPhy> >
m_phyList
;
97
uint32_t
DoGetNDevices
(
void
)
const
;
98
void
EndSendDummyBlock
(
Ptr<SimpleOfdmWimaxPhy>
rxphy,
simpleOfdmSendParam
* param);
99
Ptr<NetDevice>
DoGetDevice
(uint32_t i)
const
;
100
Ptr<PropagationLossModel>
m_loss
;
101
};
102
103
}
// namespace ns3
104
105
#endif
/* SIMPLE_OFDM_WIMAX_CHANNEL_H */
src
wimax
model
simple-ofdm-wimax-channel.h
Generated on Tue Oct 9 2012 16:45:50 for ns-3 by
1.8.1.2