A Discrete-Event Network Simulator
API
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"
25 
26 namespace ns3 {
28 {
29  // m_fecBlock = 0;
30  m_burstSize = 0;
31  m_isFirstBlock = 0;
32  m_frequency = 0;
34  m_direction = 0;
35  m_rxPowerDbm = 0;
36 
37 }
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 
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 
78 void
80 {
81  m_fecBlock = fecBlock;
82 }
83 
84 void
86 {
87  m_burstSize = burstSize;
88 }
89 void
91 {
92  m_isFirstBlock = isFirstBlock;
93 }
94 void
96 {
97  m_frequency = Frequency;
98 }
99 void
101 {
102  m_modulationType = modulationType;
103 }
104 void
106 {
107  m_direction = direction;
108 }
109 void
111 {
112  m_rxPowerDbm = rxPowerDbm;
113 }
114 
115 bvec
117 {
118  return m_fecBlock;
119 }
120 uint32_t
122 {
123  return m_burstSize;
124 }
125 bool
127 {
128  return m_isFirstBlock;
129 }
130 uint64_t
132 {
133  return m_frequency;
134 }
137 {
138  return m_modulationType;
139 }
140 uint8_t
142 {
143  return m_direction;
144 }
145 double
147 {
148  return m_rxPowerDbm;
149 }
152 {
153  return m_burst;
154 }
155 
156 }
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:73
double m_rxPowerDbm
receive power dbM
void SetFrequency(uint64_t Frequency)
bool m_isFirstBlock
is first block
void SetDirection(uint8_t direction)
Ptr< PacketBurst > m_burst
burst
WimaxPhy::ModulationType GetModulationType(void)
void SetRxPowerDbm(double rxPowerDbm)
void SetIsFirstBlock(bool isFirstBlock)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetBurstSize(uint32_t burstSize)
set the burst size
void SetFecBlock(const bvec &fecBlock)
sent the fec block to send
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:49
std::vector< bool > bvec
boolean vector typedef
Definition: bvec.h:29
WimaxPhy::ModulationType m_modulationType
modulation type
Ptr< PacketBurst > GetBurst(void)
void SetModulationType(WimaxPhy::ModulationType modulationType)