A Discrete-Event Network Simulator
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 
24 #include "simple-ofdm-wimax-phy.h"
25 
26 namespace ns3
27 {
29 {
30  // m_fecBlock = 0;
31  m_burstSize = 0;
32  m_isFirstBlock = false;
33  m_frequency = 0;
35  m_direction = 0;
36  m_rxPowerDbm = 0;
37 }
38 
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 
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 
74 {
75 }
76 
77 void
79 {
80  m_fecBlock = fecBlock;
81 }
82 
83 void
85 {
86  m_burstSize = burstSize;
87 }
88 
89 void
91 {
92  m_isFirstBlock = isFirstBlock;
93 }
94 
95 void
97 {
98  m_frequency = Frequency;
99 }
100 
101 void
103 {
104  m_modulationType = modulationType;
105 }
106 
107 void
109 {
110  m_direction = direction;
111 }
112 
113 void
115 {
116  m_rxPowerDbm = rxPowerDbm;
117 }
118 
119 Bvec
121 {
122  return m_fecBlock;
123 }
124 
125 uint32_t
127 {
128  return m_burstSize;
129 }
130 
131 bool
133 {
134  return m_isFirstBlock;
135 }
136 
137 uint64_t
139 {
140  return m_frequency;
141 }
142 
145 {
146  return m_modulationType;
147 }
148 
149 uint8_t
151 {
152  return m_direction;
153 }
154 
155 double
157 {
158  return m_rxPowerDbm;
159 }
160 
163 {
164  return m_burst;
165 }
166 
167 } // namespace ns3
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
void SetFrequency(uint64_t Frequency)
WimaxPhy::ModulationType m_modulationType
modulation type
WimaxPhy::ModulationType GetModulationType()
Ptr< PacketBurst > m_burst
burst
void SetBurstSize(uint32_t burstSize)
set the burst size
double m_rxPowerDbm
receive power dbM
void SetFecBlock(const Bvec &fecBlock)
sent the fec block to send
void SetDirection(uint8_t direction)
void SetModulationType(WimaxPhy::ModulationType modulationType)
void SetIsFirstBlock(bool isFirstBlock)
void SetRxPowerDbm(double rxPowerDbm)
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:54
@ MODULATION_TYPE_QPSK_12
Definition: wimax-phy.h:56
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< bool > Bvec
boolean vector typedef
Definition: bvec.h:29