A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
uan-phy.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 University of Washington
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Leonard Tracy <lentracy@gmail.com>
7 */
8
9#include "uan-phy.h"
10
11namespace ns3
12{
13
14NS_OBJECT_ENSURE_REGISTERED(UanPhyCalcSinr);
15
16TypeId
18{
19 static TypeId tid = TypeId("ns3::UanPhyCalcSinr").SetParent<Object>().SetGroupName("Uan");
20 return tid;
21}
22
23void
27
28void
34
36
39{
40 static TypeId tid = TypeId("ns3::UanPhyPer").SetParent<Object>().SetGroupName("Uan");
41 return tid;
42}
43
44void
48
49void
55
57
60{
61 static TypeId tid =
62 TypeId("ns3::UanPhy")
64 .SetGroupName("Uan")
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");
95 return tid;
96}
97
98void
103
104void
109
110void
115
116void
121
122void
127
128void
133
134} // namespace ns3
A base class which provides memory management and object aggregation.
Definition object.h:78
virtual void DoDispose()
Destructor implementation.
Definition object.cc:433
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
static TypeId GetTypeId()
Register this type.
Definition uan-phy.cc:17
virtual void Clear()
Clear all pointer references.
Definition uan-phy.cc:24
void DoDispose() override
Destructor implementation.
Definition uan-phy.cc:29
Base class for UAN Phy models.
Definition uan-phy.h:167
static TypeId GetTypeId()
Register this type.
Definition uan-phy.cc:59
void NotifyTxDrop(Ptr< const Packet > packet)
Called when the transducer attempts to transmit a new packet while already transmitting a prior packe...
Definition uan-phy.cc:111
ns3::TracedCallback< Ptr< const Packet > > m_phyRxBeginTrace
Trace source indicating a packet has begun being received from the channel medium by the device.
Definition uan-phy.h:525
void NotifyTxEnd(Ptr< const Packet > packet)
Called when the transducer finishes transmitting a packet.
Definition uan-phy.cc:105
void NotifyRxDrop(Ptr< const Packet > packet)
Called when the Phy drops a packet.
Definition uan-phy.cc:129
ns3::TracedCallback< Ptr< const Packet > > m_phyTxDropTrace
Trace source indicating a packet has been dropped by the device during transmission.
Definition uan-phy.h:517
ns3::TracedCallback< Ptr< const Packet > > m_phyRxDropTrace
Trace source indicating a packet has been dropped by the device during reception.
Definition uan-phy.h:541
ns3::TracedCallback< Ptr< const Packet > > m_phyRxEndTrace
Trace source indicating a packet has been completely received from the channel medium by the device.
Definition uan-phy.h:533
ns3::TracedCallback< Ptr< const Packet > > m_phyTxEndTrace
Trace source indicating a packet has been completely transmitted over the channel.
Definition uan-phy.h:509
ns3::TracedCallback< Ptr< const Packet > > m_phyTxBeginTrace
Trace source indicating a packet has begun transmitting over the channel medium.
Definition uan-phy.h:501
void NotifyRxBegin(Ptr< const Packet > packet)
Called when the Phy begins to receive a packet.
Definition uan-phy.cc:117
void NotifyRxEnd(Ptr< const Packet > packet)
Called when a packet is received without error.
Definition uan-phy.cc:123
void NotifyTxBegin(Ptr< const Packet > packet)
Called when the transducer begins transmitting a packet.
Definition uan-phy.cc:99
Calculate packet error probability, based on received SINR and modulation (mode).
Definition uan-phy.h:99
virtual void Clear()
Clear all pointer references.
Definition uan-phy.cc:45
static TypeId GetTypeId()
Register this type.
Definition uan-phy.cc:38
void DoDispose() override
Destructor implementation.
Definition uan-phy.cc:50
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
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.