A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
phy-rx-stats-calculator.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Jaume Nin <jnin@cttc.es>
19
* modified by: Marco Miozzo <mmiozzo@cttc.es>
20
* Convert MacStatsCalculator in PhyRxStatsCalculator
21
*/
22
23
#ifndef PHY_RX_STATS_CALCULATOR_H_
24
#define PHY_RX_STATS_CALCULATOR_H_
25
26
#include "ns3/lte-stats-calculator.h"
27
#include "ns3/nstime.h"
28
#include "ns3/uinteger.h"
29
#include <string>
30
#include <fstream>
31
#include <ns3/lte-common.h>
32
33
namespace
ns3 {
34
48
class
PhyRxStatsCalculator
:
public
LteStatsCalculator
49
{
50
public
:
54
PhyRxStatsCalculator
();
55
59
virtual
~PhyRxStatsCalculator
();
60
61
// Inherited from ns3::Object
62
static
TypeId
GetTypeId
(
void
);
63
69
void
SetUlRxOutputFilename
(std::string outputFilename);
70
75
std::string
GetUlRxOutputFilename
(
void
);
76
82
void
SetDlRxOutputFilename
(std::string outputFilename);
83
88
std::string
GetDlRxOutputFilename
(
void
);
89
94
void
DlPhyReception
(
PhyReceptionStatParameters
params);
95
100
void
UlPhyReception
(
PhyReceptionStatParameters
params);
101
109
static
void
DlPhyReceptionCallback
(
Ptr<PhyRxStatsCalculator>
phyRxStats,
110
std::string path,
PhyReceptionStatParameters
params);
111
119
static
void
UlPhyReceptionCallback
(
Ptr<PhyRxStatsCalculator>
phyRxStats,
120
std::string path,
PhyReceptionStatParameters
params);
121
private
:
122
123
bool
m_dlRxFirstWrite
;
124
bool
m_ulRxFirstWrite
;
125
126
};
127
128
}
// namespace ns3
129
130
#endif
/* PHY_RX_STATS_CALCULATOR_H_ */
ns3::LteStatsCalculator
Doxygen introspection did not find any typical Config paths.
Definition:
lte-stats-calculator.h:30
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::PhyRxStatsCalculator::m_dlRxFirstWrite
bool m_dlRxFirstWrite
Definition:
phy-rx-stats-calculator.h:123
ns3::PhyRxStatsCalculator::DlPhyReception
void DlPhyReception(PhyReceptionStatParameters params)
Notifies the stats calculator that an downlink reception has occurred.
Definition:
phy-rx-stats-calculator.cc:94
ns3::PhyRxStatsCalculator::GetUlRxOutputFilename
std::string GetUlRxOutputFilename(void)
Get the name of the file where the UL RX PHY statistics will be stored.
Definition:
phy-rx-stats-calculator.cc:76
ns3::PhyRxStatsCalculator::~PhyRxStatsCalculator
virtual ~PhyRxStatsCalculator()
Destructor.
Definition:
phy-rx-stats-calculator.cc:44
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::PhyReceptionStatParameters
Definition:
lte-common.h:133
ns3::PhyRxStatsCalculator::PhyRxStatsCalculator
PhyRxStatsCalculator()
Constructor.
Definition:
phy-rx-stats-calculator.cc:36
ns3::PhyRxStatsCalculator::DlPhyReceptionCallback
static void DlPhyReceptionCallback(Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
trace sink
Definition:
phy-rx-stats-calculator.cc:181
ns3::PhyRxStatsCalculator::UlPhyReceptionCallback
static void UlPhyReceptionCallback(Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
trace sink
Definition:
phy-rx-stats-calculator.cc:203
ns3::PhyRxStatsCalculator::GetDlRxOutputFilename
std::string GetDlRxOutputFilename(void)
Get the name of the file where the DL RX PHY statistics will be stored.
Definition:
phy-rx-stats-calculator.cc:88
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:70
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:82
ns3::PhyRxStatsCalculator::GetTypeId
static TypeId GetTypeId(void)
Definition:
phy-rx-stats-calculator.cc:50
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::PhyRxStatsCalculator::m_ulRxFirstWrite
bool m_ulRxFirstWrite
Definition:
phy-rx-stats-calculator.h:124
ns3::PhyRxStatsCalculator
Takes care of storing the information generated at PHY layer regarding reception. ...
Definition:
phy-rx-stats-calculator.h:48
src
lte
helper
phy-rx-stats-calculator.h
Generated on Sat Apr 19 2014 14:06:58 for ns-3 by
1.8.6