A Discrete-Event Network Simulator
API
simple-ofdm-wimax-phy.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_WIMAX_PHY_H
23 #define SIMPLE_OFDM_WIMAX_PHY_H
24 
25 #include <stdint.h>
26 #include <list>
27 #include "ns3/callback.h"
28 #include "ns3/nstime.h"
29 #include "ns3/event-id.h"
30 #include "ns3/random-variable-stream.h"
31 #include "wimax-phy.h"
32 #include "bvec.h"
33 #include "ns3/snr-to-block-error-rate-manager.h"
34 #include "wimax-connection.h"
35 namespace ns3 {
36 
37 class WimaxChannel;
38 class WimaxNetDevice;
39 class NetDevice;
40 class Packet;
41 class SimpleOfdmWimaxChannel;
42 
48 {
49 public:
52  {
60  };
61 
66  static TypeId GetTypeId (void);
67  SimpleOfdmWimaxPhy (void);
73  SimpleOfdmWimaxPhy (char * tracesPath);
74  ~SimpleOfdmWimaxPhy (void);
79  void ActivateLoss (bool loss);
85  void SetSNRToBlockErrorRateTracesPath (char * tracesPath);
102  void Send (Ptr<PacketBurst> burst, WimaxPhy::ModulationType modulationType, uint8_t direction);
108  void Send (SendParams *params);
113  WimaxPhy::PhyType GetPhyType (void) const;
125  void StartReceive (uint32_t burstSize,
126  bool isFirstBlock,
127  uint64_t frequency,
128  WimaxPhy::ModulationType modulationType,
129  uint8_t direction,
130  double rxPower,
131  Ptr<PacketBurst> burst);
132 
136  uint32_t GetBandwidth (void) const;
141  void SetBandwidth (uint32_t BW);
145  double GetTxPower (void) const;
150  void SetTxPower (double txPower);
154  double GetNoiseFigure (void) const;
159  void SetNoiseFigure (double nf);
160 
166  void NotifyTxBegin (Ptr<PacketBurst> burst);
167 
173  void NotifyTxEnd (Ptr<PacketBurst> burst);
174 
180  void NotifyTxDrop (Ptr<PacketBurst> burst);
181 
187  void NotifyRxBegin (Ptr<PacketBurst> burst);
188 
194  void NotifyRxEnd (Ptr<PacketBurst> burst);
195 
201  void NotifyRxDrop (Ptr<PacketBurst> burst);
202 
211  int64_t AssignStreams (int64_t stream);
212 
213 private:
220  Time DoGetTransmissionTime (uint32_t size, WimaxPhy::ModulationType modulationType) const;
227  uint64_t DoGetNrSymbols (uint32_t size, WimaxPhy::ModulationType modulationType) const;
234  uint64_t DoGetNrBytes (uint32_t symbols, WimaxPhy::ModulationType modulationType) const;
252  void CreateFecBlocks (const bvec &buffer, WimaxPhy::ModulationType modulationType);
257  bvec RecreateBuffer ();
263  uint32_t GetFecBlockSize (WimaxPhy::ModulationType type) const;
269  uint32_t GetCodedFecBlockSize (WimaxPhy::ModulationType modulationType) const;
275  void SetBlockParameters (uint32_t burstSize, WimaxPhy::ModulationType modulationType);
282  uint16_t GetNrBlocks (uint32_t burstSize, WimaxPhy::ModulationType modulationType) const;
283  void DoDispose (void);
285  void EndSend (void);
291  void EndSendFecBlock (WimaxPhy::ModulationType modulationType, uint8_t direction);
296  void EndReceive (Ptr<const PacketBurst> burst);
305  void EndReceiveFecBlock (uint32_t burstSize,
306  WimaxPhy::ModulationType modulationType,
307  uint8_t direction,
308  uint8_t drop,
309  Ptr<PacketBurst> burst);
316  void StartSendDummyFecBlock (bool isFirstBlock,
317  WimaxPhy::ModulationType modulationType,
318  uint8_t direction);
326  void DoSetDataRates (void);
328  void InitSimpleOfdmWimaxPhy (void);
329 
336  void GetModulationFecParams (WimaxPhy::ModulationType modulationType, uint8_t &bitsPerSymbol, double &fecCode) const;
342  uint32_t CalculateDataRate (WimaxPhy::ModulationType modulationType) const;
348  uint32_t DoGetDataRate (WimaxPhy::ModulationType modulationType) const;
353  uint16_t DoGetTtg (void) const;
358  uint16_t DoGetRtg (void) const;
363  uint8_t DoGetFrameDurationCode (void) const;
369  Time DoGetFrameDuration (uint8_t frameDurationCode) const;
371  void DoSetPhyParameters (void);
376  uint16_t DoGetNfft (void) const;
381  void DoSetNfft (uint16_t nfft);
386  double DoGetSamplingFactor (void) const;
391  double DoGetSamplingFrequency (void) const;
396  double DoGetGValue (void) const;
401  void DoSetGValue (double g);
402 
407  double GetRxGain (void) const;
412  void SetRxGain (double rxgain);
413 
418  double GetTxGain (void) const;
423  void SetTxGain (double txgain);
424 
429  std::string GetTraceFilePath (void) const;
434  void SetTraceFilePath (std::string path);
435 
436  uint16_t m_fecBlockSize;
438 
439  std::list<bvec> *m_receivedFecBlocks;
440  uint32_t m_nrFecBlocksSent;
441  std::list<bvec> *m_fecBlocks;
443 
446 
447  // data rates for this Phy
448  uint32_t m_dataRateBpsk12;
449  uint32_t m_dataRateQpsk12;
450  uint32_t m_dataRateQpsk34;
455 
456  // parameters to store for a per burst life-time
457  uint16_t m_nrBlocks;
460  uint16_t m_blockSize;
461  uint32_t m_paddingBits;
464  uint16_t m_nfft;
465  double m_g;
466  double m_bandWidth;
467  double m_txPower;
468  double m_noiseFigure;
469  double m_txGain;
470  double m_rxGain;
471 
480 
490 
500 
510 
520 
529 
531 
534 
535 };
536 
537 } // namespace ns3
538 
539 #endif /* OFDM_WIMAX_PHY_H */
ns3::SimpleOfdmWimaxPhy::EndSend
void EndSend(void)
End send.
Definition: simple-ofdm-wimax-phy.cc:346
ns3::SimpleOfdmWimaxPhy::ConvertBitsToBurst
Ptr< PacketBurst > ConvertBitsToBurst(bvec buffer)
Convert bits to burst.
Definition: simple-ofdm-wimax-phy.cc:525
ns3::TypeId
a unique identifier for an interface.
Definition: type-id.h:59
ns3::SimpleOfdmWimaxPhy::m_g
double m_g
G value.
Definition: simple-ofdm-wimax-phy.h:465
ns3::SimpleOfdmWimaxPhy::GetPhyType
WimaxPhy::PhyType GetPhyType(void) const
returns the type this physical layer
Definition: simple-ofdm-wimax-phy.cc:264
ns3::SimpleOfdmWimaxPhy::m_snrToBlockErrorRateManager
SNRToBlockErrorRateManager * m_snrToBlockErrorRateManager
SNR to block error rate manager.
Definition: simple-ofdm-wimax-phy.h:530
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_8_MS
@ FRAME_DURATION_8_MS
Definition: simple-ofdm-wimax-phy.h:56
ns3::SimpleOfdmWimaxPhy::SetBandwidth
void SetBandwidth(uint32_t BW)
Set the bandwidth.
Definition: simple-ofdm-wimax-phy.cc:208
ns3::SimpleOfdmWimaxPhy::m_blockSize
uint16_t m_blockSize
block size
Definition: simple-ofdm-wimax-phy.h:460
ns3::SimpleOfdmWimaxPhy::EndReceiveFecBlock
void EndReceiveFecBlock(uint32_t burstSize, WimaxPhy::ModulationType modulationType, uint8_t direction, uint8_t drop, Ptr< PacketBurst > burst)
End receive FEC block.
Definition: simple-ofdm-wimax-phy.cc:443
ns3::SimpleOfdmWimaxPhy::SetSNRToBlockErrorRateTracesPath
void SetSNRToBlockErrorRateTracesPath(char *tracesPath)
Set the path of the repository containing the traces.
Definition: simple-ofdm-wimax-phy.cc:195
ns3::Callback
Callback template class.
Definition: callback.h:1279
ns3::SimpleOfdmWimaxPhy::GetNoiseFigure
double GetNoiseFigure(void) const
Definition: simple-ofdm-wimax-phy.cc:225
ns3::SimpleOfdmWimaxPhy::m_URNG
Ptr< UniformRandomVariable > m_URNG
Provides uniform random variables.
Definition: simple-ofdm-wimax-phy.h:533
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::SimpleOfdmWimaxPhy::m_traceRx
TracedCallback< Ptr< const PacketBurst > > m_traceRx
trace receive callback
Definition: simple-ofdm-wimax-phy.h:444
ns3::SimpleOfdmWimaxPhy::DoGetTransmissionTime
Time DoGetTransmissionTime(uint32_t size, WimaxPhy::ModulationType modulationType) const
Get transmission time.
Definition: simple-ofdm-wimax-phy.cc:716
ns3::SimpleOfdmWimaxPhy::m_phyRxDropTrace
TracedCallback< Ptr< PacketBurst > > m_phyRxDropTrace
The trace source fired when the phy layer drops a packet it has received.
Definition: simple-ofdm-wimax-phy.h:528
ns3::SimpleOfdmWimaxPhy::m_blockTime
Time m_blockTime
block time
Definition: simple-ofdm-wimax-phy.h:442
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_12_POINT_5_MS
@ FRAME_DURATION_12_POINT_5_MS
Definition: simple-ofdm-wimax-phy.h:58
ns3::SimpleOfdmWimaxPhy::DoSetNfft
void DoSetNfft(uint16_t nfft)
Set NFFT.
Definition: simple-ofdm-wimax-phy.cc:964
ns3::SimpleOfdmWimaxPhy::GetTxGain
double GetTxGain(void) const
Get transmit gain.
Definition: simple-ofdm-wimax-phy.cc:1048
ns3::SimpleOfdmWimaxPhy::InitSimpleOfdmWimaxPhy
void InitSimpleOfdmWimaxPhy(void)
Initialize simple OFDM WIMAX Phy.
Definition: simple-ofdm-wimax-phy.cc:135
third.channel
channel
Definition: third.py:92
ns3::SimpleOfdmWimaxPhy::m_dataRateQpsk12
uint32_t m_dataRateQpsk12
data rate
Definition: simple-ofdm-wimax-phy.h:449
ns3::SimpleOfdmWimaxPhy::SetTraceFilePath
void SetTraceFilePath(std::string path)
Set trace file path.
Definition: simple-ofdm-wimax-phy.cc:1066
ns3::SimpleOfdmWimaxPhy::DoGetSamplingFactor
double DoGetSamplingFactor(void) const
Get sampling factor.
Definition: simple-ofdm-wimax-phy.cc:978
ns3::SimpleOfdmWimaxPhy::m_traceTx
TracedCallback< Ptr< const PacketBurst > > m_traceTx
trace transmit callback
Definition: simple-ofdm-wimax-phy.h:445
ns3::SimpleOfdmWimaxPhy::GetBandwidth
uint32_t GetBandwidth(void) const
Definition: simple-ofdm-wimax-phy.cc:202
ns3::SimpleOfdmWimaxPhy::m_fecBlockSize
uint16_t m_fecBlockSize
in bits, size of FEC block transmitted after PHY operations
Definition: simple-ofdm-wimax-phy.h:436
ns3::SimpleOfdmWimaxPhy::DoGetFrameDurationCode
uint8_t DoGetFrameDurationCode(void) const
Get frame duration code.
Definition: simple-ofdm-wimax-phy.cc:833
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_10_MS
@ FRAME_DURATION_10_MS
Definition: simple-ofdm-wimax-phy.h:57
ns3::SimpleOfdmWimaxPhy::m_nfft
uint16_t m_nfft
NFFT.
Definition: simple-ofdm-wimax-phy.h:464
ns3::SimpleOfdmWimaxPhy::m_dataRateQpsk34
uint32_t m_dataRateQpsk34
data rate
Definition: simple-ofdm-wimax-phy.h:450
ns3::SimpleOfdmWimaxPhy::NotifyRxEnd
void NotifyRxEnd(Ptr< PacketBurst > burst)
Public method used to fire a PhyRxEnd trace.
Definition: simple-ofdm-wimax-phy.cc:1098
ns3::SimpleOfdmWimaxPhy::DoGetRtg
uint16_t DoGetRtg(void) const
Get RTG.
Definition: simple-ofdm-wimax-phy.cc:826
ns3::SimpleOfdmWimaxPhy::GetTraceFilePath
std::string GetTraceFilePath(void) const
Get trace file path.
Definition: simple-ofdm-wimax-phy.cc:1060
ns3::SimpleOfdmWimaxPhy::StartSendDummyFecBlock
void StartSendDummyFecBlock(bool isFirstBlock, WimaxPhy::ModulationType modulationType, uint8_t direction)
Start end dummy FEC block.
Definition: simple-ofdm-wimax-phy.cc:288
ns3::SNRToBlockErrorRateManager
This class handles the SNR to BlcER traces.
Definition: snr-to-block-error-rate-manager.h:56
ns3::SimpleOfdmWimaxPhy::m_nrRecivedFecBlocks
uint16_t m_nrRecivedFecBlocks
number received FEC blocks
Definition: simple-ofdm-wimax-phy.h:463
ns3::SimpleOfdmWimaxPhy::DoGetSamplingFrequency
double DoGetSamplingFrequency(void) const
Get sampling frequency.
Definition: simple-ofdm-wimax-phy.cc:1014
ns3::SimpleOfdmWimaxPhy::m_dataRateQam64_23
uint32_t m_dataRateQam64_23
data rate
Definition: simple-ofdm-wimax-phy.h:453
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_5_MS
@ FRAME_DURATION_5_MS
Definition: simple-ofdm-wimax-phy.h:55
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:74
ns3::SimpleOfdmWimaxPhy
SimpleOfdmWimaxPhy class.
Definition: simple-ofdm-wimax-phy.h:48
ns3::SimpleOfdmWimaxPhy::EndReceive
void EndReceive(Ptr< const PacketBurst > burst)
End receive.
Definition: simple-ofdm-wimax-phy.cc:477
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:50
ns3::SimpleOfdmWimaxPhy::NotifyRxDrop
void NotifyRxDrop(Ptr< PacketBurst > burst)
Public method used to fire a PhyRxDrop trace.
Definition: simple-ofdm-wimax-phy.cc:1104
ns3::SimpleOfdmWimaxPhy::DoGetNrSymbols
uint64_t DoGetNrSymbols(uint32_t size, WimaxPhy::ModulationType modulationType) const
Get number of symbols.
Definition: simple-ofdm-wimax-phy.cc:725
ns3::SimpleOfdmWimaxPhy::NotifyTxEnd
void NotifyTxEnd(Ptr< PacketBurst > burst)
Public method used to fire a PhyTxEnd trace.
Definition: simple-ofdm-wimax-phy.cc:1080
ns3::bvec
std::vector< bool > bvec
boolean vector typedef
Definition: bvec.h:29
ns3::SimpleOfdmWimaxPhy::GetCodedFecBlockSize
uint32_t GetCodedFecBlockSize(WimaxPhy::ModulationType modulationType) const
Get coded FEC block size.
Definition: simple-ofdm-wimax-phy.cc:775
ns3::SimpleOfdmWimaxPhy::CreateFecBlocks
void CreateFecBlocks(const bvec &buffer, WimaxPhy::ModulationType modulationType)
Create FEC blocks.
Definition: simple-ofdm-wimax-phy.cc:577
ns3::SimpleOfdmWimaxPhy::CalculateDataRate
uint32_t CalculateDataRate(WimaxPhy::ModulationType modulationType) const
Calculate data rate.
Definition: simple-ofdm-wimax-phy.cc:666
ns3::SimpleOfdmWimaxPhy::NotifyRxBegin
void NotifyRxBegin(Ptr< PacketBurst > burst)
Public method used to fire a PhyRxBegin trace.
Definition: simple-ofdm-wimax-phy.cc:1092
ns3::SimpleOfdmWimaxPhy::AssignStreams
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
Definition: simple-ofdm-wimax-phy.cc:1110
ns3::SimpleOfdmWimaxPhy::DoSetDataRates
void DoSetDataRates(void)
Set data rates.
Definition: simple-ofdm-wimax-phy.cc:616
ns3::SimpleOfdmWimaxPhy::SetBlockParameters
void SetBlockParameters(uint32_t burstSize, WimaxPhy::ModulationType modulationType)
Set block parameters.
Definition: simple-ofdm-wimax-phy.cc:809
wimax-phy.h
ns3::SimpleOfdmWimaxPhy::DoAttach
void DoAttach(Ptr< WimaxChannel > channel)
Attach the physical layer to a channel.
Definition: simple-ofdm-wimax-phy.cc:247
ns3::SimpleOfdmWimaxPhy::DoGetNfft
uint16_t DoGetNfft(void) const
Get NFFT.
Definition: simple-ofdm-wimax-phy.cc:971
ns3::SimpleOfdmWimaxPhy::m_currentBurst
Ptr< PacketBurst > m_currentBurst
current burst
Definition: simple-ofdm-wimax-phy.h:459
ns3::SimpleOfdmWimaxPhy::GetModulationFecParams
void GetModulationFecParams(WimaxPhy::ModulationType modulationType, uint8_t &bitsPerSymbol, double &fecCode) const
Get moduleation FEC parameters.
Definition: simple-ofdm-wimax-phy.cc:628
wimax-connection.h
ns3::SimpleOfdmWimaxPhy::DoGetNrBytes
uint64_t DoGetNrBytes(uint32_t symbols, WimaxPhy::ModulationType modulationType) const
Get number of bytes.
Definition: simple-ofdm-wimax-phy.cc:733
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:104
bvec.h
ns3::SimpleOfdmWimaxPhy::NotifyTxDrop
void NotifyTxDrop(Ptr< PacketBurst > burst)
Public method used to fire a PhyTxDrop trace.
Definition: simple-ofdm-wimax-phy.cc:1086
ns3::SimpleOfdmWimaxPhy::m_dataRateQam64_34
uint32_t m_dataRateQam64_34
data rate
Definition: simple-ofdm-wimax-phy.h:454
ns3::SimpleOfdmWimaxPhy::m_dataRateQam16_12
uint32_t m_dataRateQam16_12
data rate
Definition: simple-ofdm-wimax-phy.h:451
ns3::WimaxPhy::PhyType
PhyType
PhyType enumeration.
Definition: wimax-phy.h:71
ns3::SimpleOfdmWimaxPhy::m_phyTxBeginTrace
TracedCallback< Ptr< PacketBurst > > m_phyTxBeginTrace
The trace source fired when a packet begins the transmission process on the medium.
Definition: simple-ofdm-wimax-phy.h:479
ns3::SimpleOfdmWimaxPhy::m_noiseFigure
double m_noiseFigure
noise figure
Definition: simple-ofdm-wimax-phy.h:468
ns3::SimpleOfdmWimaxPhy::DoDispose
void DoDispose(void)
Destructor implementation.
Definition: simple-ofdm-wimax-phy.cc:236
ns3::SimpleOfdmWimaxPhy::m_nrFecBlocksSent
uint32_t m_nrFecBlocksSent
counting the number of FEC blocks sent (within a burst)
Definition: simple-ofdm-wimax-phy.h:440
ns3::SimpleOfdmWimaxPhy::m_phyTxEndTrace
TracedCallback< Ptr< PacketBurst > > m_phyTxEndTrace
The trace source fired when a packet ends the transmission process on the medium.
Definition: simple-ofdm-wimax-phy.h:489
ns3::SimpleOfdmWimaxPhy::FrameDurationCode
FrameDurationCode
Frame duration code enumeration.
Definition: simple-ofdm-wimax-phy.h:52
ns3::SimpleOfdmWimaxPhy::DoSetGValue
void DoSetGValue(double g)
Set G value.
Definition: simple-ofdm-wimax-phy.cc:1029
ns3::SimpleOfdmWimaxPhy::DoGetGValue
double DoGetGValue(void) const
Get G value.
Definition: simple-ofdm-wimax-phy.cc:1022
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_20_MS
@ FRAME_DURATION_20_MS
Definition: simple-ofdm-wimax-phy.h:59
ns3::SimpleOfdmWimaxPhy::SetTxGain
void SetTxGain(double txgain)
Set transmit gain.
Definition: simple-ofdm-wimax-phy.cc:1036
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_4_MS
@ FRAME_DURATION_4_MS
Definition: simple-ofdm-wimax-phy.h:54
ns3::SimpleOfdmWimaxPhy::ActivateLoss
void ActivateLoss(bool loss)
if called with true it will enable the loss model
Definition: simple-ofdm-wimax-phy.cc:189
ns3::SimpleOfdmWimaxPhy::m_nrRemainingBlocksToSend
uint16_t m_nrRemainingBlocksToSend
number of remaining blocks to send
Definition: simple-ofdm-wimax-phy.h:458
ns3::SimpleOfdmWimaxPhy::ConvertBurstToBits
bvec ConvertBurstToBits(Ptr< const PacketBurst > burst)
Convert burst to bits.
Definition: simple-ofdm-wimax-phy.cc:485
ns3::SimpleOfdmWimaxPhy::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition: simple-ofdm-wimax-phy.cc:44
ns3::SimpleOfdmWimaxPhy::m_txGain
double m_txGain
transmit gain
Definition: simple-ofdm-wimax-phy.h:469
ns3::SimpleOfdmWimaxPhy::SimpleOfdmWimaxPhy
SimpleOfdmWimaxPhy(void)
Definition: simple-ofdm-wimax-phy.cc:167
ns3::SimpleOfdmWimaxPhy::m_nbErroneousBlock
uint16_t m_nbErroneousBlock
erroneous blocks
Definition: simple-ofdm-wimax-phy.h:462
ns3::SimpleOfdmWimaxPhy::GetTxPower
double GetTxPower(void) const
Definition: simple-ofdm-wimax-phy.cc:214
ns3::SimpleOfdmWimaxPhy::m_nrBlocks
uint16_t m_nrBlocks
number of blocks
Definition: simple-ofdm-wimax-phy.h:457
ns3::SimpleOfdmWimaxPhy::SetTxPower
void SetTxPower(double txPower)
set the transmission power
Definition: simple-ofdm-wimax-phy.cc:219
ns3::SimpleOfdmWimaxPhy::m_txPower
double m_txPower
transmit power
Definition: simple-ofdm-wimax-phy.h:467
ns3::SimpleOfdmWimaxPhy::m_fecBlocks
std::list< bvec > * m_fecBlocks
the FEC blocks
Definition: simple-ofdm-wimax-phy.h:441
ns3::SimpleOfdmWimaxPhy::Send
void Send(Ptr< PacketBurst > burst, WimaxPhy::ModulationType modulationType, uint8_t direction)
Sends a burst on the channel.
Definition: simple-ofdm-wimax-phy.cc:270
ns3::SimpleOfdmWimaxPhy::m_dataRateBpsk12
uint32_t m_dataRateBpsk12
data rate
Definition: simple-ofdm-wimax-phy.h:448
ns3::SimpleOfdmWimaxPhy::m_dataRateQam16_34
uint32_t m_dataRateQam16_34
data rate
Definition: simple-ofdm-wimax-phy.h:452
ns3::SimpleOfdmWimaxPhy::m_phyRxEndTrace
TracedCallback< Ptr< PacketBurst > > m_phyRxEndTrace
The trace source fired when a packet ends the reception process from the medium.
Definition: simple-ofdm-wimax-phy.h:519
ns3::SimpleOfdmWimaxPhy::GetNrBlocks
uint16_t GetNrBlocks(uint32_t burstSize, WimaxPhy::ModulationType modulationType) const
Get number of blocks.
Definition: simple-ofdm-wimax-phy.cc:921
ns3::SimpleOfdmWimaxPhy::m_phyRxBeginTrace
TracedCallback< Ptr< PacketBurst > > m_phyRxBeginTrace
The trace source fired when a packet begins the reception process from the medium.
Definition: simple-ofdm-wimax-phy.h:509
ns3::SimpleOfdmWimaxPhy::m_paddingBits
uint32_t m_paddingBits
padding bits
Definition: simple-ofdm-wimax-phy.h:461
ns3::SendParams
The SendParams class defines the parameters with which Send() function of a particular PHY is called.
Definition: send-params.h:44
ns3::SimpleOfdmWimaxPhy::m_currentBurstSize
uint32_t m_currentBurstSize
current burst size
Definition: simple-ofdm-wimax-phy.h:437
ns3::TracedCallback
Forward calls to a chain of Callback.
Definition: traced-callback.h:53
ns3::SimpleOfdmWimaxPhy::GetFecBlockSize
uint32_t GetFecBlockSize(WimaxPhy::ModulationType type) const
Get FEC block size.
Definition: simple-ofdm-wimax-phy.cc:740
ns3::SimpleOfdmWimaxPhy::SetRxGain
void SetRxGain(double rxgain)
Set receive gsain.
Definition: simple-ofdm-wimax-phy.cc:1042
ns3::SimpleOfdmWimaxPhy::DoGetDataRate
uint32_t DoGetDataRate(WimaxPhy::ModulationType modulationType) const
Get data rate.
Definition: simple-ofdm-wimax-phy.cc:679
ns3::SimpleOfdmWimaxPhy::m_receivedFecBlocks
std::list< bvec > * m_receivedFecBlocks
a list of received FEC blocks until they are combined to recreate the full burst buffer
Definition: simple-ofdm-wimax-phy.h:439
ns3::SimpleOfdmWimaxPhy::DoGetFrameDuration
Time DoGetFrameDuration(uint8_t frameDurationCode) const
Get frame duration.
Definition: simple-ofdm-wimax-phy.cc:885
ns3::SimpleOfdmWimaxPhy::SetNoiseFigure
void SetNoiseFigure(double nf)
set the noise figure of the device
Definition: simple-ofdm-wimax-phy.cc:230
ns3::SimpleOfdmWimaxPhy::DoGetTtg
uint16_t DoGetTtg(void) const
Get TTG.
Definition: simple-ofdm-wimax-phy.cc:819
ns3::SimpleOfdmWimaxPhy::FRAME_DURATION_2_POINT_5_MS
@ FRAME_DURATION_2_POINT_5_MS
Definition: simple-ofdm-wimax-phy.h:53
ns3::SimpleOfdmWimaxPhy::NotifyTxBegin
void NotifyTxBegin(Ptr< PacketBurst > burst)
Public method used to fire a PhyTxBegin trace.
Definition: simple-ofdm-wimax-phy.cc:1074
ns3::SimpleOfdmWimaxPhy::m_phyTxDropTrace
TracedCallback< Ptr< PacketBurst > > m_phyTxDropTrace
The trace source fired when the phy layer drops a packet as it tries to transmit it.
Definition: simple-ofdm-wimax-phy.h:499
ns3::SimpleOfdmWimaxPhy::DoSetPhyParameters
void DoSetPhyParameters(void)
Set Phy parameters.
Definition: simple-ofdm-wimax-phy.cc:936
ns3::SimpleOfdmWimaxPhy::GetBlockTransmissionTime
Time GetBlockTransmissionTime(WimaxPhy::ModulationType modulationType) const
Get block transmission time.
Definition: simple-ofdm-wimax-phy.cc:710
ns3::SimpleOfdmWimaxPhy::~SimpleOfdmWimaxPhy
~SimpleOfdmWimaxPhy(void)
Definition: simple-ofdm-wimax-phy.cc:183
ns3::WimaxPhy
Definition: wimax-phy.h:46
ns3::SimpleOfdmWimaxPhy::m_bandWidth
double m_bandWidth
bandwidth
Definition: simple-ofdm-wimax-phy.h:466
ns3::SimpleOfdmWimaxPhy::RecreateBuffer
bvec RecreateBuffer()
Recreate buffer.
Definition: simple-ofdm-wimax-phy.cc:599
ns3::SimpleOfdmWimaxPhy::GetRxGain
double GetRxGain(void) const
Get receive gain.
Definition: simple-ofdm-wimax-phy.cc:1054
ns3::SimpleOfdmWimaxPhy::m_rxGain
double m_rxGain
receive gain
Definition: simple-ofdm-wimax-phy.h:470
ns3::SimpleOfdmWimaxPhy::EndSendFecBlock
void EndSendFecBlock(WimaxPhy::ModulationType modulationType, uint8_t direction)
End send FEC block.
Definition: simple-ofdm-wimax-phy.cc:327
ns3::SimpleOfdmWimaxPhy::StartReceive
void StartReceive(uint32_t burstSize, bool isFirstBlock, uint64_t frequency, WimaxPhy::ModulationType modulationType, uint8_t direction, double rxPower, Ptr< PacketBurst > burst)
start the reception of a fec block
Definition: simple-ofdm-wimax-phy.cc:352
ns3::SimpleOfdmWimaxPhy::SetReceiveCallback
void SetReceiveCallback(Callback< void, Ptr< PacketBurst >, Ptr< WimaxConnection > > callback)
set the callback function to call when a burst is received