24 #include "ns3/string.h" 
   25 #include <ns3/simulator.h> 
   35   : m_dlRxFirstWrite (true),
 
   36     m_ulRxFirstWrite (true)
 
   52     .AddConstructor<PhyRxStatsCalculator> ()
 
   53     .AddAttribute (
"DlRxOutputFilename",
 
   54                    "Name of the file where the downlink results will be saved.",
 
   58     .AddAttribute (
"UlRxOutputFilename",
 
   59                    "Name of the file where the uplink results will be saved.",
 
   97   std::ofstream outFile;
 
  101       if (!outFile.is_open ())
 
  107       outFile << 
"% time\tcellId\tIMSI\tRNTI\ttxMode\tlayer\tmcs\tsize\trv\tndi\tcorrect";
 
  108       outFile << std::endl;
 
  113       if (!outFile.is_open ())
 
  122   outFile << (uint32_t) params.
m_cellId << 
"\t";
 
  123   outFile << params.
m_imsi << 
"\t";
 
  124   outFile << params.
m_rnti << 
"\t";
 
  125   outFile << (uint32_t) params.
m_txMode << 
"\t";
 
  126   outFile << (uint32_t) params.
m_layer << 
"\t";
 
  127   outFile << (uint32_t) params.
m_mcs << 
"\t";
 
  128   outFile << params.
m_size << 
"\t";
 
  129   outFile << (uint32_t) params.
m_rv << 
"\t";
 
  130   outFile << (uint32_t) params.
m_ndi << 
"\t";
 
  141   std::ofstream outFile;
 
  145       if (!outFile.is_open ())
 
  151       outFile << 
"% time\tcellId\tIMSI\tRNTI\tlayer\tmcs\tsize\trv\tndi\tcorrect";
 
  152       outFile << std::endl;
 
  157       if (!outFile.is_open ())
 
  166   outFile << (uint32_t) params.
m_cellId << 
"\t";
 
  167   outFile << params.
m_imsi << 
"\t";
 
  168   outFile << params.
m_rnti << 
"\t";
 
  169   outFile << (uint32_t) params.
m_layer << 
"\t";
 
  170   outFile << (uint32_t) params.
m_mcs << 
"\t";
 
  171   outFile << params.
m_size << 
"\t";
 
  172   outFile << (uint32_t) params.
m_rv << 
"\t";
 
  173   outFile << (uint32_t) params.
m_ndi << 
"\t";
 
  184   std::ostringstream pathAndRnti;
 
  185   pathAndRnti << path << 
"/" << params.
m_rnti;
 
  186   if (phyRxStats->ExistsImsiPath (pathAndRnti.str ()) == 
true)
 
  188       imsi = phyRxStats->GetImsiPath (pathAndRnti.str ());
 
  193       phyRxStats->SetImsiPath (pathAndRnti.str (), imsi);
 
  197   phyRxStats->DlPhyReception (params);
 
  206   std::ostringstream pathAndRnti;
 
  207   pathAndRnti << path << 
"/" << params.
m_rnti;
 
  208   if (phyRxStats->ExistsImsiPath (pathAndRnti.str ()) == 
true)
 
  210       imsi = phyRxStats->GetImsiPath (pathAndRnti.str ());
 
  215       phyRxStats->SetImsiPath (pathAndRnti.str (), imsi);
 
  219   phyRxStats->UlPhyReception (params);
 
smart pointer class similar to boost::intrusive_ptr 
 
#define NS_LOG_FUNCTION(parameters)
 
hold variables of type string 
 
void DlPhyReception(PhyReceptionStatParameters params)
 
std::string GetUlRxOutputFilename(void)
 
void SetUlOutputFilename(std::string outputFilename)
 
virtual ~PhyRxStatsCalculator()
 
static uint64_t FindImsiForEnb(std::string path, uint16_t rnti)
 
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
 
void UlPhyReception(PhyReceptionStatParameters params)
 
std::string GetUlOutputFilename(void)
 
void SetDlOutputFilename(std::string outputFilename)
 
static uint64_t FindImsiForUe(std::string path, uint16_t rnti)
 
static void DlPhyReceptionCallback(Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
 
static void UlPhyReceptionCallback(Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
 
NS_LOG_COMPONENT_DEFINE("PacketLossCounter")
 
std::string GetDlRxOutputFilename(void)
 
#define NS_LOG_ERROR(msg)
 
void SetUlRxOutputFilename(std::string outputFilename)
 
void SetDlRxOutputFilename(std::string outputFilename)
 
static TypeId GetTypeId(void)
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
 
std::string GetDlOutputFilename(void)