21 #ifndef MAC_STATS_CALCULATOR_H_
22 #define MAC_STATS_CALCULATOR_H_
24 #include "ns3/lte-stats-calculator.h"
25 #include "ns3/nstime.h"
26 #include "ns3/uinteger.h"
103 void DlScheduling (uint16_t cellId, uint64_t imsi, uint32_t frameNo, uint32_t subframeNo,
104 uint16_t rnti, uint8_t mcsTb1, uint16_t sizeTb1, uint8_t mcsTb2, uint16_t sizeTb2);
116 void UlScheduling (uint16_t cellId, uint64_t imsi,uint32_t frameNo, uint32_t subframeNo,
117 uint16_t rnti, uint8_t mcsTb, uint16_t sizeTb);
134 std::string path, uint32_t frameNo, uint32_t subframeNo,
135 uint16_t rnti, uint8_t mcsTb1, uint16_t sizeTb1,
136 uint8_t mcsTb2, uint16_t sizeTb2);
150 uint32_t frameNo, uint32_t subframeNo, uint16_t rnti,
151 uint8_t mcs, uint16_t size);
Base class for ***StatsCalculator classes.
Smart pointer class similar to boost::intrusive_ptr.
static void DlSchedulingCallback(Ptr< MacStatsCalculator > macStats, std::string path, uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcsTb1, uint16_t sizeTb1, uint8_t mcsTb2, uint16_t sizeTb2)
Trace sink for the ns3::LteEnbMac::DlScheduling trace source.
Takes care of storing the information generated at MAC layer.
MacStatsCalculator()
Constructor.
bool m_ulFirstWrite
When writing UL MAC statistics first time to file, columns description is added.
void SetDlOutputFilename(std::string outputFilename)
Set the name of the file where the downlink statistics will be stored.
static TypeId GetTypeId(void)
Register this type.
void DlScheduling(uint16_t cellId, uint64_t imsi, uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcsTb1, uint16_t sizeTb1, uint8_t mcsTb2, uint16_t sizeTb2)
Notifies the stats calculator that an downlink scheduling has occurred.
std::string GetDlOutputFilename(void)
Get the name of the file where the downlink statistics will be stored.
bool m_dlFirstWrite
When writing DL MAC statistics first time to file, columns description is added.
static void UlSchedulingCallback(Ptr< MacStatsCalculator > macStats, std::string path, uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t size)
Trace sink for the ns3::LteEnbMac::UlScheduling trace source.
std::string GetUlOutputFilename(void)
Get the name of the file where the uplink statistics will be stored.
void UlScheduling(uint16_t cellId, uint64_t imsi, uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcsTb, uint16_t sizeTb)
Notifies the stats calculator that an uplink scheduling has occurred.
virtual ~MacStatsCalculator()
Destructor.
a unique identifier for an interface.
void SetUlOutputFilename(std::string outputFilename)
Set the name of the file where the uplink statistics will be stored.