A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
phy-tx-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 PhyTxStatsCalculator
21  */
22 
23 #ifndef PHY_TX_STATS_CALCULATOR_H_
24 #define PHY_TX_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 
35 
36 
51 {
52 public:
57 
61  virtual ~PhyTxStatsCalculator ();
62 
63  // Inherited from ns3::Object
64  static TypeId GetTypeId (void);
65 
71  void SetUlTxOutputFilename (std::string outputFilename);
72 
77  std::string GetUlTxOutputFilename (void);
78 
84  void SetDlTxOutputFilename (std::string outputFilename);
85 
90  std::string GetDlTxOutputFilename (void);
91 
97 
103 
104 
113  std::string path, PhyTransmissionStatParameters params);
114 
123  std::string path, PhyTransmissionStatParameters params);
124 
125 private:
126 
129 
130 };
131 
132 } // namespace ns3
133 
134 #endif /* PHY_TX_STATS_CALCULATOR_H_ */
Doxygen introspection did not find any typical Config paths.
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:60
void SetDlTxOutputFilename(std::string outputFilename)
Set the name of the file where the DL TX PHY statistics will be stored.
std::string GetDlTxOutputFilename(void)
Get the name of the file where the DL TX PHY statistics will be stored.
void DlPhyTransmission(PhyTransmissionStatParameters params)
Notifies the stats calculator that an downlink trasmission has occurred.
std::string GetUlTxOutputFilename(void)
Get the name of the file where the UL RX PHY statistics will be stored.
Takes care of storing the information generated at PHY layer regarding transmission.
static void DlPhyTransmissionCallback(Ptr< PhyTxStatsCalculator > phyTxStats, std::string path, PhyTransmissionStatParameters params)
trace sink
virtual ~PhyTxStatsCalculator()
Destructor.
static void UlPhyTransmissionCallback(Ptr< PhyTxStatsCalculator > phyTxStats, std::string path, PhyTransmissionStatParameters params)
trace sink
void SetUlTxOutputFilename(std::string outputFilename)
Set the name of the file where the UL Tx PHY statistics will be stored.
a unique identifier for an interface.
Definition: type-id.h:49
void UlPhyTransmission(PhyTransmissionStatParameters params)
Notifies the stats calculator that an uplink trasmission has occurred.