9#ifndef ATHSTATS_HELPER_H
10#define ATHSTATS_HELPER_H
12#include "ns3/nstime.h"
13#include "ns3/object.h"
15#include "ns3/type-id.h"
16#include "ns3/wifi-export.h"
17#include "ns3/wifi-phy-common.h"
18#include "ns3/wifi-phy-state.h"
198 uint8_t txPowerLevel);
216 void Open(
const std::string& name);
void EnableAthstats(std::string filename, uint32_t nodeid, uint32_t deviceid)
Enable athstats.
void TxFinalRtsFailedTrace(std::string context, Mac48Address address)
Function to be called when the transmission of a RTS frame has exceeded the retry limit.
void Open(const std::string &name)
Open a file for output.
static TypeId GetTypeId()
Get the type ID.
void TxFinalDataFailedTrace(std::string context, Mac48Address address)
Function to be called when the transmission of a data frame has exceeded the retry limit.
uint32_t m_txCount
transmit count
std::ofstream * m_writer
output stream
uint32_t m_rxCount
receive count
uint32_t m_shortRetryCount
short retry count
void WriteStats()
Write status function.
void TxRtsFailedTrace(std::string context, Mac48Address address)
Function to be called when a RTS frame transmission by the considered device has failed.
uint32_t m_longRetryCount
long retry count
uint32_t m_phyTxCount
PHY transmit count.
void TxDataFailedTrace(std::string context, Mac48Address address)
Function to be called when a data frame transmission by the considered device has failed.
uint32_t m_phyRxOkCount
PHY receive OK count.
uint32_t m_phyRxErrorCount
PHY receive error count.
void ResetCounters()
Reset counters function.
uint32_t m_exceededRetryCount
exceeded retry count
holds a vector of ns3::NetDevice pointers
Network layer to device interface.
keep track of a set of node pointers.
Object()
Caller graph was not generated because of its size.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
represent a single transmission mode
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiPhyState
The state of the PHY layer.
void PhyRxErrorTrace(std::string context, Ptr< const Packet > packet, double snr)
PHY-level RX error trace.
void PhyStateTrace(std::string context, Time start, Time duration, WifiPhyState state)
PHY state trace.
void PhyRxOkTrace(std::string context, Ptr< const Packet > packet, double snr, WifiMode mode, WifiPreamble preamble)
PHY-level RX OK trace.
void PhyTxTrace(std::string context, Ptr< const Packet > packet, WifiMode mode, WifiPreamble preamble, uint8_t txPower)
PHY-level TX trace.
void DevTxTrace(std::string context, Ptr< const Packet > p)
MAC-level TX trace.
void DevRxTrace(std::string context, Ptr< const Packet > p)
MAC-level RX trace.