|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #include "ns3/wave-bsm-stats.h"
24 #include "ns3/integer.h"
32 : m_wavePktSendCount (0),
33 m_waveByteSendCount (0),
34 m_wavePktReceiveCount (0),
49 .SetGroupName (
"Stats")
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void ResetTotalRxPktCounts(int index)
Resets the count of total packets expected and/or within range(index) that are received.
int GetTxPktCount()
Returns the count of transmitted packets.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void IncRxPktInRangeCount(int index)
Increments the count of actual packets received within the coverage area(index).
std::vector< int > m_waveTotalPktInCoverageReceiveCounts
total packet in coverage receive counts
std::vector< int > m_wavePktExpectedReceiveCounts
packet expected receive counts
int GetLogging()
Gets logging state.
void SetTxPktCount(int count)
Sets the count of packets transmitted.
int GetExpectedRxPktCount(int index)
Returns the count of expected packets received within range(index)
int GetRxPktCount()
Returns the count of packets received.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
static TypeId GetTypeId(void)
Register this type.
std::vector< int > m_waveTotalPktExpectedReceiveCounts
total packet expected receive counts
WaveBsmStats()
Constructor.
The WaveBsmStats class implements a stats collector for IEEE 1609 WAVE (Wireless Access in Vehicular ...
int m_wavePktSendCount
packet sent count
void SetRxPktCount(int count)
Sets the count of packets received.
A base class which provides memory management and object aggregation.
int m_wavePktReceiveCount
packet receive count
void SetRxPktInRangeCount(int index, int count)
Sets the count of packets within range that are received.
void SetLogging(int log)
Enables/disables logging.
void IncRxPktCount()
Increments the count of actual packets received (regardless of coverage area).
double GetCumulativeBsmPdr(int index)
Returns the cumulative BSM Packet Delivery Ratio (PDR) which is the percent of cumulative expected pa...
void IncTxPktCount()
Increments the count of transmitted packets.
void SetExpectedRxPktCount(int index, int count)
Sets the count of packets expected to received.
int GetRxPktInRangeCount(int index)
Increments the count of actual packets received within range(index)
int m_waveByteSendCount
byte sent count
void IncTxByteCount(int bytes)
Increments the count of (application data) bytes transmitted not including MAC/PHY overhead.
int GetTxByteCount()
Returns the count of (application data) bytes transmitted not include MAC/PHY overhead.
void IncExpectedRxPktCount(int index)
Increments the count of (broadcast) packets expected to be received within the coverage area1.
std::vector< int > m_wavePktInCoverageReceiveCounts
packet in ceoverage receive counts
double GetBsmPdr(int index)
Returns the BSM Packet Delivery Ratio (PDR) which is the percent of expected packets within range(ind...