A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
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
=
false
;
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
()
const
127
{
128
return
m_burstSize
;
129
}
130
131
bool
132
SimpleOfdmSendParam::GetIsFirstBlock
()
const
133
{
134
return
m_isFirstBlock
;
135
}
136
137
uint64_t
138
SimpleOfdmSendParam::GetFrequency
()
const
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
()
const
151
{
152
return
m_direction
;
153
}
154
155
double
156
SimpleOfdmSendParam::GetRxPowerDbm
()
const
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:77
ns3::SimpleOfdmSendParam::GetDirection
uint8_t GetDirection() const
Definition:
simple-ofdm-send-param.cc:150
ns3::SimpleOfdmSendParam::SetFrequency
void SetFrequency(uint64_t Frequency)
Definition:
simple-ofdm-send-param.cc:96
ns3::SimpleOfdmSendParam::m_frequency
uint64_t m_frequency
frequency
Definition:
simple-ofdm-send-param.h:148
ns3::SimpleOfdmSendParam::m_isFirstBlock
bool m_isFirstBlock
is first block
Definition:
simple-ofdm-send-param.h:147
ns3::SimpleOfdmSendParam::GetFecBlock
Bvec GetFecBlock()
Definition:
simple-ofdm-send-param.cc:120
ns3::SimpleOfdmSendParam::m_modulationType
WimaxPhy::ModulationType m_modulationType
modulation type
Definition:
simple-ofdm-send-param.h:149
ns3::SimpleOfdmSendParam::GetModulationType
WimaxPhy::ModulationType GetModulationType()
Definition:
simple-ofdm-send-param.cc:144
ns3::SimpleOfdmSendParam::GetFrequency
uint64_t GetFrequency() const
Definition:
simple-ofdm-send-param.cc:138
ns3::SimpleOfdmSendParam::m_burst
Ptr< PacketBurst > m_burst
burst
Definition:
simple-ofdm-send-param.h:152
ns3::SimpleOfdmSendParam::SetBurstSize
void SetBurstSize(uint32_t burstSize)
set the burst size
Definition:
simple-ofdm-send-param.cc:84
ns3::SimpleOfdmSendParam::GetBurstSize
uint32_t GetBurstSize() const
Definition:
simple-ofdm-send-param.cc:126
ns3::SimpleOfdmSendParam::m_rxPowerDbm
double m_rxPowerDbm
receive power dbM
Definition:
simple-ofdm-send-param.h:151
ns3::SimpleOfdmSendParam::SetFecBlock
void SetFecBlock(const Bvec &fecBlock)
sent the fec block to send
Definition:
simple-ofdm-send-param.cc:78
ns3::SimpleOfdmSendParam::m_fecBlock
Bvec m_fecBlock
FEC block.
Definition:
simple-ofdm-send-param.h:145
ns3::SimpleOfdmSendParam::SimpleOfdmSendParam
SimpleOfdmSendParam()
Definition:
simple-ofdm-send-param.cc:28
ns3::SimpleOfdmSendParam::SetDirection
void SetDirection(uint8_t direction)
Definition:
simple-ofdm-send-param.cc:108
ns3::SimpleOfdmSendParam::SetModulationType
void SetModulationType(WimaxPhy::ModulationType modulationType)
Definition:
simple-ofdm-send-param.cc:102
ns3::SimpleOfdmSendParam::SetIsFirstBlock
void SetIsFirstBlock(bool isFirstBlock)
Definition:
simple-ofdm-send-param.cc:90
ns3::SimpleOfdmSendParam::GetBurst
Ptr< PacketBurst > GetBurst()
Definition:
simple-ofdm-send-param.cc:162
ns3::SimpleOfdmSendParam::GetRxPowerDbm
double GetRxPowerDbm() const
Definition:
simple-ofdm-send-param.cc:156
ns3::SimpleOfdmSendParam::GetIsFirstBlock
bool GetIsFirstBlock() const
Definition:
simple-ofdm-send-param.cc:132
ns3::SimpleOfdmSendParam::~SimpleOfdmSendParam
~SimpleOfdmSendParam()
Definition:
simple-ofdm-send-param.cc:73
ns3::SimpleOfdmSendParam::SetRxPowerDbm
void SetRxPowerDbm(double rxPowerDbm)
Definition:
simple-ofdm-send-param.cc:114
ns3::SimpleOfdmSendParam::m_direction
uint8_t m_direction
direction
Definition:
simple-ofdm-send-param.h:150
ns3::SimpleOfdmSendParam::m_burstSize
uint32_t m_burstSize
burst size
Definition:
simple-ofdm-send-param.h:146
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
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 Sun Mar 3 2024 17:11:14 for ns-3 by
1.9.1