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