65 .AddTraceSource(
"PhyTxBegin",
66 "Trace source indicating a packet has "
67 "begun transmitting over the channel medium.",
69 "ns3::Packet::TracedCallback")
70 .AddTraceSource(
"PhyTxEnd",
71 "Trace source indicating a packet has "
72 "been completely transmitted over the channel.",
74 "ns3::Packet::TracedCallback")
75 .AddTraceSource(
"PhyTxDrop",
76 "Trace source indicating a packet has "
77 "been dropped by the device during transmission.",
79 "ns3::Packet::TracedCallback")
80 .AddTraceSource(
"PhyRxBegin",
81 "Trace source indicating a packet has "
82 "begun being received from the channel medium by the device.",
84 "ns3::Packet::TracedCallback")
85 .AddTraceSource(
"PhyRxEnd",
86 "Trace source indicating a packet has "
87 "been completely received from the channel medium by the device.",
89 "ns3::Packet::TracedCallback")
90 .AddTraceSource(
"PhyRxDrop",
91 "Trace source indicating a packet has "
92 "been dropped by the device during reception.",
94 "ns3::Packet::TracedCallback");
A base class which provides memory management and object aggregation.
virtual void DoDispose()
Destructor implementation.
Smart pointer class similar to boost::intrusive_ptr.
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.