A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
simple-ofdm-wimax-channel.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7
* <amine.ismail@udcast.com>
8
*/
9
10
#ifndef SIMPLE_OFDM_WIMAX_CHANNEL_H
11
#define SIMPLE_OFDM_WIMAX_CHANNEL_H
12
13
#include "
bvec.h
"
14
#include "
simple-ofdm-send-param.h
"
15
#include "
wimax-channel.h
"
16
#include "
wimax-phy.h
"
17
18
#include "ns3/propagation-loss-model.h"
19
20
#include <list>
21
22
namespace
ns3
23
{
24
25
class
Packet;
26
class
PacketBurst;
27
class
SimpleOfdmWimaxPhy;
28
29
/**
30
* \ingroup wimax
31
* \brief SimpleOfdmWimaxChannel class
32
*/
33
class
SimpleOfdmWimaxChannel
:
public
WimaxChannel
34
{
35
public
:
36
SimpleOfdmWimaxChannel
();
37
~SimpleOfdmWimaxChannel
()
override
;
38
39
/// PropModel enumeration
40
enum
PropModel
41
{
42
RANDOM_PROPAGATION
,
43
FRIIS_PROPAGATION
,
44
LOG_DISTANCE_PROPAGATION
,
45
COST231_PROPAGATION
46
};
47
48
/**
49
* Register this type.
50
* \return The TypeId.
51
*/
52
static
TypeId
GetTypeId
();
53
54
/**
55
* \brief Creates a channel and sets the propagation model
56
* \param propModel the propagation model to use
57
*/
58
SimpleOfdmWimaxChannel
(
PropModel
propModel);
59
60
/**
61
* \brief Sends a dummy fec block to all connected physical devices
62
* \param BlockTime the time needed to send the block
63
* \param burstSize the size of the burst
64
* \param phy the sender device
65
* \param isFirstBlock true if this block is the first one, false otherwise
66
* \param isLastBlock true if this block is the last one, false otherwise
67
* \param frequency the frequency on which the block is sent
68
* \param modulationType the modulation used to send the fec block
69
* \param direction uplink or downlink
70
* \param txPowerDbm the transmission power
71
* \param burst the packet burst to send
72
*/
73
void
Send
(
Time
BlockTime,
74
uint32_t
burstSize,
75
Ptr<WimaxPhy>
phy,
76
bool
isFirstBlock,
77
bool
isLastBlock,
78
uint64_t frequency,
79
WimaxPhy::ModulationType
modulationType,
80
uint8_t direction,
81
double
txPowerDbm,
82
Ptr<PacketBurst>
burst);
83
/**
84
* \brief sets the propagation model
85
* \param propModel the propagation model to used
86
*/
87
void
SetPropagationModel
(
PropModel
propModel);
88
89
/**
90
* Assign a fixed random variable stream number to the random variables
91
* used by this model. Return the number of streams (possibly zero) that
92
* have been assigned.
93
*
94
* \param stream first stream index to use
95
* \return the number of stream indices assigned by this model
96
*/
97
int64_t
AssignStreams
(int64_t stream)
override
;
98
99
private
:
100
/**
101
* Attach function
102
* \param phy the phy layer
103
*/
104
void
DoAttach
(
Ptr<WimaxPhy>
phy)
override
;
105
std::list<Ptr<SimpleOfdmWimaxPhy>>
m_phyList
;
///< phy list
106
/**
107
* Get number of devices function
108
* \returns the number of devices
109
*/
110
std::size_t
DoGetNDevices
()
const override
;
111
/**
112
* End send dummy block function
113
* \param rxphy the Ptr<SimpleOfdmWimaxPhy>
114
* \param param the SimpleOfdmSendParam *
115
*/
116
void
EndSendDummyBlock
(
Ptr<SimpleOfdmWimaxPhy>
rxphy,
SimpleOfdmSendParam
* param);
117
/**
118
* Get device function
119
* \param i the device index
120
* \returns the device
121
*/
122
Ptr<NetDevice>
DoGetDevice
(std::size_t i)
const override
;
123
Ptr<PropagationLossModel>
m_loss
;
///< loss
124
};
125
126
}
// namespace ns3
127
128
#endif
/* SIMPLE_OFDM_WIMAX_CHANNEL_H */
bvec.h
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SimpleOfdmSendParam
SimpleOfdmSendParam class.
Definition
simple-ofdm-send-param.h:29
ns3::SimpleOfdmWimaxChannel
SimpleOfdmWimaxChannel class.
Definition
simple-ofdm-wimax-channel.h:34
ns3::SimpleOfdmWimaxChannel::~SimpleOfdmWimaxChannel
~SimpleOfdmWimaxChannel() override
Definition
simple-ofdm-wimax-channel.cc:38
ns3::SimpleOfdmWimaxChannel::m_loss
Ptr< PropagationLossModel > m_loss
loss
Definition
simple-ofdm-wimax-channel.h:123
ns3::SimpleOfdmWimaxChannel::SetPropagationModel
void SetPropagationModel(PropModel propModel)
sets the propagation model
Definition
simple-ofdm-wimax-channel.cc:79
ns3::SimpleOfdmWimaxChannel::DoAttach
void DoAttach(Ptr< WimaxPhy > phy) override
Attach function.
Definition
simple-ofdm-wimax-channel.cc:104
ns3::SimpleOfdmWimaxChannel::DoGetNDevices
std::size_t DoGetNDevices() const override
Get number of devices function.
Definition
simple-ofdm-wimax-channel.cc:111
ns3::SimpleOfdmWimaxChannel::SimpleOfdmWimaxChannel
SimpleOfdmWimaxChannel()
Definition
simple-ofdm-wimax-channel.cc:33
ns3::SimpleOfdmWimaxChannel::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition
simple-ofdm-wimax-channel.cc:45
ns3::SimpleOfdmWimaxChannel::m_phyList
std::list< Ptr< SimpleOfdmWimaxPhy > > m_phyList
phy list
Definition
simple-ofdm-wimax-channel.h:105
ns3::SimpleOfdmWimaxChannel::EndSendDummyBlock
void EndSendDummyBlock(Ptr< SimpleOfdmWimaxPhy > rxphy, SimpleOfdmSendParam *param)
End send dummy block function.
Definition
simple-ofdm-wimax-channel.cc:192
ns3::SimpleOfdmWimaxChannel::DoGetDevice
Ptr< NetDevice > DoGetDevice(std::size_t i) const override
Get device function.
Definition
simple-ofdm-wimax-channel.cc:117
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:134
ns3::SimpleOfdmWimaxChannel::PropModel
PropModel
PropModel enumeration.
Definition
simple-ofdm-wimax-channel.h:41
ns3::SimpleOfdmWimaxChannel::FRIIS_PROPAGATION
@ FRIIS_PROPAGATION
Definition
simple-ofdm-wimax-channel.h:43
ns3::SimpleOfdmWimaxChannel::COST231_PROPAGATION
@ COST231_PROPAGATION
Definition
simple-ofdm-wimax-channel.h:45
ns3::SimpleOfdmWimaxChannel::RANDOM_PROPAGATION
@ RANDOM_PROPAGATION
Definition
simple-ofdm-wimax-channel.h:42
ns3::SimpleOfdmWimaxChannel::LOG_DISTANCE_PROPAGATION
@ LOG_DISTANCE_PROPAGATION
Definition
simple-ofdm-wimax-channel.h:44
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:205
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::WimaxChannel
The channel object to attach Wimax NetDevices.
Definition
wimax-channel.h:32
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition
wimax-phy.h:43
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
simple-ofdm-send-param.h
wimax-channel.h
wimax-phy.h
src
wimax
model
simple-ofdm-wimax-channel.h
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0