A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
lte-stats-calculator.h
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 LTE_STATS_CALCULATOR_H_
22 #define LTE_STATS_CALCULATOR_H_
23 
24 #include "ns3/object.h"
25 #include "ns3/string.h"
26 #include <map>
27 
28 namespace ns3 {
29 
30 class LteStatsCalculator : public Object
31 {
32 public:
37 
41  virtual ~LteStatsCalculator ();
42 
43  static TypeId GetTypeId (void);
44 
50  void SetUlOutputFilename (std::string outputFilename);
51 
55  std::string GetUlOutputFilename (void);
56 
62  void SetDlOutputFilename (std::string outputFilename);
63 
67  std::string GetDlOutputFilename (void);
68 
73  bool ExistsImsiPath (std::string path);
74 
80  void SetImsiPath (std::string path, uint64_t imsi);
81 
86  uint64_t GetImsiPath (std::string path);
87 
92  bool ExistsCellIdPath (std::string path);
93 
99  void SetCellIdPath (std::string path, uint16_t cellId);
100 
105  uint16_t GetCellIdPath (std::string path);
106 
107 private:
108 
109  std::map<std::string, uint64_t> m_pathImsiMap;
110  std::map<std::string, uint16_t> m_pathCellIdMap;
111 
112  std::string m_dlOutputFilename;
113  std::string m_ulOutputFilename;
114 };
115 
116 } // namespace ns3
117 
118 #endif /* LTE_STATS_CALCULATOR_H_ */
void SetCellIdPath(std::string path, uint16_t cellId)
void SetUlOutputFilename(std::string outputFilename)
std::string GetUlOutputFilename(void)
bool ExistsCellIdPath(std::string path)
void SetDlOutputFilename(std::string outputFilename)
uint16_t GetCellIdPath(std::string path)
uint64_t GetImsiPath(std::string path)
void SetImsiPath(std::string path, uint64_t imsi)
a base class which provides memory management and object aggregation
Definition: object.h:63
a unique identifier for an interface.
Definition: type-id.h:44
bool ExistsImsiPath(std::string path)
std::string GetDlOutputFilename(void)