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