76 .AddTraceSource(
"PhyTxBegin",
77 "Trace source indicating a packet has "
78 "begun transmitting over the channel medium.",
80 "ns3::Packet::TracedCallback")
81 .AddTraceSource(
"PhyTxEnd",
82 "Trace source indicating a packet has "
83 "been completely transmitted over the channel.",
85 "ns3::Packet::TracedCallback")
86 .AddTraceSource(
"PhyTxDrop",
87 "Trace source indicating a packet has "
88 "been dropped by the device during transmission.",
90 "ns3::Packet::TracedCallback")
91 .AddTraceSource(
"PhyRxBegin",
92 "Trace source indicating a packet has "
93 "begun being received from the channel medium by the device.",
95 "ns3::Packet::TracedCallback")
96 .AddTraceSource(
"PhyRxEnd",
97 "Trace source indicating a packet has "
98 "been completely received from the channel medium by the device.",
100 "ns3::Packet::TracedCallback")
101 .AddTraceSource(
"PhyRxDrop",
102 "Trace source indicating a packet has "
103 "been dropped by the device during reception.",
105 "ns3::Packet::TracedCallback");
A base class which provides memory management and object aggregation.
virtual void DoDispose()
Destructor implementation.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
static TypeId GetTypeId()
Register this type.
virtual void Clear()
Clear all pointer references.
void DoDispose() override
Destructor implementation.
Base class for UAN Phy models.
static TypeId GetTypeId()
Register this type.
void NotifyTxDrop(Ptr< const Packet > packet)
Called when the transducer attempts to transmit a new packet while already transmitting a prior packe...
ns3::TracedCallback< Ptr< const Packet > > m_phyRxBeginTrace
Trace source indicating a packet has begun being received from the channel medium by the device.
void NotifyTxEnd(Ptr< const Packet > packet)
Called when the transducer finishes transmitting a packet.
void NotifyRxDrop(Ptr< const Packet > packet)
Called when the Phy drops a packet.
ns3::TracedCallback< Ptr< const Packet > > m_phyTxDropTrace
Trace source indicating a packet has been dropped by the device during transmission.
ns3::TracedCallback< Ptr< const Packet > > m_phyRxDropTrace
Trace source indicating a packet has been dropped by the device during reception.
ns3::TracedCallback< Ptr< const Packet > > m_phyRxEndTrace
Trace source indicating a packet has been completely received from the channel medium by the device.
ns3::TracedCallback< Ptr< const Packet > > m_phyTxEndTrace
Trace source indicating a packet has been completely transmitted over the channel.
ns3::TracedCallback< Ptr< const Packet > > m_phyTxBeginTrace
Trace source indicating a packet has begun transmitting over the channel medium.
void NotifyRxBegin(Ptr< const Packet > packet)
Called when the Phy begins to receive a packet.
void NotifyRxEnd(Ptr< const Packet > packet)
Called when a packet is received without error.
void NotifyTxBegin(Ptr< const Packet > packet)
Called when the transducer begins transmitting a packet.
Calculate packet error probability, based on received SINR and modulation (mode).
virtual void Clear()
Clear all pointer references.
static TypeId GetTypeId()
Register this type.
void DoDispose() override
Destructor implementation.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
Every class exported by the ns3 library is enclosed in the ns3 namespace.