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 */
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:73
simpleOfdmSendParam class
double m_rxPowerDbm
receive power dbM
void SetFrequency(uint64_t Frequency)
bool m_isFirstBlock
is first block
void SetDirection(uint8_t direction)
Ptr< PacketBurst > m_burst
burst
WimaxPhy::ModulationType GetModulationType(void)
void SetRxPowerDbm(double rxPowerDbm)
void SetIsFirstBlock(bool isFirstBlock)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetBurstSize(uint32_t burstSize)
set the burst size
void SetFecBlock(const bvec &fecBlock)
sent the fec block to send
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:49
std::vector< bool > bvec
boolean vector typedef
Definition: bvec.h:29
WimaxPhy::ModulationType m_modulationType
modulation type
Ptr< PacketBurst > GetBurst(void)
void SetModulationType(WimaxPhy::ModulationType modulationType)