A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
simple-ofdm-send-param.cc
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
19
* <amine.ismail@udcast.com>
20
*/
21
22
#include "
simple-ofdm-send-param.h
"
23
#include "
simple-ofdm-wimax-phy.h
"
24
#include "
simple-ofdm-wimax-channel.h
"
25
26
namespace
ns3 {
27
simpleOfdmSendParam::simpleOfdmSendParam
(
void
)
28
{
29
// m_fecBlock = 0;
30
m_burstSize
= 0;
31
m_isFirstBlock
= 0;
32
m_frequency
= 0;
33
m_modulationType
=
WimaxPhy::MODULATION_TYPE_QPSK_12
;
34
m_direction
= 0;
35
m_rxPowerDbm
= 0;
36
37
}
38
simpleOfdmSendParam::simpleOfdmSendParam
(
const
bvec
&fecBlock,
39
uint32_t burstSize,
40
bool
isFirstBlock,
41
uint64_t Frequency,
42
WimaxPhy::ModulationType
modulationType,
43
uint8_t direction,
44
double
rxPowerDbm)
45
{
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
(
void
)
74
{
75
76
}
77
78
void
79
simpleOfdmSendParam::SetFecBlock
(
const
bvec
&fecBlock)
80
{
81
m_fecBlock
= fecBlock;
82
}
83
84
void
85
simpleOfdmSendParam::SetBurstSize
(uint32_t burstSize)
86
{
87
m_burstSize
= burstSize;
88
}
89
void
90
simpleOfdmSendParam::SetIsFirstBlock
(
bool
isFirstBlock)
91
{
92
m_isFirstBlock
= isFirstBlock;
93
}
94
void
95
simpleOfdmSendParam::SetFrequency
(uint64_t Frequency)
96
{
97
m_frequency
= Frequency;
98
}
99
void
100
simpleOfdmSendParam::SetModulationType
(
WimaxPhy::ModulationType
modulationType)
101
{
102
m_modulationType
= modulationType;
103
}
104
void
105
simpleOfdmSendParam::SetDirection
(uint8_t direction)
106
{
107
m_direction
= direction;
108
}
109
void
110
simpleOfdmSendParam::SetRxPowerDbm
(
double
rxPowerDbm)
111
{
112
m_rxPowerDbm
= rxPowerDbm;
113
}
114
115
bvec
116
simpleOfdmSendParam::GetFecBlock
(
void
)
117
{
118
return
m_fecBlock
;
119
}
120
uint32_t
121
simpleOfdmSendParam::GetBurstSize
(
void
)
122
{
123
return
m_burstSize
;
124
}
125
bool
126
simpleOfdmSendParam::GetIsFirstBlock
(
void
)
127
{
128
return
m_isFirstBlock
;
129
}
130
uint64_t
131
simpleOfdmSendParam::GetFrequency
(
void
)
132
{
133
return
m_frequency
;
134
}
135
WimaxPhy::ModulationType
136
simpleOfdmSendParam::GetModulationType
(
void
)
137
{
138
return
m_modulationType
;
139
}
140
uint8_t
141
simpleOfdmSendParam::GetDirection
(
void
)
142
{
143
return
m_direction
;
144
}
145
double
146
simpleOfdmSendParam::GetRxPowerDbm
(
void
)
147
{
148
return
m_rxPowerDbm
;
149
}
150
Ptr<PacketBurst>
151
simpleOfdmSendParam::GetBurst
(
void
)
152
{
153
return
m_burst
;
154
}
155
156
}
src
wimax
model
simple-ofdm-send-param.cc
Generated on Fri Dec 21 2012 19:00:50 for ns-3 by
1.8.1.2