A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
* 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
10
#ifndef SIMPLE_OFDM_SEND_PARAM_H
11
#define SIMPLE_OFDM_SEND_PARAM_H
12
13
#include "
bvec.h
"
14
#include "
wimax-channel.h
"
15
#include "
wimax-phy.h
"
16
17
#include "ns3/propagation-loss-model.h"
18
19
#include <list>
20
21
namespace
ns3
22
{
23
24
/**
25
* \ingroup wimax
26
* SimpleOfdmSendParam class
27
*/
28
class
SimpleOfdmSendParam
29
{
30
public
:
31
SimpleOfdmSendParam
();
32
/**
33
* Constructor
34
*
35
* \param fecBlock FEC block
36
* \param burstSize burst size
37
* \param isFirstBlock is the first block
38
* \param Frequency frequency
39
* \param modulationType modulation type
40
* \param direction the direction
41
* \param rxPowerDbm receive power
42
*/
43
SimpleOfdmSendParam
(
const
Bvec
& fecBlock,
44
uint32_t
burstSize,
45
bool
isFirstBlock,
46
uint64_t Frequency,
47
WimaxPhy::ModulationType
modulationType,
48
uint8_t direction,
49
double
rxPowerDbm);
50
/**
51
* Constructor
52
*
53
* \param burstSize burst size
54
* \param isFirstBlock is the first block
55
* \param Frequency frequency
56
* \param modulationType modulation type
57
* \param direction the direction
58
* \param rxPowerDbm receive power
59
* \param burst packet burst object
60
*/
61
SimpleOfdmSendParam
(
uint32_t
burstSize,
62
bool
isFirstBlock,
63
uint64_t Frequency,
64
WimaxPhy::ModulationType
modulationType,
65
uint8_t direction,
66
double
rxPowerDbm,
67
Ptr<PacketBurst>
burst);
68
~SimpleOfdmSendParam
();
69
/**
70
* \brief sent the fec block to send
71
* \param fecBlock the fec block to send
72
*/
73
void
SetFecBlock
(
const
Bvec
& fecBlock);
74
/**
75
* \brief set the burst size
76
* \param burstSize the burst size in bytes
77
*/
78
void
SetBurstSize
(
uint32_t
burstSize);
79
/**
80
* \param isFirstBlock Set to true if this fec block is the first one in the burst, set to false
81
* otherwise
82
*/
83
void
SetIsFirstBlock
(
bool
isFirstBlock);
84
/**
85
* \param Frequency set the frequency of the channel in which this fec block will be sent
86
*/
87
void
SetFrequency
(uint64_t Frequency);
88
/**
89
* \param modulationType the modulation type used to send this fec block
90
*/
91
void
SetModulationType
(
WimaxPhy::ModulationType
modulationType);
92
/**
93
* \param direction the direction on which this fec block will be sent
94
*/
95
void
SetDirection
(uint8_t direction);
96
/**
97
* \param rxPowerDbm the received power
98
*/
99
void
SetRxPowerDbm
(
double
rxPowerDbm);
100
/**
101
* \return the fec block
102
*/
103
Bvec
GetFecBlock
();
104
/**
105
* \return the burst size
106
*/
107
uint32_t
GetBurstSize
()
const
;
108
/**
109
* \return true if this fec block is the first one in the burst, false otherwise
110
*/
111
bool
GetIsFirstBlock
()
const
;
112
/**
113
* \return the frequency on which the fec block is sent/received
114
*/
115
uint64_t
GetFrequency
()
const
;
116
/**
117
* \return the modulation type used to send this fec block
118
*/
119
WimaxPhy::ModulationType
GetModulationType
();
120
/**
121
* \return the direction on which this fec block was sent. UP or DOWN
122
*/
123
uint8_t
GetDirection
()
const
;
124
/**
125
* \return the Received power
126
*/
127
double
GetRxPowerDbm
()
const
;
128
/**
129
* \return the received burst
130
*/
131
Ptr<PacketBurst>
GetBurst
();
132
133
private
:
134
Bvec
m_fecBlock
;
///< FEC block
135
uint32_t
m_burstSize
;
///< burst size
136
bool
m_isFirstBlock
;
///< is first block
137
uint64_t
m_frequency
;
///< frequency
138
WimaxPhy::ModulationType
m_modulationType
;
///< modulation type
139
uint8_t
m_direction
;
///< direction
140
double
m_rxPowerDbm
;
///< receive power dbM
141
Ptr<PacketBurst>
m_burst
;
///< burst
142
};
143
}
// namespace ns3
144
145
#endif
/* SIMPLE_OFDM_SEND_PARAM_H */
bvec.h
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SimpleOfdmSendParam
SimpleOfdmSendParam class.
Definition
simple-ofdm-send-param.h:29
ns3::SimpleOfdmSendParam::GetDirection
uint8_t GetDirection() const
Definition
simple-ofdm-send-param.cc:139
ns3::SimpleOfdmSendParam::SetFrequency
void SetFrequency(uint64_t Frequency)
Definition
simple-ofdm-send-param.cc:85
ns3::SimpleOfdmSendParam::m_frequency
uint64_t m_frequency
frequency
Definition
simple-ofdm-send-param.h:137
ns3::SimpleOfdmSendParam::m_isFirstBlock
bool m_isFirstBlock
is first block
Definition
simple-ofdm-send-param.h:136
ns3::SimpleOfdmSendParam::GetFecBlock
Bvec GetFecBlock()
Definition
simple-ofdm-send-param.cc:109
ns3::SimpleOfdmSendParam::m_modulationType
WimaxPhy::ModulationType m_modulationType
modulation type
Definition
simple-ofdm-send-param.h:138
ns3::SimpleOfdmSendParam::GetModulationType
WimaxPhy::ModulationType GetModulationType()
Definition
simple-ofdm-send-param.cc:133
ns3::SimpleOfdmSendParam::GetFrequency
uint64_t GetFrequency() const
Definition
simple-ofdm-send-param.cc:127
ns3::SimpleOfdmSendParam::m_burst
Ptr< PacketBurst > m_burst
burst
Definition
simple-ofdm-send-param.h:141
ns3::SimpleOfdmSendParam::SetBurstSize
void SetBurstSize(uint32_t burstSize)
set the burst size
Definition
simple-ofdm-send-param.cc:73
ns3::SimpleOfdmSendParam::GetBurstSize
uint32_t GetBurstSize() const
Definition
simple-ofdm-send-param.cc:115
ns3::SimpleOfdmSendParam::m_rxPowerDbm
double m_rxPowerDbm
receive power dbM
Definition
simple-ofdm-send-param.h:140
ns3::SimpleOfdmSendParam::SetFecBlock
void SetFecBlock(const Bvec &fecBlock)
sent the fec block to send
Definition
simple-ofdm-send-param.cc:67
ns3::SimpleOfdmSendParam::m_fecBlock
Bvec m_fecBlock
FEC block.
Definition
simple-ofdm-send-param.h:134
ns3::SimpleOfdmSendParam::SimpleOfdmSendParam
SimpleOfdmSendParam()
Definition
simple-ofdm-send-param.cc:17
ns3::SimpleOfdmSendParam::SetDirection
void SetDirection(uint8_t direction)
Definition
simple-ofdm-send-param.cc:97
ns3::SimpleOfdmSendParam::SetModulationType
void SetModulationType(WimaxPhy::ModulationType modulationType)
Definition
simple-ofdm-send-param.cc:91
ns3::SimpleOfdmSendParam::SetIsFirstBlock
void SetIsFirstBlock(bool isFirstBlock)
Definition
simple-ofdm-send-param.cc:79
ns3::SimpleOfdmSendParam::GetBurst
Ptr< PacketBurst > GetBurst()
Definition
simple-ofdm-send-param.cc:151
ns3::SimpleOfdmSendParam::GetRxPowerDbm
double GetRxPowerDbm() const
Definition
simple-ofdm-send-param.cc:145
ns3::SimpleOfdmSendParam::GetIsFirstBlock
bool GetIsFirstBlock() const
Definition
simple-ofdm-send-param.cc:121
ns3::SimpleOfdmSendParam::~SimpleOfdmSendParam
~SimpleOfdmSendParam()
Definition
simple-ofdm-send-param.cc:62
ns3::SimpleOfdmSendParam::SetRxPowerDbm
void SetRxPowerDbm(double rxPowerDbm)
Definition
simple-ofdm-send-param.cc:103
ns3::SimpleOfdmSendParam::m_direction
uint8_t m_direction
direction
Definition
simple-ofdm-send-param.h:139
ns3::SimpleOfdmSendParam::m_burstSize
uint32_t m_burstSize
burst size
Definition
simple-ofdm-send-param.h:135
ns3::WimaxPhy::ModulationType
ModulationType
ModulationType enumeration.
Definition
wimax-phy.h:43
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Bvec
std::vector< bool > Bvec
boolean vector typedef
Definition
bvec.h:18
wimax-channel.h
wimax-phy.h
src
wimax
model
simple-ofdm-send-param.h
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0