A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
simple-ofdm-send-param.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007,2008, 2009 INRIA, UDcast
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7 * <amine.ismail@udcast.com>
8 */
9
11
14
15namespace ns3
16{
27
29 uint32_t burstSize,
30 bool isFirstBlock,
31 uint64_t Frequency,
32 WimaxPhy::ModulationType modulationType,
33 uint8_t direction,
34 double rxPowerDbm)
35{
36 m_fecBlock = fecBlock;
37 m_burstSize = burstSize;
38 m_isFirstBlock = isFirstBlock;
39 m_frequency = Frequency;
40 m_modulationType = modulationType;
41 m_direction = direction;
42 m_rxPowerDbm = rxPowerDbm;
43}
44
46 bool isFirstBlock,
47 uint64_t Frequency,
48 WimaxPhy::ModulationType modulationType,
49 uint8_t direction,
50 double rxPowerDbm,
51 Ptr<PacketBurst> burst)
52{
53 m_burstSize = burstSize;
54 m_isFirstBlock = isFirstBlock;
55 m_frequency = Frequency;
56 m_modulationType = modulationType;
57 m_direction = direction;
58 m_rxPowerDbm = rxPowerDbm;
59 m_burst = burst;
60}
61
65
66void
68{
69 m_fecBlock = fecBlock;
70}
71
72void
74{
75 m_burstSize = burstSize;
76}
77
78void
80{
81 m_isFirstBlock = isFirstBlock;
82}
83
84void
86{
87 m_frequency = Frequency;
88}
89
90void
95
96void
98{
99 m_direction = direction;
100}
101
102void
104{
105 m_rxPowerDbm = rxPowerDbm;
106}
107
108Bvec
113
116{
117 return m_burstSize;
118}
119
120bool
125
126uint64_t
128{
129 return m_frequency;
130}
131
137
138uint8_t
140{
141 return m_direction;
142}
143
144double
149
155
156} // namespace ns3
Smart pointer class similar to boost::intrusive_ptr.
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:43
@ MODULATION_TYPE_QPSK_12
Definition wimax-phy.h:45
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< bool > Bvec
boolean vector typedef
Definition bvec.h:18