A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::UanPhy Class Referenceabstract

Base class for UAN Phy models. More...

#include "uan-phy.h"

+ Inheritance diagram for ns3::UanPhy:
+ Collaboration diagram for ns3::UanPhy:

Public Types

typedef Callback< void, Ptr< Packet >, doubleRxErrCallback
 Packet receive error callback function type.
 
typedef Callback< void, Ptr< Packet >, double, UanTxModeRxOkCallback
 Packet received successfully callback function type.
 
enum  State {
  IDLE , CCABUSY , RX , TX ,
  SLEEP , DISABLED
}
 Enum defining possible Phy states. More...
 
typedef void(* TracedCallback) (Ptr< const Packet > pkt, double sinr, UanTxMode mode)
 TracedCallback signature for UanPhy packet send/receive events.
 

Public Member Functions

virtual int64_t AssignStreams (int64_t stream)=0
 Assign a fixed random variable stream number to the random variables used by this model.
 
virtual void Clear ()=0
 Clear all pointer references.
 
virtual void EnergyDepletionHandler ()=0
 Handle the energy depletion event.
 
virtual void EnergyRechargeHandler ()=0
 Handle the energy recharge event.
 
virtual double GetCcaThresholdDb ()=0
 Get the CCA threshold signal strength required to detect channel busy.
 
virtual Ptr< UanChannelGetChannel () const =0
 Get the attached channel.
 
virtual Ptr< UanNetDeviceGetDevice () const =0
 Get the device hosting this Phy.
 
virtual UanTxMode GetMode (uint32_t n)=0
 Get a specific transmission mode.
 
virtual uint32_t GetNModes ()=0
 Get the number of transmission modes supported by this Phy.
 
virtual Ptr< PacketGetPacketRx () const =0
 Get the packet currently being received.
 
virtual double GetRxThresholdDb ()=0
 Get the minimum received signal strength required to receive a packet without errors.
 
virtual Ptr< UanTransducerGetTransducer ()=0
 Get the attached transducer.
 
virtual double GetTxPowerDb ()=0
 Get the current transmit power, in dB.
 
virtual bool IsStateBusy ()=0
 
virtual bool IsStateCcaBusy ()=0
 
virtual bool IsStateIdle ()=0
 
virtual bool IsStateRx ()=0
 
virtual bool IsStateSleep ()=0
 
virtual bool IsStateTx ()=0
 
virtual void NotifyIntChange ()=0
 Called when there has been a change in the amount of interference this node is experiencing from other transmissions.
 
void NotifyRxBegin (Ptr< const Packet > packet)
 Called when the Phy begins to receive a packet.
 
void NotifyRxDrop (Ptr< const Packet > packet)
 Called when the Phy drops a packet.
 
void NotifyRxEnd (Ptr< const Packet > packet)
 Called when a packet is received without error.
 
virtual void NotifyTransStartTx (Ptr< Packet > packet, double txPowerDb, UanTxMode txMode)=0
 Called when a transmission is beginning on the attached transducer.
 
void NotifyTxBegin (Ptr< const Packet > packet)
 Called when the transducer begins transmitting a packet.
 
void NotifyTxDrop (Ptr< const Packet > packet)
 Called when the transducer attempts to transmit a new packet while already transmitting a prior packet.
 
void NotifyTxEnd (Ptr< const Packet > packet)
 Called when the transducer finishes transmitting a packet.
 
virtual void RegisterListener (UanPhyListener *listener)=0
 Register a UanPhyListener to be notified of common UanPhy events.
 
virtual void SendPacket (Ptr< Packet > pkt, uint32_t modeNum)=0
 Send a packet using a specific transmission mode.
 
virtual void SetCcaThresholdDb (double thresh)=0
 Set the threshold for detecting channel busy.
 
virtual void SetChannel (Ptr< UanChannel > channel)=0
 Attach to a channel.
 
virtual void SetDevice (Ptr< UanNetDevice > device)=0
 Set the device hosting this Phy.
 
virtual void SetEnergyModelCallback (DeviceEnergyModel::ChangeStateCallback callback)=0
 Set the DeviceEnergyModel callback for UanPhy device.
 
virtual void SetMac (Ptr< UanMac > mac)=0
 Set the MAC forwarding messages to this Phy.
 
virtual void SetReceiveErrorCallback (RxErrCallback cb)=0
 Set the callback to be used when a packet is received with errors.
 
virtual void SetReceiveOkCallback (RxOkCallback cb)=0
 Set the callback to be used when a packet is received without error.
 
virtual void SetRxThresholdDb (double thresh)=0
 Set the minimum SINR threshold to receive a packet without errors.
 
virtual void SetSleepMode (bool sleep)=0
 Set the Phy SLEEP mode.
 
virtual void SetTransducer (Ptr< UanTransducer > trans)=0
 Attach a transducer to this Phy.
 
virtual void SetTxPowerDb (double txpwr)=0
 Set the transmit power.
 
virtual void StartRxPacket (Ptr< Packet > pkt, double rxPowerDb, UanTxMode txMode, UanPdp pdp)=0
 Packet arriving from channel: i.e.
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor.
 
 ~Object () override
 Destructor.
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together.
 
void Dispose ()
 Dispose of this Object.
 
AggregateIterator GetAggregateIterator () const
 Get an iterator to the Objects aggregated to this one.
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object.
 
template<typename T >
Ptr< T > GetObject () const
 Get a pointer to the requested aggregated Object.
 
template<>
Ptr< ObjectGetObject () const
 Specialization of () for objects of type ns3::Object.
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId.
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::Object.
 
void Initialize ()
 Invoke DoInitialize on all Objects aggregated to this one.
 
bool IsInitialized () const
 Check if the object has been initialized.
 
void UnidirectionalAggregateObject (Ptr< Object > other)
 Aggregate an Object to another Object.
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
virtual TypeId GetInstanceTypeId () const =0
 Get the most derived TypeId for this Object.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Register this type.
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId ()
 Register this type.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Private Attributes

ns3::TracedCallback< Ptr< const Packet > > m_phyRxBeginTrace
 Trace source indicating a packet has begun being received from the channel medium by the device.
 
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_phyTxBeginTrace
 Trace source indicating a packet has begun transmitting over the channel medium.
 
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_phyTxEndTrace
 Trace source indicating a packet has been completely transmitted over the channel.
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object.
 
virtual void DoDispose ()
 Destructor implementation.
 
virtual void DoInitialize ()
 Initialize() implementation.
 
virtual void NotifyNewAggregate ()
 Notify all Objects aggregated to this one of a new Object being aggregated.
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Detailed Description

Base class for UAN Phy models.

Config Paths

ns3::UanPhy is accessible through the following paths with Config::Set and Config::Connect:

  • "/NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Phy"

No Attributes are defined for this type.

TraceSources

  • PhyRxBegin: Trace source indicating a packet has begun being received from the channel medium by the device.
    Callback signature: ns3::Packet::TracedCallback
  • PhyRxDrop: Trace source indicating a packet has been dropped by the device during reception.
    Callback signature: ns3::Packet::TracedCallback
  • PhyRxEnd: Trace source indicating a packet has been completely received from the channel medium by the device.
    Callback signature: ns3::Packet::TracedCallback
  • PhyTxBegin: Trace source indicating a packet has begun transmitting over the channel medium.
    Callback signature: ns3::Packet::TracedCallback
  • PhyTxDrop: Trace source indicating a packet has been dropped by the device during transmission.
    Callback signature: ns3::Packet::TracedCallback
  • PhyTxEnd: Trace source indicating a packet has been completely transmitted over the channel.
    Callback signature: ns3::Packet::TracedCallback

Size of this type is 152 bytes (on a 64-bit architecture).

Definition at line 177 of file uan-phy.h.

Member Typedef Documentation

◆ RxErrCallback

Packet receive error callback function type.

arg1 Packet received successfully. arg2 SNIR of packet.

Definition at line 206 of file uan-phy.h.

◆ RxOkCallback

Packet received successfully callback function type.

arg1 Packet received successfully. arg2 SNIR of packet. arg3 Mode of packet.

Definition at line 198 of file uan-phy.h.

◆ TracedCallback

typedef void(* ns3::UanPhy::TracedCallback) (Ptr< const Packet > pkt, double sinr, UanTxMode mode)

TracedCallback signature for UanPhy packet send/receive events.

Parameters
[in]pktThe packet.
[in]sinrThe SINR.
[in]modeThe channel mode.

Definition at line 215 of file uan-phy.h.

Member Enumeration Documentation

◆ State

Enum defining possible Phy states.

Enumerator
IDLE 

Idle state.

CCABUSY 

Channel busy.

RX 

Receiving.

TX 

Transmitting.

SLEEP 

Sleeping.

DISABLED 

Disabled.

Definition at line 181 of file uan-phy.h.

Member Function Documentation

◆ AssignStreams()

virtual int64_t ns3::UanPhy::AssignStreams ( int64_t  stream)
pure virtual

Assign a fixed random variable stream number to the random variables used by this model.

Return the number of streams (possibly zero) that have been assigned.

Parameters
streamFirst stream index to use.
Returns
The number of stream indices assigned by this model.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ Clear()

virtual void ns3::UanPhy::Clear ( )
pure virtual

Clear all pointer references.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ EnergyDepletionHandler()

virtual void ns3::UanPhy::EnergyDepletionHandler ( )
pure virtual

Handle the energy depletion event.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ EnergyRechargeHandler()

virtual void ns3::UanPhy::EnergyRechargeHandler ( )
pure virtual

Handle the energy recharge event.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetCcaThresholdDb()

virtual double ns3::UanPhy::GetCcaThresholdDb ( )
pure virtual

Get the CCA threshold signal strength required to detect channel busy.

Returns
The CCA threshold signal strength in dB.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetChannel()

virtual Ptr< UanChannel > ns3::UanPhy::GetChannel ( ) const
pure virtual

Get the attached channel.

Returns
The channel.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetDevice()

virtual Ptr< UanNetDevice > ns3::UanPhy::GetDevice ( ) const
pure virtual

Get the device hosting this Phy.

Returns
The net device.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetMode()

virtual UanTxMode ns3::UanPhy::GetMode ( uint32_t  n)
pure virtual

Get a specific transmission mode.

Parameters
nThe mode number.
Returns
The mode.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetNModes()

virtual uint32_t ns3::UanPhy::GetNModes ( )
pure virtual

Get the number of transmission modes supported by this Phy.

Returns
The number modes.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetPacketRx()

virtual Ptr< Packet > ns3::UanPhy::GetPacketRx ( ) const
pure virtual

Get the packet currently being received.

Warning
Returns non-valid pointer if IsStateRx == false.
Returns
The packet.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetRxThresholdDb()

virtual double ns3::UanPhy::GetRxThresholdDb ( )
pure virtual

Get the minimum received signal strength required to receive a packet without errors.

Returns
The minimum required signal strength, in dB.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetTransducer()

virtual Ptr< UanTransducer > ns3::UanPhy::GetTransducer ( )
pure virtual

Get the attached transducer.

Returns
The transducer.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetTxPowerDb()

virtual double ns3::UanPhy::GetTxPowerDb ( )
pure virtual

Get the current transmit power, in dB.

Returns
The transmit power.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ GetTypeId()

TypeId ns3::UanPhy::GetTypeId ( )
static

Register this type.

Returns
The TypeId.

Definition at line 70 of file uan-phy.cc.

References m_phyRxBeginTrace, m_phyRxDropTrace, m_phyRxEndTrace, m_phyTxBeginTrace, m_phyTxDropTrace, m_phyTxEndTrace, ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ IsStateBusy()

virtual bool ns3::UanPhy::IsStateBusy ( )
pure virtual
Returns
True if Phy is neither IDLE nor SLEEP.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ IsStateCcaBusy()

virtual bool ns3::UanPhy::IsStateCcaBusy ( )
pure virtual
Returns
True if Phy is in CCABUSY state.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ IsStateIdle()

virtual bool ns3::UanPhy::IsStateIdle ( )
pure virtual
Returns
True if Phy is in IDLE state.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ IsStateRx()

virtual bool ns3::UanPhy::IsStateRx ( )
pure virtual
Returns
True if Phy is currently in receive mode.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ IsStateSleep()

virtual bool ns3::UanPhy::IsStateSleep ( )
pure virtual
Returns
True if Phy is in SLEEP state.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ IsStateTx()

virtual bool ns3::UanPhy::IsStateTx ( )
pure virtual
Returns
True if Phy is busy transmitting.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ NotifyIntChange()

virtual void ns3::UanPhy::NotifyIntChange ( )
pure virtual

Called when there has been a change in the amount of interference this node is experiencing from other transmissions.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ NotifyRxBegin()

void ns3::UanPhy::NotifyRxBegin ( Ptr< const Packet packet)

Called when the Phy begins to receive a packet.

This fires a PhyRxBegin trace. Implemented for encapsulation purposes.

Parameters
packetThe packet.

Definition at line 128 of file uan-phy.cc.

References m_phyRxBeginTrace.

Referenced by ns3::UanPhyGen::StartRxPacket().

+ Here is the caller graph for this function:

◆ NotifyRxDrop()

void ns3::UanPhy::NotifyRxDrop ( Ptr< const Packet packet)

Called when the Phy drops a packet.

This fires a PhyRxDrop trace. Implemented for encapsulation purposes.

Parameters
packetThe packet.

Definition at line 140 of file uan-phy.cc.

References m_phyRxDropTrace.

Referenced by ns3::UanPhyGen::EnergyDepletionHandler(), ns3::UanPhyGen::RxEndEvent(), and ns3::UanPhyGen::StartRxPacket().

+ Here is the caller graph for this function:

◆ NotifyRxEnd()

void ns3::UanPhy::NotifyRxEnd ( Ptr< const Packet packet)

Called when a packet is received without error.

This fires a PhyRxEnd trace. Implemented for encapsulation purposes.

Parameters
packetThe packet.

Definition at line 134 of file uan-phy.cc.

References m_phyRxEndTrace.

Referenced by ns3::UanPhyGen::RxEndEvent().

+ Here is the caller graph for this function:

◆ NotifyTransStartTx()

virtual void ns3::UanPhy::NotifyTransStartTx ( Ptr< Packet packet,
double  txPowerDb,
UanTxMode  txMode 
)
pure virtual

Called when a transmission is beginning on the attached transducer.

Parameters
packetPacket that is beginning transmission.
txPowerDbTransmit power of packet.
txModeTransmission mode of packet.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ NotifyTxBegin()

void ns3::UanPhy::NotifyTxBegin ( Ptr< const Packet packet)

Called when the transducer begins transmitting a packet.

This fires a PhyTxBegin trace. Implemented for encapsulation purposes.

Parameters
packetThe packet.

Definition at line 110 of file uan-phy.cc.

References m_phyTxBeginTrace.

◆ NotifyTxDrop()

void ns3::UanPhy::NotifyTxDrop ( Ptr< const Packet packet)

Called when the transducer attempts to transmit a new packet while already transmitting a prior packet.

This fires a PhyTxDrop trace. Implemented for encapsulation purposes.

Parameters
packetThe packet.

Definition at line 122 of file uan-phy.cc.

References m_phyTxDropTrace.

Referenced by ns3::UanPhyGen::EnergyDepletionHandler().

+ Here is the caller graph for this function:

◆ NotifyTxEnd()

void ns3::UanPhy::NotifyTxEnd ( Ptr< const Packet packet)

Called when the transducer finishes transmitting a packet.

This fires a PhyTxEnd trace. Implemented for encapsulation purposes.

Parameters
packetThe packet.

Definition at line 116 of file uan-phy.cc.

References m_phyTxEndTrace.

Referenced by ns3::UanTransducerHd::Transmit().

+ Here is the caller graph for this function:

◆ RegisterListener()

virtual void ns3::UanPhy::RegisterListener ( UanPhyListener listener)
pure virtual

Register a UanPhyListener to be notified of common UanPhy events.

Parameters
listenerNew listener to register.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SendPacket()

virtual void ns3::UanPhy::SendPacket ( Ptr< Packet pkt,
uint32_t  modeNum 
)
pure virtual

Send a packet using a specific transmission mode.

Parameters
pktPacket to transmit.
modeNumIndex of mode in SupportedModes list to use for transmission.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetCcaThresholdDb()

virtual void ns3::UanPhy::SetCcaThresholdDb ( double  thresh)
pure virtual

Set the threshold for detecting channel busy.

Parameters
threshSignal power threshold at receiver.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetChannel()

virtual void ns3::UanPhy::SetChannel ( Ptr< UanChannel channel)
pure virtual

Attach to a channel.

Parameters
channelThe channel to attach to.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetDevice()

virtual void ns3::UanPhy::SetDevice ( Ptr< UanNetDevice device)
pure virtual

Set the device hosting this Phy.

Parameters
deviceThe device.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetEnergyModelCallback()

virtual void ns3::UanPhy::SetEnergyModelCallback ( DeviceEnergyModel::ChangeStateCallback  callback)
pure virtual

Set the DeviceEnergyModel callback for UanPhy device.

Parameters
callbackThe DeviceEnergyModel change state callback.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetMac()

virtual void ns3::UanPhy::SetMac ( Ptr< UanMac mac)
pure virtual

Set the MAC forwarding messages to this Phy.

Parameters
macThe MAC.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetReceiveErrorCallback()

virtual void ns3::UanPhy::SetReceiveErrorCallback ( RxErrCallback  cb)
pure virtual

Set the callback to be used when a packet is received with errors.

Parameters
cbThe callback.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetReceiveOkCallback()

virtual void ns3::UanPhy::SetReceiveOkCallback ( RxOkCallback  cb)
pure virtual

Set the callback to be used when a packet is received without error.

Parameters
cbThe callback.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetRxThresholdDb()

virtual void ns3::UanPhy::SetRxThresholdDb ( double  thresh)
pure virtual

Set the minimum SINR threshold to receive a packet without errors.

Deprecated:
See UanPhyPer.
Parameters
threshThreshold SINR for proper reception in dB re 1 uPa.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetSleepMode()

virtual void ns3::UanPhy::SetSleepMode ( bool  sleep)
pure virtual

Set the Phy SLEEP mode.

Parameters
sleepSLEEP on or off.

Implemented in ns3::UanPhyGen, and ns3::UanPhyDual.

◆ SetTransducer()

virtual void ns3::UanPhy::SetTransducer ( Ptr< UanTransducer trans)
pure virtual

Attach a transducer to this Phy.

Parameters
transThe transducer.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ SetTxPowerDb()

virtual void ns3::UanPhy::SetTxPowerDb ( double  txpwr)
pure virtual

Set the transmit power.

Parameters
txpwrFinal output transmission power, in dB.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

◆ StartRxPacket()

virtual void ns3::UanPhy::StartRxPacket ( Ptr< Packet pkt,
double  rxPowerDb,
UanTxMode  txMode,
UanPdp  pdp 
)
pure virtual

Packet arriving from channel: i.e.

leading bit of packet has arrived.

Parameters
pktPacket which is arriving.
rxPowerDbSignal power of incoming packet in dB re 1 uPa.
txModeTransmission mode defining modulation of incoming packet.
pdpPower delay profile of incoming packet.

Implemented in ns3::UanPhyDual, and ns3::UanPhyGen.

Member Data Documentation

◆ m_phyRxBeginTrace

ns3::TracedCallback<Ptr<const Packet> > ns3::UanPhy::m_phyRxBeginTrace
private

Trace source indicating a packet has begun being received from the channel medium by the device.

See also
class CallBackTraceSource

Definition at line 534 of file uan-phy.h.

Referenced by GetTypeId(), and NotifyRxBegin().

◆ m_phyRxDropTrace

ns3::TracedCallback<Ptr<const Packet> > ns3::UanPhy::m_phyRxDropTrace
private

Trace source indicating a packet has been dropped by the device during reception.

See also
class CallBackTraceSource

Definition at line 550 of file uan-phy.h.

Referenced by GetTypeId(), and NotifyRxDrop().

◆ m_phyRxEndTrace

ns3::TracedCallback<Ptr<const Packet> > ns3::UanPhy::m_phyRxEndTrace
private

Trace source indicating a packet has been completely received from the channel medium by the device.

See also
class CallBackTraceSource

Definition at line 542 of file uan-phy.h.

Referenced by GetTypeId(), and NotifyRxEnd().

◆ m_phyTxBeginTrace

ns3::TracedCallback<Ptr<const Packet> > ns3::UanPhy::m_phyTxBeginTrace
private

Trace source indicating a packet has begun transmitting over the channel medium.

See also
class CallBackTraceSource

Definition at line 510 of file uan-phy.h.

Referenced by GetTypeId(), and NotifyTxBegin().

◆ m_phyTxDropTrace

ns3::TracedCallback<Ptr<const Packet> > ns3::UanPhy::m_phyTxDropTrace
private

Trace source indicating a packet has been dropped by the device during transmission.

See also
class CallBackTraceSource

Definition at line 526 of file uan-phy.h.

Referenced by GetTypeId(), and NotifyTxDrop().

◆ m_phyTxEndTrace

ns3::TracedCallback<Ptr<const Packet> > ns3::UanPhy::m_phyTxEndTrace
private

Trace source indicating a packet has been completely transmitted over the channel.

See also
class CallBackTraceSource

Definition at line 518 of file uan-phy.h.

Referenced by GetTypeId(), and NotifyTxEnd().


The documentation for this class was generated from the following files: