A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
simple-ofdm-wimax-channel.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
18
* <amine.ismail@udcast.com>
19
*/
20
21
#ifndef SIMPLE_OFDM_WIMAX_CHANNEL_H
22
#define SIMPLE_OFDM_WIMAX_CHANNEL_H
23
24
#include "
bvec.h
"
25
#include "
simple-ofdm-send-param.h
"
26
#include "
wimax-channel.h
"
27
#include "
wimax-phy.h
"
28
29
#include "ns3/propagation-loss-model.h"
30
31
#include <list>
32
33
namespace
ns3
34
{
35
36
class
Packet;
37
class
PacketBurst;
38
class
SimpleOfdmWimaxPhy;
39
44
class
SimpleOfdmWimaxChannel
:
public
WimaxChannel
45
{
46
public
:
47
SimpleOfdmWimaxChannel
();
48
~SimpleOfdmWimaxChannel
()
override
;
49
51
enum
PropModel
52
{
53
RANDOM_PROPAGATION
,
54
FRIIS_PROPAGATION
,
55
LOG_DISTANCE_PROPAGATION
,
56
COST231_PROPAGATION
57
};
58
63
static
TypeId
GetTypeId
();
64
69
SimpleOfdmWimaxChannel
(
PropModel
propModel);
70
84
void
Send
(
Time
BlockTime,
85
uint32_t burstSize,
86
Ptr<WimaxPhy>
phy
,
87
bool
isFirstBlock,
88
bool
isLastBlock,
89
uint64_t frequency,
90
WimaxPhy::ModulationType
modulationType,
91
uint8_t direction,
92
double
txPowerDbm,
93
Ptr<PacketBurst>
burst);
98
void
SetPropagationModel
(
PropModel
propModel);
99
108
int64_t
AssignStreams
(int64_t stream)
override
;
109
110
private
:
115
void
DoAttach
(
Ptr<WimaxPhy>
phy
)
override
;
116
std::list<Ptr<SimpleOfdmWimaxPhy>>
m_phyList
;
121
std::size_t
DoGetNDevices
()
const override
;
127
void
EndSendDummyBlock
(
Ptr<SimpleOfdmWimaxPhy>
rxphy,
SimpleOfdmSendParam
* param);
133
Ptr<NetDevice>
DoGetDevice
(std::size_t i)
const override
;
134
Ptr<PropagationLossModel>
m_loss
;
135
};
136
137
}
// namespace ns3
138
139
#endif
/* SIMPLE_OFDM_WIMAX_CHANNEL_H */
bvec.h
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::SimpleOfdmSendParam
SimpleOfdmSendParam class.
Definition:
simple-ofdm-send-param.h:40
ns3::SimpleOfdmWimaxChannel
SimpleOfdmWimaxChannel class.
Definition:
simple-ofdm-wimax-channel.h:45
ns3::SimpleOfdmWimaxChannel::~SimpleOfdmWimaxChannel
~SimpleOfdmWimaxChannel() override
Definition:
simple-ofdm-wimax-channel.cc:49
ns3::SimpleOfdmWimaxChannel::m_loss
Ptr< PropagationLossModel > m_loss
loss
Definition:
simple-ofdm-wimax-channel.h:134
ns3::SimpleOfdmWimaxChannel::SetPropagationModel
void SetPropagationModel(PropModel propModel)
sets the propagation model
Definition:
simple-ofdm-wimax-channel.cc:90
ns3::SimpleOfdmWimaxChannel::DoAttach
void DoAttach(Ptr< WimaxPhy > phy) override
Attach function.
Definition:
simple-ofdm-wimax-channel.cc:115
ns3::SimpleOfdmWimaxChannel::DoGetNDevices
std::size_t DoGetNDevices() const override
Get number of devices function.
Definition:
simple-ofdm-wimax-channel.cc:122
ns3::SimpleOfdmWimaxChannel::SimpleOfdmWimaxChannel
SimpleOfdmWimaxChannel()
Definition:
simple-ofdm-wimax-channel.cc:44
ns3::SimpleOfdmWimaxChannel::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition:
simple-ofdm-wimax-channel.cc:56
ns3::SimpleOfdmWimaxChannel::m_phyList
std::list< Ptr< SimpleOfdmWimaxPhy > > m_phyList
phy list
Definition:
simple-ofdm-wimax-channel.h:116
ns3::SimpleOfdmWimaxChannel::EndSendDummyBlock
void EndSendDummyBlock(Ptr< SimpleOfdmWimaxPhy > rxphy, SimpleOfdmSendParam *param)
End send dummy block function.
Definition:
simple-ofdm-wimax-channel.cc:203
ns3::SimpleOfdmWimaxChannel::DoGetDevice
Ptr< NetDevice > DoGetDevice(std::size_t i) const override
Get device function.
Definition:
simple-ofdm-wimax-channel.cc:128
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:145
ns3::SimpleOfdmWimaxChannel::PropModel
PropModel
PropModel enumeration.
Definition:
simple-ofdm-wimax-channel.h:52
ns3::SimpleOfdmWimaxChannel::FRIIS_PROPAGATION
@ FRIIS_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:54
ns3::SimpleOfdmWimaxChannel::COST231_PROPAGATION
@ COST231_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:56
ns3::SimpleOfdmWimaxChannel::RANDOM_PROPAGATION
@ RANDOM_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:53
ns3::SimpleOfdmWimaxChannel::LOG_DISTANCE_PROPAGATION
@ LOG_DISTANCE_PROPAGATION
Definition:
simple-ofdm-wimax-channel.h:55
ns3::SimpleOfdmWimaxChannel::AssignStreams
int64_t AssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
Definition:
simple-ofdm-wimax-channel.cc:216
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::WimaxChannel
The channel object to attach Wimax NetDevices.
Definition:
wimax-channel.h:43
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition:
wimax-phy.h:54
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.phy
phy
Definition:
third.py:89
simple-ofdm-send-param.h
wimax-channel.h
wimax-phy.h
src
wimax
model
simple-ofdm-wimax-channel.h
Generated on Sun Mar 3 2024 17:11:14 for ns-3 by
1.9.1