A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
simple-ofdm-send-param.cc
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
#include "
simple-ofdm-send-param.h
"
22
23
#include "
simple-ofdm-wimax-channel.h
"
24
#include "
simple-ofdm-wimax-phy.h
"
25
26
namespace
ns3
27
{
28
simpleOfdmSendParam::simpleOfdmSendParam
()
29
{
30
// m_fecBlock = 0;
31
m_burstSize
= 0;
32
m_isFirstBlock
= 0;
33
m_frequency
= 0;
34
m_modulationType
=
WimaxPhy::MODULATION_TYPE_QPSK_12
;
35
m_direction
= 0;
36
m_rxPowerDbm
= 0;
37
}
38
39
simpleOfdmSendParam::simpleOfdmSendParam
(
const
bvec
& fecBlock,
40
uint32_t
burstSize,
41
bool
isFirstBlock,
42
uint64_t Frequency,
43
WimaxPhy::ModulationType
modulationType,
44
uint8_t direction,
45
double
rxPowerDbm)
46
{
47
m_fecBlock
= fecBlock;
48
m_burstSize
= burstSize;
49
m_isFirstBlock
= isFirstBlock;
50
m_frequency
= Frequency;
51
m_modulationType
= modulationType;
52
m_direction
= direction;
53
m_rxPowerDbm
= rxPowerDbm;
54
}
55
56
simpleOfdmSendParam::simpleOfdmSendParam
(
uint32_t
burstSize,
57
bool
isFirstBlock,
58
uint64_t Frequency,
59
WimaxPhy::ModulationType
modulationType,
60
uint8_t direction,
61
double
rxPowerDbm,
62
Ptr<PacketBurst>
burst)
63
{
64
m_burstSize
= burstSize;
65
m_isFirstBlock
= isFirstBlock;
66
m_frequency
= Frequency;
67
m_modulationType
= modulationType;
68
m_direction
= direction;
69
m_rxPowerDbm
= rxPowerDbm;
70
m_burst
= burst;
71
}
72
73
simpleOfdmSendParam::~simpleOfdmSendParam
()
74
{
75
}
76
77
void
78
simpleOfdmSendParam::SetFecBlock
(
const
bvec
& fecBlock)
79
{
80
m_fecBlock
= fecBlock;
81
}
82
83
void
84
simpleOfdmSendParam::SetBurstSize
(
uint32_t
burstSize)
85
{
86
m_burstSize
= burstSize;
87
}
88
89
void
90
simpleOfdmSendParam::SetIsFirstBlock
(
bool
isFirstBlock)
91
{
92
m_isFirstBlock
= isFirstBlock;
93
}
94
95
void
96
simpleOfdmSendParam::SetFrequency
(uint64_t Frequency)
97
{
98
m_frequency
= Frequency;
99
}
100
101
void
102
simpleOfdmSendParam::SetModulationType
(
WimaxPhy::ModulationType
modulationType)
103
{
104
m_modulationType
= modulationType;
105
}
106
107
void
108
simpleOfdmSendParam::SetDirection
(uint8_t direction)
109
{
110
m_direction
= direction;
111
}
112
113
void
114
simpleOfdmSendParam::SetRxPowerDbm
(
double
rxPowerDbm)
115
{
116
m_rxPowerDbm
= rxPowerDbm;
117
}
118
119
bvec
120
simpleOfdmSendParam::GetFecBlock
()
121
{
122
return
m_fecBlock
;
123
}
124
125
uint32_t
126
simpleOfdmSendParam::GetBurstSize
()
127
{
128
return
m_burstSize
;
129
}
130
131
bool
132
simpleOfdmSendParam::GetIsFirstBlock
()
133
{
134
return
m_isFirstBlock
;
135
}
136
137
uint64_t
138
simpleOfdmSendParam::GetFrequency
()
139
{
140
return
m_frequency
;
141
}
142
143
WimaxPhy::ModulationType
144
simpleOfdmSendParam::GetModulationType
()
145
{
146
return
m_modulationType
;
147
}
148
149
uint8_t
150
simpleOfdmSendParam::GetDirection
()
151
{
152
return
m_direction
;
153
}
154
155
double
156
simpleOfdmSendParam::GetRxPowerDbm
()
157
{
158
return
m_rxPowerDbm
;
159
}
160
161
Ptr<PacketBurst>
162
simpleOfdmSendParam::GetBurst
()
163
{
164
return
m_burst
;
165
}
166
167
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition:
wimax-phy.h:54
ns3::WimaxPhy::MODULATION_TYPE_QPSK_12
@ MODULATION_TYPE_QPSK_12
Definition:
wimax-phy.h:56
ns3::simpleOfdmSendParam::m_frequency
uint64_t m_frequency
frequency
Definition:
simple-ofdm-send-param.h:148
ns3::simpleOfdmSendParam::m_burst
Ptr< PacketBurst > m_burst
burst
Definition:
simple-ofdm-send-param.h:152
ns3::simpleOfdmSendParam::m_direction
uint8_t m_direction
direction
Definition:
simple-ofdm-send-param.h:150
ns3::simpleOfdmSendParam::SetModulationType
void SetModulationType(WimaxPhy::ModulationType modulationType)
Definition:
simple-ofdm-send-param.cc:102
ns3::simpleOfdmSendParam::GetBurstSize
uint32_t GetBurstSize()
Definition:
simple-ofdm-send-param.cc:126
ns3::simpleOfdmSendParam::GetRxPowerDbm
double GetRxPowerDbm()
Definition:
simple-ofdm-send-param.cc:156
ns3::simpleOfdmSendParam::SetRxPowerDbm
void SetRxPowerDbm(double rxPowerDbm)
Definition:
simple-ofdm-send-param.cc:114
ns3::simpleOfdmSendParam::~simpleOfdmSendParam
~simpleOfdmSendParam()
Definition:
simple-ofdm-send-param.cc:73
ns3::simpleOfdmSendParam::simpleOfdmSendParam
simpleOfdmSendParam()
Definition:
simple-ofdm-send-param.cc:28
ns3::simpleOfdmSendParam::SetFecBlock
void SetFecBlock(const bvec &fecBlock)
sent the fec block to send
Definition:
simple-ofdm-send-param.cc:78
ns3::simpleOfdmSendParam::m_burstSize
uint32_t m_burstSize
burst size
Definition:
simple-ofdm-send-param.h:146
ns3::simpleOfdmSendParam::GetDirection
uint8_t GetDirection()
Definition:
simple-ofdm-send-param.cc:150
ns3::simpleOfdmSendParam::m_modulationType
WimaxPhy::ModulationType m_modulationType
modulation type
Definition:
simple-ofdm-send-param.h:149
ns3::simpleOfdmSendParam::GetFrequency
uint64_t GetFrequency()
Definition:
simple-ofdm-send-param.cc:138
ns3::simpleOfdmSendParam::m_fecBlock
bvec m_fecBlock
FEC block.
Definition:
simple-ofdm-send-param.h:145
ns3::simpleOfdmSendParam::GetModulationType
WimaxPhy::ModulationType GetModulationType()
Definition:
simple-ofdm-send-param.cc:144
ns3::simpleOfdmSendParam::GetIsFirstBlock
bool GetIsFirstBlock()
Definition:
simple-ofdm-send-param.cc:132
ns3::simpleOfdmSendParam::SetFrequency
void SetFrequency(uint64_t Frequency)
Definition:
simple-ofdm-send-param.cc:96
ns3::simpleOfdmSendParam::m_rxPowerDbm
double m_rxPowerDbm
receive power dbM
Definition:
simple-ofdm-send-param.h:151
ns3::simpleOfdmSendParam::m_isFirstBlock
bool m_isFirstBlock
is first block
Definition:
simple-ofdm-send-param.h:147
ns3::simpleOfdmSendParam::SetDirection
void SetDirection(uint8_t direction)
Definition:
simple-ofdm-send-param.cc:108
ns3::simpleOfdmSendParam::GetBurst
Ptr< PacketBurst > GetBurst()
Definition:
simple-ofdm-send-param.cc:162
ns3::simpleOfdmSendParam::SetIsFirstBlock
void SetIsFirstBlock(bool isFirstBlock)
Definition:
simple-ofdm-send-param.cc:90
ns3::simpleOfdmSendParam::SetBurstSize
void SetBurstSize(uint32_t burstSize)
set the burst size
Definition:
simple-ofdm-send-param.cc:84
ns3::simpleOfdmSendParam::GetFecBlock
bvec GetFecBlock()
Definition:
simple-ofdm-send-param.cc:120
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:29
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 Tue Nov 1 2022 23:00:59 for ns-3 by
1.9.3