A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
phy-rx-stats-calculator.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Jaume Nin <jnin@cttc.es>
18
* modified by: Marco Miozzo <mmiozzo@cttc.es>
19
* Convert MacStatsCalculator in PhyRxStatsCalculator
20
*/
21
22
#ifndef PHY_RX_STATS_CALCULATOR_H_
23
#define PHY_RX_STATS_CALCULATOR_H_
24
25
#include "
lte-stats-calculator.h
"
26
27
#include "ns3/nstime.h"
28
#include "ns3/uinteger.h"
29
#include <ns3/lte-common.h>
30
31
#include <fstream>
32
#include <string>
33
34
namespace
ns3
35
{
36
52
class
PhyRxStatsCalculator
:
public
LteStatsCalculator
53
{
54
public
:
58
PhyRxStatsCalculator
();
59
63
~PhyRxStatsCalculator
()
override
;
64
65
// Inherited from ns3::Object
70
static
TypeId
GetTypeId
();
71
77
void
SetUlRxOutputFilename
(std::string outputFilename);
78
83
std::string
GetUlRxOutputFilename
();
84
90
void
SetDlRxOutputFilename
(std::string outputFilename);
91
96
std::string
GetDlRxOutputFilename
();
97
102
void
DlPhyReception
(
PhyReceptionStatParameters
params
);
103
108
void
UlPhyReception
(
PhyReceptionStatParameters
params
);
109
117
static
void
DlPhyReceptionCallback
(
Ptr<PhyRxStatsCalculator>
phyRxStats,
118
std::string path,
119
PhyReceptionStatParameters
params
);
120
128
static
void
UlPhyReceptionCallback
(
Ptr<PhyRxStatsCalculator>
phyRxStats,
129
std::string path,
130
PhyReceptionStatParameters
params
);
131
132
private
:
139
bool
m_dlRxFirstWrite
;
140
147
bool
m_ulRxFirstWrite
;
148
152
std::ofstream
m_dlRxOutFile
;
153
157
std::ofstream
m_ulRxOutFile
;
158
};
159
160
}
// namespace ns3
161
162
#endif
/* PHY_RX_STATS_CALCULATOR_H_ */
ns3::LteStatsCalculator
Base class for ***StatsCalculator classes.
Definition:
lte-stats-calculator.h:40
ns3::PhyRxStatsCalculator
Takes care of storing the information generated at PHY layer regarding reception.
Definition:
phy-rx-stats-calculator.h:53
ns3::PhyRxStatsCalculator::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition:
phy-rx-stats-calculator.cc:57
ns3::PhyRxStatsCalculator::m_dlRxFirstWrite
bool m_dlRxFirstWrite
When writing DL RX PHY statistics first time to file, columns description is added.
Definition:
phy-rx-stats-calculator.h:139
ns3::PhyRxStatsCalculator::m_ulRxOutFile
std::ofstream m_ulRxOutFile
UL RX PHY output trace file.
Definition:
phy-rx-stats-calculator.h:157
ns3::PhyRxStatsCalculator::PhyRxStatsCalculator
PhyRxStatsCalculator()
Constructor.
Definition:
phy-rx-stats-calculator.cc:35
ns3::PhyRxStatsCalculator::m_ulRxFirstWrite
bool m_ulRxFirstWrite
When writing UL RX PHY statistics first time to file, columns description is added.
Definition:
phy-rx-stats-calculator.h:147
ns3::PhyRxStatsCalculator::UlPhyReceptionCallback
static void UlPhyReceptionCallback(Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
trace sink
Definition:
phy-rx-stats-calculator.cc:196
ns3::PhyRxStatsCalculator::GetUlRxOutputFilename
std::string GetUlRxOutputFilename()
Get the name of the file where the UL RX PHY statistics will be stored.
Definition:
phy-rx-stats-calculator.cc:84
ns3::PhyRxStatsCalculator::DlPhyReception
void DlPhyReception(PhyReceptionStatParameters params)
Notifies the stats calculator that an downlink reception has occurred.
Definition:
phy-rx-stats-calculator.cc:102
ns3::PhyRxStatsCalculator::SetDlRxOutputFilename
void SetDlRxOutputFilename(std::string outputFilename)
Set the name of the file where the DL RX PHY statistics will be stored.
Definition:
phy-rx-stats-calculator.cc:90
ns3::PhyRxStatsCalculator::GetDlRxOutputFilename
std::string GetDlRxOutputFilename()
Get the name of the file where the DL RX PHY statistics will be stored.
Definition:
phy-rx-stats-calculator.cc:96
ns3::PhyRxStatsCalculator::~PhyRxStatsCalculator
~PhyRxStatsCalculator() override
Destructor.
Definition:
phy-rx-stats-calculator.cc:42
ns3::PhyRxStatsCalculator::DlPhyReceptionCallback
static void DlPhyReceptionCallback(Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
trace sink
Definition:
phy-rx-stats-calculator.cc:172
ns3::PhyRxStatsCalculator::UlPhyReception
void UlPhyReception(PhyReceptionStatParameters params)
Notifies the stats calculator that an uplink reception has occurred.
Definition:
phy-rx-stats-calculator.cc:138
ns3::PhyRxStatsCalculator::SetUlRxOutputFilename
void SetUlRxOutputFilename(std::string outputFilename)
Set the name of the file where the UL Rx PHY statistics will be stored.
Definition:
phy-rx-stats-calculator.cc:78
ns3::PhyRxStatsCalculator::m_dlRxOutFile
std::ofstream m_dlRxOutFile
DL RX PHY output trace file.
Definition:
phy-rx-stats-calculator.h:152
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
lte-stats-calculator.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.params
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.
Definition:
two-ray-to-three-gpp-ch-calibration.py:514
ns3::PhyReceptionStatParameters
PhyReceptionStatParameters structure.
Definition:
lte-common.h:212
src
lte
helper
phy-rx-stats-calculator.h
Generated on Sun Mar 3 2024 17:11:01 for ns-3 by
1.9.1