A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
phy-tx-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 PhyTxStatsCalculator
20
*/
21
22
#ifndef PHY_TX_STATS_CALCULATOR_H_
23
#define PHY_TX_STATS_CALCULATOR_H_
24
25
#include "ns3/lte-stats-calculator.h"
26
#include "ns3/nstime.h"
27
#include "ns3/uinteger.h"
28
#include <ns3/lte-common.h>
29
30
#include <fstream>
31
#include <string>
32
33
namespace
ns3
34
{
35
51
class
PhyTxStatsCalculator
:
public
LteStatsCalculator
52
{
53
public
:
57
PhyTxStatsCalculator
();
58
62
~PhyTxStatsCalculator
()
override
;
63
64
// Inherited from ns3::Object
69
static
TypeId
GetTypeId
();
70
76
void
SetUlTxOutputFilename
(std::string outputFilename);
77
82
std::string
GetUlTxOutputFilename
();
83
89
void
SetDlTxOutputFilename
(std::string outputFilename);
90
95
std::string
GetDlTxOutputFilename
();
96
101
void
DlPhyTransmission
(
PhyTransmissionStatParameters
params
);
102
107
void
UlPhyTransmission
(
PhyTransmissionStatParameters
params
);
108
116
static
void
DlPhyTransmissionCallback
(
Ptr<PhyTxStatsCalculator>
phyTxStats,
117
std::string
path
,
118
PhyTransmissionStatParameters
params
);
119
127
static
void
UlPhyTransmissionCallback
(
Ptr<PhyTxStatsCalculator>
phyTxStats,
128
std::string
path
,
129
PhyTransmissionStatParameters
params
);
130
131
private
:
138
bool
m_dlTxFirstWrite
;
139
146
bool
m_ulTxFirstWrite
;
147
151
std::ofstream
m_dlTxOutFile
;
152
156
std::ofstream
m_ulTxOutFile
;
157
};
158
159
}
// namespace ns3
160
161
#endif
/* PHY_TX_STATS_CALCULATOR_H_ */
ns3::LteStatsCalculator
Base class for ***StatsCalculator classes.
Definition:
lte-stats-calculator.h:40
ns3::PhyTxStatsCalculator
Takes care of storing the information generated at PHY layer regarding transmission.
Definition:
phy-tx-stats-calculator.h:52
ns3::PhyTxStatsCalculator::m_ulTxFirstWrite
bool m_ulTxFirstWrite
When writing UL TX PHY statistics first time to file, columns description is added.
Definition:
phy-tx-stats-calculator.h:146
ns3::PhyTxStatsCalculator::SetDlTxOutputFilename
void SetDlTxOutputFilename(std::string outputFilename)
Set the name of the file where the DL TX PHY statistics will be stored.
Definition:
phy-tx-stats-calculator.cc:90
ns3::PhyTxStatsCalculator::SetUlTxOutputFilename
void SetUlTxOutputFilename(std::string outputFilename)
Set the name of the file where the UL Tx PHY statistics will be stored.
Definition:
phy-tx-stats-calculator.cc:78
ns3::PhyTxStatsCalculator::m_dlTxFirstWrite
bool m_dlTxFirstWrite
When writing DL TX PHY statistics first time to file, columns description is added.
Definition:
phy-tx-stats-calculator.h:138
ns3::PhyTxStatsCalculator::DlPhyTransmissionCallback
static void DlPhyTransmissionCallback(Ptr< PhyTxStatsCalculator > phyTxStats, std::string path, PhyTransmissionStatParameters params)
trace sink
Definition:
phy-tx-stats-calculator.cc:171
ns3::PhyTxStatsCalculator::PhyTxStatsCalculator
PhyTxStatsCalculator()
Constructor.
Definition:
phy-tx-stats-calculator.cc:35
ns3::PhyTxStatsCalculator::m_ulTxOutFile
std::ofstream m_ulTxOutFile
UL TX PHY statistics output trace file.
Definition:
phy-tx-stats-calculator.h:156
ns3::PhyTxStatsCalculator::DlPhyTransmission
void DlPhyTransmission(PhyTransmissionStatParameters params)
Notifies the stats calculator that an downlink transmission has occurred.
Definition:
phy-tx-stats-calculator.cc:102
ns3::PhyTxStatsCalculator::GetDlTxOutputFilename
std::string GetDlTxOutputFilename()
Get the name of the file where the DL TX PHY statistics will be stored.
Definition:
phy-tx-stats-calculator.cc:96
ns3::PhyTxStatsCalculator::m_dlTxOutFile
std::ofstream m_dlTxOutFile
DL TX PHY statistics output trace file.
Definition:
phy-tx-stats-calculator.h:151
ns3::PhyTxStatsCalculator::UlPhyTransmission
void UlPhyTransmission(PhyTransmissionStatParameters params)
Notifies the stats calculator that an uplink transmission has occurred.
Definition:
phy-tx-stats-calculator.cc:136
ns3::PhyTxStatsCalculator::GetUlTxOutputFilename
std::string GetUlTxOutputFilename()
Get the name of the file where the UL RX PHY statistics will be stored.
Definition:
phy-tx-stats-calculator.cc:84
ns3::PhyTxStatsCalculator::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition:
phy-tx-stats-calculator.cc:57
ns3::PhyTxStatsCalculator::UlPhyTransmissionCallback
static void UlPhyTransmissionCallback(Ptr< PhyTxStatsCalculator > phyTxStats, std::string path, PhyTransmissionStatParameters params)
trace sink
Definition:
phy-tx-stats-calculator.cc:195
ns3::PhyTxStatsCalculator::~PhyTxStatsCalculator
~PhyTxStatsCalculator() override
Destructor.
Definition:
phy-tx-stats-calculator.cc:42
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
check-style-clang-format.path
path
Definition:
check-style-clang-format.py:679
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:468
ns3::PhyTransmissionStatParameters
PhyTransmissionStatParameters structure.
Definition:
lte-common.h:182
src
lte
helper
phy-tx-stats-calculator.h
Generated on Fri Mar 31 2023 13:30:44 for ns-3 by
1.9.1