The RoutingStats class manages collects statistics on routing data (application-data packet and byte counts) for the vehicular network. More...
Public Member Functions | |
| RoutingStats () | |
| Constructor. More... | |
| uint32_t | GetCumulativeRxBytes () |
| Returns the cumulative number of bytes received. More... | |
| uint32_t | GetCumulativeRxPkts () |
| Returns the cumulative count of packets received. More... | |
| uint32_t | GetCumulativeTxBytes () |
| Returns the cumulative number of bytes transmitted. More... | |
| uint32_t | GetCumulativeTxPkts () |
| Returns the cumulative number of packets transmitted. More... | |
| uint32_t | GetRxBytes () |
| Returns the number of bytes received. More... | |
| uint32_t | GetRxPkts () |
| Returns the count of packets received. More... | |
| uint32_t | GetTxBytes () |
| Returns the number of bytes transmitted. More... | |
| uint32_t | GetTxPkts () |
| Returns the number of packets transmitted. More... | |
| void | IncRxBytes (uint32_t rxBytes) |
| Increments the number of (application-data) bytes received, not including MAC/PHY overhead. More... | |
| void | IncRxPkts () |
| Increments the count of packets received. More... | |
| void | IncTxBytes (uint32_t txBytes) |
| Increment the number of bytes transmitted. More... | |
| void | IncTxPkts () |
| Increment the count of packets transmitted. More... | |
| void | SetRxBytes (uint32_t rxBytes) |
| Sets the number of bytes received. More... | |
| void | SetRxPkts (uint32_t rxPkts) |
| Sets the number of packets received. More... | |
| void | SetTxBytes (uint32_t txBytes) |
| Sets the number of bytes transmitted. More... | |
| void | SetTxPkts (uint32_t txPkts) |
| Sets the number of packets transmitted. More... | |
Private Attributes | |
| uint32_t | m_cumulativeRxBytes |
| uint32_t | m_cumulativeRxPkts |
| uint32_t | m_cumulativeTxBytes |
| uint32_t | m_cumulativeTxPkts |
| uint32_t | m_RxBytes |
| uint32_t | m_RxPkts |
| uint32_t | m_TxBytes |
| uint32_t | m_TxPkts |
The RoutingStats class manages collects statistics on routing data (application-data packet and byte counts) for the vehicular network.
Definition at line 136 of file vanet-routing-compare.cc.
| RoutingStats::RoutingStats | ( | ) |
| uint32_t RoutingStats::GetCumulativeRxBytes | ( | ) |
Returns the cumulative number of bytes received.
Definition at line 275 of file vanet-routing-compare.cc.
References m_cumulativeRxBytes.
Referenced by VanetRoutingExperiment::ProcessOutputs().
Here is the caller graph for this function:| uint32_t RoutingStats::GetCumulativeRxPkts | ( | ) |
Returns the cumulative count of packets received.
Definition at line 287 of file vanet-routing-compare.cc.
References m_cumulativeRxPkts.
| uint32_t RoutingStats::GetCumulativeTxBytes | ( | ) |
Returns the cumulative number of bytes transmitted.
| socket | the receiving socket |
Definition at line 325 of file vanet-routing-compare.cc.
References m_cumulativeTxBytes.
Referenced by VanetRoutingExperiment::CheckThroughput(), and VanetRoutingExperiment::ProcessOutputs().
Here is the caller graph for this function:| uint32_t RoutingStats::GetCumulativeTxPkts | ( | ) |
Returns the cumulative number of packets transmitted.
Definition at line 337 of file vanet-routing-compare.cc.
References m_cumulativeTxPkts.
| uint32_t RoutingStats::GetRxBytes | ( | void | ) |
Returns the number of bytes received.
Definition at line 269 of file vanet-routing-compare.cc.
References m_RxBytes.
Referenced by VanetRoutingExperiment::CheckThroughput().
Here is the caller graph for this function:| uint32_t RoutingStats::GetRxPkts | ( | ) |
Returns the count of packets received.
Definition at line 281 of file vanet-routing-compare.cc.
References m_RxPkts.
Referenced by VanetRoutingExperiment::CheckThroughput().
Here is the caller graph for this function:| uint32_t RoutingStats::GetTxBytes | ( | void | ) |
Returns the number of bytes transmitted.
Definition at line 319 of file vanet-routing-compare.cc.
References m_TxBytes.
| uint32_t RoutingStats::GetTxPkts | ( | ) |
Returns the number of packets transmitted.
Definition at line 331 of file vanet-routing-compare.cc.
References m_TxPkts.
| void RoutingStats::IncRxBytes | ( | uint32_t | rxBytes | ) |
Increments the number of (application-data) bytes received, not including MAC/PHY overhead.
| rxBytes | the number of bytes received |
Definition at line 293 of file vanet-routing-compare.cc.
References m_cumulativeRxBytes, and m_RxBytes.
Referenced by RoutingHelper::ReceiveRoutingPacket().
Here is the caller graph for this function:| void RoutingStats::IncRxPkts | ( | ) |
Increments the count of packets received.
Definition at line 300 of file vanet-routing-compare.cc.
References m_cumulativeRxPkts, and m_RxPkts.
Referenced by RoutingHelper::ReceiveRoutingPacket().
Here is the caller graph for this function:| void RoutingStats::IncTxBytes | ( | uint32_t | txBytes | ) |
Increment the number of bytes transmitted.
| txBytes | the number of addtional bytes transmitted |
Definition at line 343 of file vanet-routing-compare.cc.
References m_cumulativeTxBytes, and m_TxBytes.
Referenced by RoutingHelper::OnOffTrace().
Here is the caller graph for this function:| void RoutingStats::IncTxPkts | ( | ) |
Increment the count of packets transmitted.
Definition at line 350 of file vanet-routing-compare.cc.
References m_cumulativeTxPkts, and m_TxPkts.
| void RoutingStats::SetRxBytes | ( | uint32_t | rxBytes | ) |
Sets the number of bytes received.
| rxBytes | the number of bytes received |
Definition at line 307 of file vanet-routing-compare.cc.
References m_RxBytes.
Referenced by VanetRoutingExperiment::CheckThroughput().
Here is the caller graph for this function:| void RoutingStats::SetRxPkts | ( | uint32_t | rxPkts | ) |
Sets the number of packets received.
| rxPkts | the number of packets received |
Definition at line 313 of file vanet-routing-compare.cc.
References m_RxPkts.
Referenced by VanetRoutingExperiment::CheckThroughput().
Here is the caller graph for this function:| void RoutingStats::SetTxBytes | ( | uint32_t | txBytes | ) |
Sets the number of bytes transmitted.
| txBytes | the number of bytes transmitted |
Definition at line 357 of file vanet-routing-compare.cc.
References m_TxBytes.
| void RoutingStats::SetTxPkts | ( | uint32_t | txPkts | ) |
Sets the number of packets transmitted.
| txPkts | the number of packets transmitted |
Definition at line 363 of file vanet-routing-compare.cc.
References m_TxPkts.
|
private |
Definition at line 251 of file vanet-routing-compare.cc.
Referenced by GetCumulativeRxBytes(), and IncRxBytes().
|
private |
Definition at line 253 of file vanet-routing-compare.cc.
Referenced by GetCumulativeRxPkts(), and IncRxPkts().
|
private |
Definition at line 255 of file vanet-routing-compare.cc.
Referenced by GetCumulativeTxBytes(), and IncTxBytes().
|
private |
Definition at line 257 of file vanet-routing-compare.cc.
Referenced by GetCumulativeTxPkts(), and IncTxPkts().
|
private |
Definition at line 250 of file vanet-routing-compare.cc.
Referenced by GetRxBytes(), IncRxBytes(), and SetRxBytes().
|
private |
Definition at line 252 of file vanet-routing-compare.cc.
Referenced by GetRxPkts(), IncRxPkts(), and SetRxPkts().
|
private |
Definition at line 254 of file vanet-routing-compare.cc.
Referenced by GetTxBytes(), IncTxBytes(), and SetTxBytes().
|
private |
Definition at line 256 of file vanet-routing-compare.cc.
Referenced by GetTxPkts(), IncTxPkts(), and SetTxPkts().