A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
phy-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  */
20 
21 #ifndef PHY_STATS_CALCULATOR_H_
22 #define PHY_STATS_CALCULATOR_H_
23 
24 #include "ns3/lte-stats-calculator.h"
25 #include "ns3/nstime.h"
26 #include "ns3/uinteger.h"
27 #include "ns3/spectrum-value.h"
28 #include <string>
29 #include <fstream>
30 
31 namespace ns3 {
32 
54 {
55 public:
60 
64  virtual ~PhyStatsCalculator ();
65 
66  // Inherited from ns3::Object
67  static TypeId GetTypeId (void);
68 
74  void SetCurrentCellRsrpSinrFilename (std::string filename);
75 
80  std::string GetCurrentCellRsrpSinrFilename (void);
81 
87  void SetUeSinrFilename (std::string filename);
88 
93  std::string GetUeSinrFilename (void);
94 
100  void SetInterferenceFilename (std::string filename);
101 
106  std::string GetInterferenceFilename (void);
107 
115  void ReportCurrentCellRsrpSinr (uint16_t cellId, uint64_t imsi, uint16_t rnti, double rsrp, double sinr);
116 
124  void ReportUeSinr (uint16_t cellId, uint64_t imsi, uint16_t rnti, double sinrLinear);
130  void ReportInterference (uint16_t cellId, Ptr<SpectrumValue> interference);
131 
143  std::string path, uint16_t cellId, uint16_t rnti,
144  double rsrp, double sinr);
145 
155  static void ReportUeSinr (Ptr<PhyStatsCalculator> phyStats, std::string path,
156  uint16_t cellId, uint16_t rnti, double sinrLinear);
157 
166  static void ReportInterference (Ptr<PhyStatsCalculator> phyStats, std::string path,
167  uint16_t cellId, Ptr<SpectrumValue> interference);
168 
169 
170 private:
174 
175  std::string m_RsrpSinrFilename;
176  std::string m_ueSinrFilename;
178 
179 };
180 
181 } // namespace ns3
182 
183 #endif /* PHY_STATS_CALCULATOR_H_ */
Doxygen introspection did not find any typical Config paths.
std::string GetInterferenceFilename(void)
Get the name of the file where the interference statistics will be stored.
void ReportUeSinr(uint16_t cellId, uint64_t imsi, uint16_t rnti, double sinrLinear)
Notifies the stats calculator that an UE SINR report has occurred.
void SetCurrentCellRsrpSinrFilename(std::string filename)
Set the name of the file where the RSRP/SINR statistics will be stored.
static TypeId GetTypeId(void)
static void ReportCurrentCellRsrpSinrCallback(Ptr< PhyStatsCalculator > phyStats, std::string path, uint16_t cellId, uint16_t rnti, double rsrp, double sinr)
trace sink
void SetUeSinrFilename(std::string filename)
Set the name of the file where the UE SINR statistics will be stored.
Takes care of storing the information generated at PHY layer.
virtual ~PhyStatsCalculator()
Destructor.
void SetInterferenceFilename(std::string filename)
Set the name of the file where the interference statistics will be stored.
std::string GetUeSinrFilename(void)
Get the name of the file where the UE SINR statistics will be stored.
void ReportInterference(uint16_t cellId, Ptr< SpectrumValue > interference)
Notifies the stats calculator that an interference report has occurred.
a unique identifier for an interface.
Definition: type-id.h:49
std::string GetCurrentCellRsrpSinrFilename(void)
Get the name of the file where the RSRP/SINR statistics will be stored.
void ReportCurrentCellRsrpSinr(uint16_t cellId, uint64_t imsi, uint16_t rnti, double rsrp, double sinr)
Notifies the stats calculator that an RSRP and SINR report has occurred.