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-send-param.cc
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
#include "
simple-ofdm-send-param.h
"
11
12
#include "
simple-ofdm-wimax-channel.h
"
13
#include "
simple-ofdm-wimax-phy.h
"
14
15
namespace
ns3
16
{
17
SimpleOfdmSendParam::SimpleOfdmSendParam
()
18
{
19
// m_fecBlock = 0;
20
m_burstSize
= 0;
21
m_isFirstBlock
=
false
;
22
m_frequency
= 0;
23
m_modulationType
=
WimaxPhy::MODULATION_TYPE_QPSK_12
;
24
m_direction
= 0;
25
m_rxPowerDbm
= 0;
26
}
27
28
SimpleOfdmSendParam::SimpleOfdmSendParam
(
const
Bvec
& fecBlock,
29
uint32_t
burstSize,
30
bool
isFirstBlock,
31
uint64_t Frequency,
32
WimaxPhy::ModulationType
modulationType,
33
uint8_t direction,
34
double
rxPowerDbm)
35
{
36
m_fecBlock
= fecBlock;
37
m_burstSize
= burstSize;
38
m_isFirstBlock
= isFirstBlock;
39
m_frequency
= Frequency;
40
m_modulationType
= modulationType;
41
m_direction
= direction;
42
m_rxPowerDbm
= rxPowerDbm;
43
}
44
45
SimpleOfdmSendParam::SimpleOfdmSendParam
(
uint32_t
burstSize,
46
bool
isFirstBlock,
47
uint64_t Frequency,
48
WimaxPhy::ModulationType
modulationType,
49
uint8_t direction,
50
double
rxPowerDbm,
51
Ptr<PacketBurst>
burst)
52
{
53
m_burstSize
= burstSize;
54
m_isFirstBlock
= isFirstBlock;
55
m_frequency
= Frequency;
56
m_modulationType
= modulationType;
57
m_direction
= direction;
58
m_rxPowerDbm
= rxPowerDbm;
59
m_burst
= burst;
60
}
61
62
SimpleOfdmSendParam::~SimpleOfdmSendParam
()
63
{
64
}
65
66
void
67
SimpleOfdmSendParam::SetFecBlock
(
const
Bvec
& fecBlock)
68
{
69
m_fecBlock
= fecBlock;
70
}
71
72
void
73
SimpleOfdmSendParam::SetBurstSize
(
uint32_t
burstSize)
74
{
75
m_burstSize
= burstSize;
76
}
77
78
void
79
SimpleOfdmSendParam::SetIsFirstBlock
(
bool
isFirstBlock)
80
{
81
m_isFirstBlock
= isFirstBlock;
82
}
83
84
void
85
SimpleOfdmSendParam::SetFrequency
(uint64_t Frequency)
86
{
87
m_frequency
= Frequency;
88
}
89
90
void
91
SimpleOfdmSendParam::SetModulationType
(
WimaxPhy::ModulationType
modulationType)
92
{
93
m_modulationType
= modulationType;
94
}
95
96
void
97
SimpleOfdmSendParam::SetDirection
(uint8_t direction)
98
{
99
m_direction
= direction;
100
}
101
102
void
103
SimpleOfdmSendParam::SetRxPowerDbm
(
double
rxPowerDbm)
104
{
105
m_rxPowerDbm
= rxPowerDbm;
106
}
107
108
Bvec
109
SimpleOfdmSendParam::GetFecBlock
()
110
{
111
return
m_fecBlock
;
112
}
113
114
uint32_t
115
SimpleOfdmSendParam::GetBurstSize
()
const
116
{
117
return
m_burstSize
;
118
}
119
120
bool
121
SimpleOfdmSendParam::GetIsFirstBlock
()
const
122
{
123
return
m_isFirstBlock
;
124
}
125
126
uint64_t
127
SimpleOfdmSendParam::GetFrequency
()
const
128
{
129
return
m_frequency
;
130
}
131
132
WimaxPhy::ModulationType
133
SimpleOfdmSendParam::GetModulationType
()
134
{
135
return
m_modulationType
;
136
}
137
138
uint8_t
139
SimpleOfdmSendParam::GetDirection
()
const
140
{
141
return
m_direction
;
142
}
143
144
double
145
SimpleOfdmSendParam::GetRxPowerDbm
()
const
146
{
147
return
m_rxPowerDbm
;
148
}
149
150
Ptr<PacketBurst>
151
SimpleOfdmSendParam::GetBurst
()
152
{
153
return
m_burst
;
154
}
155
156
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SimpleOfdmSendParam::GetDirection
uint8_t GetDirection() const
Definition
simple-ofdm-send-param.cc:139
ns3::SimpleOfdmSendParam::SetFrequency
void SetFrequency(uint64_t Frequency)
Definition
simple-ofdm-send-param.cc:85
ns3::SimpleOfdmSendParam::m_frequency
uint64_t m_frequency
frequency
Definition
simple-ofdm-send-param.h:137
ns3::SimpleOfdmSendParam::m_isFirstBlock
bool m_isFirstBlock
is first block
Definition
simple-ofdm-send-param.h:136
ns3::SimpleOfdmSendParam::GetFecBlock
Bvec GetFecBlock()
Definition
simple-ofdm-send-param.cc:109
ns3::SimpleOfdmSendParam::m_modulationType
WimaxPhy::ModulationType m_modulationType
modulation type
Definition
simple-ofdm-send-param.h:138
ns3::SimpleOfdmSendParam::GetModulationType
WimaxPhy::ModulationType GetModulationType()
Definition
simple-ofdm-send-param.cc:133
ns3::SimpleOfdmSendParam::GetFrequency
uint64_t GetFrequency() const
Definition
simple-ofdm-send-param.cc:127
ns3::SimpleOfdmSendParam::m_burst
Ptr< PacketBurst > m_burst
burst
Definition
simple-ofdm-send-param.h:141
ns3::SimpleOfdmSendParam::SetBurstSize
void SetBurstSize(uint32_t burstSize)
set the burst size
Definition
simple-ofdm-send-param.cc:73
ns3::SimpleOfdmSendParam::GetBurstSize
uint32_t GetBurstSize() const
Definition
simple-ofdm-send-param.cc:115
ns3::SimpleOfdmSendParam::m_rxPowerDbm
double m_rxPowerDbm
receive power dbM
Definition
simple-ofdm-send-param.h:140
ns3::SimpleOfdmSendParam::SetFecBlock
void SetFecBlock(const Bvec &fecBlock)
sent the fec block to send
Definition
simple-ofdm-send-param.cc:67
ns3::SimpleOfdmSendParam::m_fecBlock
Bvec m_fecBlock
FEC block.
Definition
simple-ofdm-send-param.h:134
ns3::SimpleOfdmSendParam::SimpleOfdmSendParam
SimpleOfdmSendParam()
Definition
simple-ofdm-send-param.cc:17
ns3::SimpleOfdmSendParam::SetDirection
void SetDirection(uint8_t direction)
Definition
simple-ofdm-send-param.cc:97
ns3::SimpleOfdmSendParam::SetModulationType
void SetModulationType(WimaxPhy::ModulationType modulationType)
Definition
simple-ofdm-send-param.cc:91
ns3::SimpleOfdmSendParam::SetIsFirstBlock
void SetIsFirstBlock(bool isFirstBlock)
Definition
simple-ofdm-send-param.cc:79
ns3::SimpleOfdmSendParam::GetBurst
Ptr< PacketBurst > GetBurst()
Definition
simple-ofdm-send-param.cc:151
ns3::SimpleOfdmSendParam::GetRxPowerDbm
double GetRxPowerDbm() const
Definition
simple-ofdm-send-param.cc:145
ns3::SimpleOfdmSendParam::GetIsFirstBlock
bool GetIsFirstBlock() const
Definition
simple-ofdm-send-param.cc:121
ns3::SimpleOfdmSendParam::~SimpleOfdmSendParam
~SimpleOfdmSendParam()
Definition
simple-ofdm-send-param.cc:62
ns3::SimpleOfdmSendParam::SetRxPowerDbm
void SetRxPowerDbm(double rxPowerDbm)
Definition
simple-ofdm-send-param.cc:103
ns3::SimpleOfdmSendParam::m_direction
uint8_t m_direction
direction
Definition
simple-ofdm-send-param.h:139
ns3::SimpleOfdmSendParam::m_burstSize
uint32_t m_burstSize
burst size
Definition
simple-ofdm-send-param.h:135
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition
wimax-phy.h:43
ns3::WimaxPhy::MODULATION_TYPE_QPSK_12
@ MODULATION_TYPE_QPSK_12
Definition
wimax-phy.h:45
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Bvec
std::vector< bool > Bvec
boolean vector typedef
Definition
bvec.h:18
simple-ofdm-send-param.h
simple-ofdm-wimax-channel.h
simple-ofdm-wimax-phy.h
src
wimax
model
simple-ofdm-send-param.cc
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0