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 }
ns3::simpleOfdmSendParam::SetRxPowerDbm
void SetRxPowerDbm(double rxPowerDbm)
Definition: simple-ofdm-send-param.cc:110
ns3::simpleOfdmSendParam::SetIsFirstBlock
void SetIsFirstBlock(bool isFirstBlock)
Definition: simple-ofdm-send-param.cc:90
ns3::simpleOfdmSendParam::GetIsFirstBlock
bool GetIsFirstBlock(void)
Definition: simple-ofdm-send-param.cc:126
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WimaxPhy::MODULATION_TYPE_QPSK_12
@ MODULATION_TYPE_QPSK_12
Definition: wimax-phy.h:52
ns3::simpleOfdmSendParam::m_frequency
uint64_t m_frequency
frequency
Definition: simple-ofdm-send-param.h:139
ns3::simpleOfdmSendParam::SetFrequency
void SetFrequency(uint64_t Frequency)
Definition: simple-ofdm-send-param.cc:95
ns3::simpleOfdmSendParam::simpleOfdmSendParam
simpleOfdmSendParam(void)
Definition: simple-ofdm-send-param.cc:27
ns3::simpleOfdmSendParam::m_isFirstBlock
bool m_isFirstBlock
is first block
Definition: simple-ofdm-send-param.h:138
ns3::simpleOfdmSendParam::m_burst
Ptr< PacketBurst > m_burst
burst
Definition: simple-ofdm-send-param.h:143
ns3::simpleOfdmSendParam::~simpleOfdmSendParam
~simpleOfdmSendParam(void)
Definition: simple-ofdm-send-param.cc:73
ns3::simpleOfdmSendParam::m_rxPowerDbm
double m_rxPowerDbm
receive power dbM
Definition: simple-ofdm-send-param.h:142
ns3::simpleOfdmSendParam::m_modulationType
WimaxPhy::ModulationType m_modulationType
modulation type
Definition: simple-ofdm-send-param.h:140
ns3::simpleOfdmSendParam::m_burstSize
uint32_t m_burstSize
burst size
Definition: simple-ofdm-send-param.h:137
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:74
ns3::simpleOfdmSendParam::GetFrequency
uint64_t GetFrequency(void)
Definition: simple-ofdm-send-param.cc:131
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:50
ns3::simpleOfdmSendParam::SetModulationType
void SetModulationType(WimaxPhy::ModulationType modulationType)
Definition: simple-ofdm-send-param.cc:100
ns3::bvec
std::vector< bool > bvec
boolean vector typedef
Definition: bvec.h:29
simple-ofdm-wimax-channel.h
simple-ofdm-send-param.h
ns3::simpleOfdmSendParam::GetDirection
uint8_t GetDirection(void)
Definition: simple-ofdm-send-param.cc:141
simple-ofdm-wimax-phy.h
ns3::simpleOfdmSendParam::GetBurst
Ptr< PacketBurst > GetBurst(void)
Definition: simple-ofdm-send-param.cc:151
ns3::simpleOfdmSendParam::SetFecBlock
void SetFecBlock(const bvec &fecBlock)
sent the fec block to send
Definition: simple-ofdm-send-param.cc:79
ns3::simpleOfdmSendParam::m_fecBlock
bvec m_fecBlock
FEC block.
Definition: simple-ofdm-send-param.h:136
ns3::simpleOfdmSendParam::GetFecBlock
bvec GetFecBlock(void)
Definition: simple-ofdm-send-param.cc:116
ns3::simpleOfdmSendParam::GetBurstSize
uint32_t GetBurstSize(void)
Definition: simple-ofdm-send-param.cc:121
ns3::simpleOfdmSendParam::m_direction
uint8_t m_direction
direction
Definition: simple-ofdm-send-param.h:141
ns3::simpleOfdmSendParam::GetRxPowerDbm
double GetRxPowerDbm(void)
Definition: simple-ofdm-send-param.cc:146
ns3::simpleOfdmSendParam::SetBurstSize
void SetBurstSize(uint32_t burstSize)
set the burst size
Definition: simple-ofdm-send-param.cc:85
ns3::simpleOfdmSendParam::GetModulationType
WimaxPhy::ModulationType GetModulationType(void)
Definition: simple-ofdm-send-param.cc:136
ns3::simpleOfdmSendParam::SetDirection
void SetDirection(uint8_t direction)
Definition: simple-ofdm-send-param.cc:105