21 #ifndef ATHSTATS_HELPER_H
22 #define ATHSTATS_HELPER_H
25 #include "ns3/object.h"
26 #include "ns3/attribute.h"
27 #include "ns3/object-factory.h"
28 #include "ns3/node-container.h"
29 #include "ns3/net-device-container.h"
30 #include "ns3/nstime.h"
31 #include "ns3/wifi-phy.h"
32 #include "ns3/double.h"
33 #include "ns3/mac48-address.h"
49 void EnableAthstats (std::string filename, uint32_t nodeid, uint32_t deviceid);
85 static TypeId GetTypeId (
void);
193 void Open (std::string
const& name);
208 uint32_t m_shortRetryCount;
209 uint32_t m_longRetryCount;
210 uint32_t m_exceededRetryCount;
211 uint32_t m_phyRxOkCount;
212 uint32_t m_phyRxErrorCount;
213 uint32_t m_phyTxCount;
215 std::ofstream *m_writer;
void PhyRxErrorTrace(std::string context, Ptr< const Packet > packet, double snr)
smart pointer class similar to boost::intrusive_ptr
void DevTxTrace(std::string context, Ptr< const Packet > p)
void PhyStateTrace(std::string context, Time start, Time duration, enum WifiPhy::State state)
void TxFinalRtsFailedTrace(std::string context, Mac48Address address)
void TxRtsFailedTrace(std::string context, Mac48Address address)
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
trace sink for wifi device that mimics madwifi's athstats tool.
holds a vector of ns3::NetDevice pointers
void Open(std::string const &name)
keep track of a set of node pointers.
create AthstatsWifiTraceSink instances and connect them to wifi devices
void PhyTxTrace(std::string context, Ptr< const Packet > packet, WifiMode mode, WifiPreamble preamble, uint8_t txPower)
void PhyRxOkTrace(std::string context, Ptr< const Packet > packet, double snr, WifiMode mode, enum WifiPreamble preamble)
void TxFinalDataFailedTrace(std::string context, Mac48Address address)
a base class which provides memory management and object aggregation
void TxDataFailedTrace(std::string context, Mac48Address address)
a unique identifier for an interface.
void DevRxTrace(std::string context, Ptr< const Packet > p)