A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
simple-ofdm-send-param.h
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#ifndef SIMPLE_OFDM_SEND_PARAM_H
22#define SIMPLE_OFDM_SEND_PARAM_H
23
24#include "bvec.h"
25#include "wimax-channel.h"
26#include "wimax-phy.h"
27
28#include "ns3/propagation-loss-model.h"
29
30#include <list>
31
32namespace ns3
33{
34
35/**
36 * \ingroup wimax
37 * SimpleOfdmSendParam class
38 */
40{
41 public:
43 /**
44 * Constructor
45 *
46 * \param fecBlock FEC block
47 * \param burstSize burst size
48 * \param isFirstBlock is the first block
49 * \param Frequency frequency
50 * \param modulationType modulation type
51 * \param direction the direction
52 * \param rxPowerDbm receive power
53 */
54 SimpleOfdmSendParam(const Bvec& fecBlock,
55 uint32_t burstSize,
56 bool isFirstBlock,
57 uint64_t Frequency,
58 WimaxPhy::ModulationType modulationType,
59 uint8_t direction,
60 double rxPowerDbm);
61 /**
62 * Constructor
63 *
64 * \param burstSize burst size
65 * \param isFirstBlock is the first block
66 * \param Frequency frequency
67 * \param modulationType modulation type
68 * \param direction the direction
69 * \param rxPowerDbm receive power
70 * \param burst packet burst object
71 */
73 bool isFirstBlock,
74 uint64_t Frequency,
75 WimaxPhy::ModulationType modulationType,
76 uint8_t direction,
77 double rxPowerDbm,
78 Ptr<PacketBurst> burst);
80 /**
81 * \brief sent the fec block to send
82 * \param fecBlock the fec block to send
83 */
84 void SetFecBlock(const Bvec& fecBlock);
85 /**
86 * \brief set the burst size
87 * \param burstSize the burst size in bytes
88 */
89 void SetBurstSize(uint32_t burstSize);
90 /**
91 * \param isFirstBlock Set to true if this fec block is the first one in the burst, set to false
92 * otherwise
93 */
94 void SetIsFirstBlock(bool isFirstBlock);
95 /**
96 * \param Frequency set the frequency of the channel in which this fec block will be sent
97 */
98 void SetFrequency(uint64_t Frequency);
99 /**
100 * \param modulationType the modulation type used to send this fec block
101 */
102 void SetModulationType(WimaxPhy::ModulationType modulationType);
103 /**
104 * \param direction the direction on which this fec block will be sent
105 */
106 void SetDirection(uint8_t direction);
107 /**
108 * \param rxPowerDbm the received power
109 */
110 void SetRxPowerDbm(double rxPowerDbm);
111 /**
112 * \return the fec block
113 */
115 /**
116 * \return the burst size
117 */
118 uint32_t GetBurstSize() const;
119 /**
120 * \return true if this fec block is the first one in the burst, false otherwise
121 */
122 bool GetIsFirstBlock() const;
123 /**
124 * \return the frequency on which the fec block is sent/received
125 */
126 uint64_t GetFrequency() const;
127 /**
128 * \return the modulation type used to send this fec block
129 */
131 /**
132 * \return the direction on which this fec block was sent. UP or DOWN
133 */
134 uint8_t GetDirection() const;
135 /**
136 * \return the Received power
137 */
138 double GetRxPowerDbm() const;
139 /**
140 * \return the received burst
141 */
143
144 private:
145 Bvec m_fecBlock; ///< FEC block
146 uint32_t m_burstSize; ///< burst size
147 bool m_isFirstBlock; ///< is first block
148 uint64_t m_frequency; ///< frequency
150 uint8_t m_direction; ///< direction
151 double m_rxPowerDbm; ///< receive power dbM
153};
154} // namespace ns3
155
156#endif /* SIMPLE_OFDM_SEND_PARAM_H */
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
SimpleOfdmSendParam class.
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
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< bool > Bvec
boolean vector typedef
Definition: bvec.h:29