#include <mac-stats-calculator.h>
Inheritance diagram for ns3::MacStatsCalculator:Public Member Functions | |
| MacStatsCalculator () | |
| virtual | ~MacStatsCalculator () |
| 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) |
| std::string | GetDlOutputFilename (void) |
| std::string | GetUlOutputFilename (void) |
| void | SetDlOutputFilename (std::string outputFilename) |
| void | SetUlOutputFilename (std::string outputFilename) |
| void | UlScheduling (uint16_t cellId, uint64_t imsi, uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t sizeTb) |
Public Member Functions inherited from ns3::LteStatsCalculator | |
| LteStatsCalculator () | |
| virtual | ~LteStatsCalculator () |
| bool | ExistsCellIdPath (std::string path) |
| bool | ExistsImsiPath (std::string path) |
| uint16_t | GetCellIdPath (std::string path) |
| std::string | GetDlOutputFilename (void) |
| uint64_t | GetImsiPath (std::string path) |
| std::string | GetUlOutputFilename (void) |
| void | SetCellIdPath (std::string path, uint16_t cellId) |
| void | SetDlOutputFilename (std::string outputFilename) |
| void | SetImsiPath (std::string path, uint64_t imsi) |
| void | SetUlOutputFilename (std::string outputFilename) |
Public Member Functions inherited from ns3::Object | |
| void | AggregateObject (Ptr< Object > other) |
| void | Dispose (void) |
| AggregateIterator | GetAggregateIterator (void) const |
| virtual TypeId | GetInstanceTypeId (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| void | Initialize (void) |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount (const SimpleRefCount &o) | |
| uint32_t | GetReferenceCount (void) const |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| void | Ref (void) const |
| void | Unref (void) const |
Public Member Functions inherited from ns3::ObjectBase | |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::LteStatsCalculator | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::Object | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| static void | Cleanup (void) |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId (void) |
Private Attributes | |
| bool | m_dlFirstWrite |
| bool | m_ulFirstWrite |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| virtual void | DoDispose (void) |
| virtual void | DoInitialize (void) |
| virtual void | NotifyNewAggregate (void) |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| virtual void | NotifyConstructionCompleted (void) |
Takes care of storing the information generated at MAC layer. Metrics saved are:
Doxygen introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Definition at line 43 of file mac-stats-calculator.h.
| ns3::MacStatsCalculator::MacStatsCalculator | ( | ) |
|
virtual |
| void ns3::MacStatsCalculator::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.
| cellId | Cell ID of the attached Enb |
| imsi | IMSI of the scheduled UE |
| frameNo | Frame number |
| subframeNo | Subframe number |
| rnti | C-RNTI scheduled |
| mcsTb1 | MCS for transport block 1 |
| sizeTb1 | Size of transport block 1 |
| mcsTb2 | MCS for transport block 2 (0 if not used) |
| sizeTb2 | Size of transport block 2 (0 if not used) |
Definition at line 90 of file mac-stats-calculator.cc.
References GetDlOutputFilename(), ns3::Time::GetNanoSeconds(), ns3::Simulator::Now(), NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.
| std::string ns3::MacStatsCalculator::GetDlOutputFilename | ( | void | ) |
Get the name of the file where the downlink statistics will be stored.
Definition at line 84 of file mac-stats-calculator.cc.
References ns3::LteStatsCalculator::GetDlOutputFilename().
Referenced by DlScheduling().
|
static |
Inherited from ns3::Object
Definition at line 46 of file mac-stats-calculator.cc.
References SetDlOutputFilename(), ns3::TypeId::SetParent(), and SetUlOutputFilename().
| std::string ns3::MacStatsCalculator::GetUlOutputFilename | ( | void | ) |
Get the name of the file where the uplink statistics will be stored.
Definition at line 72 of file mac-stats-calculator.cc.
References ns3::LteStatsCalculator::GetUlOutputFilename().
Referenced by UlScheduling().
| void ns3::MacStatsCalculator::SetDlOutputFilename | ( | std::string | outputFilename | ) |
Set the name of the file where the downlink statistics will be stored.
| outputFilename | string with the name of the file |
Definition at line 78 of file mac-stats-calculator.cc.
References ns3::LteStatsCalculator::SetDlOutputFilename().
Referenced by GetTypeId().
| void ns3::MacStatsCalculator::SetUlOutputFilename | ( | std::string | outputFilename | ) |
Set the name of the file where the uplink statistics will be stored.
| outputFilename | string with the name of the file |
Definition at line 66 of file mac-stats-calculator.cc.
References ns3::LteStatsCalculator::SetUlOutputFilename().
Referenced by GetTypeId().
| void ns3::MacStatsCalculator::UlScheduling | ( | uint16_t | cellId, |
| uint64_t | imsi, | ||
| uint32_t | frameNo, | ||
| uint32_t | subframeNo, | ||
| uint16_t | rnti, | ||
| uint8_t | mcs, | ||
| uint16_t | sizeTb | ||
| ) |
Notifies the stats calculator that an uplink scheduling has occurred.
| cellId | Cell ID of the attached Enb |
| imsi | IMSI of the scheduled UE |
| frameNo | Frame number |
| subframeNo | Subframe number |
| rnti | C-RNTI scheduled |
| mcsTb | MCS for transport block |
| sizeTb | Size of transport block |
Definition at line 133 of file mac-stats-calculator.cc.
References ns3::Time::GetNanoSeconds(), GetUlOutputFilename(), ns3::Simulator::Now(), NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.