A Discrete-Event Network Simulator
API
simple-ofdm-send-param.h
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 #ifndef SIMPLE_OFDM_SEND_PARAM_H
23 #define SIMPLE_OFDM_SEND_PARAM_H
24 
25 #include <list>
26 #include "wimax-channel.h"
27 #include "bvec.h"
28 #include "wimax-phy.h"
29 #include "ns3/propagation-loss-model.h"
30 
31 namespace ns3 {
32 
38 {
39 public:
40  simpleOfdmSendParam (void);
52  simpleOfdmSendParam (const bvec &fecBlock, uint32_t burstSize,
53  bool isFirstBlock, uint64_t Frequency,
54  WimaxPhy::ModulationType modulationType, uint8_t direction,
55  double rxPowerDbm);
67  simpleOfdmSendParam (uint32_t burstSize,
68  bool isFirstBlock, uint64_t Frequency,
69  WimaxPhy::ModulationType modulationType, uint8_t direction,
70  double rxPowerDbm, Ptr<PacketBurst> burst);
71  ~simpleOfdmSendParam (void);
76  void SetFecBlock (const bvec &fecBlock);
81  void SetBurstSize (uint32_t burstSize);
85  void SetIsFirstBlock (bool isFirstBlock);
89  void SetFrequency (uint64_t Frequency);
93  void SetModulationType (WimaxPhy::ModulationType modulationType);
97  void SetDirection (uint8_t direction);
101  void SetRxPowerDbm (double rxPowerDbm);
105  bvec GetFecBlock (void);
109  uint32_t GetBurstSize (void);
113  bool GetIsFirstBlock (void);
117  uint64_t GetFrequency (void);
125  uint8_t GetDirection (void);
129  double GetRxPowerDbm (void);
133  Ptr<PacketBurst> GetBurst (void);
134 
135 private:
137  uint32_t m_burstSize;
139  uint64_t m_frequency;
141  uint8_t m_direction;
142  double m_rxPowerDbm;
144 
145 };
146 } // namespace ns3
147 
148 #endif /* SIMPLE_OFDM_SEND_PARAM_H */
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::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 class
Definition: simple-ofdm-send-param.h:38
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
wimax-phy.h
wimax-channel.h
bvec.h
ns3::simpleOfdmSendParam::GetDirection
uint8_t GetDirection(void)
Definition: simple-ofdm-send-param.cc:141
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