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