A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::HalfDuplexIdealPhy Class Reference

This PHY layer implementation realizes an ideal OFDM PHY which transmits half-duplex (i.e., it can either receive or transmit at a given time). More...

#include "half-duplex-ideal-phy.h"

+ Inheritance diagram for ns3::HalfDuplexIdealPhy:
+ Collaboration diagram for ns3::HalfDuplexIdealPhy:

Public Types

enum  State { IDLE , TX , RX }
 PHY states. More...
 

Public Member Functions

 HalfDuplexIdealPhy ()
 
 ~HalfDuplexIdealPhy () override
 
Ptr< ObjectGetAntenna () const override
 Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
 
Ptr< NetDeviceGetDevice () const override
 Get the associated NetDevice instance.
 
Ptr< MobilityModelGetMobility () const override
 Get the associated MobilityModel instance.
 
DataRate GetRate () const
 Get the PHY rate to be used by this PHY.
 
Ptr< const SpectrumModelGetRxSpectrumModel () const override
 
void SetAntenna (Ptr< AntennaModel > a)
 set the AntennaModel to be used
 
void SetChannel (Ptr< SpectrumChannel > c) override
 Set the channel attached to this device.
 
void SetDevice (Ptr< NetDevice > d) override
 Set the associated NetDevice instance.
 
void SetGenericPhyRxEndErrorCallback (GenericPhyRxEndErrorCallback c)
 set the callback for the end of a RX in error, as part of the interconnections between the PHY and the MAC
 
void SetGenericPhyRxEndOkCallback (GenericPhyRxEndOkCallback c)
 set the callback for the successful end of a RX, as part of the interconnections between the PHY and the MAC
 
void SetGenericPhyRxStartCallback (GenericPhyRxStartCallback c)
 Set the callback for the start of RX, as part of the interconnections between the PHY and the MAC.
 
void SetGenericPhyTxEndCallback (GenericPhyTxEndCallback c)
 Set the callback for the end of a TX, as part of the interconnections between the PHY and the MAC.
 
void SetMobility (Ptr< MobilityModel > m) override
 Set the mobility model associated with this device.
 
void SetNoisePowerSpectralDensity (Ptr< const SpectrumValue > noisePsd)
 Set the Noise Power Spectral Density in power units (Watt, Pascal...) per Hz.
 
void SetRate (DataRate rate)
 Set the PHY rate to be used by this PHY.
 
void SetTxPowerSpectralDensity (Ptr< SpectrumValue > txPsd)
 Set the Power Spectral Density of outgoing signals in power units (Watt, Pascal...) per Hz.
 
void StartRx (Ptr< SpectrumSignalParameters > params) override
 Notify the SpectrumPhy instance of an incoming signal.
 
bool StartTx (Ptr< Packet > p)
 Start a transmission.
 
- Public Member Functions inherited from ns3::SpectrumPhy
 SpectrumPhy ()
 
 SpectrumPhy (const SpectrumPhy &)=delete
 
 ~SpectrumPhy () override
 
virtual Ptr< ObjectGetAntenna () const =0
 Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
 
virtual Ptr< NetDeviceGetDevice () const =0
 Get the associated NetDevice instance.
 
virtual Ptr< MobilityModelGetMobility () const =0
 Get the associated MobilityModel instance.
 
virtual Ptr< const SpectrumModelGetRxSpectrumModel () const =0
 
SpectrumPhyoperator= (const SpectrumPhy &)=delete
 
virtual void SetChannel (Ptr< SpectrumChannel > c)=0
 Set the channel attached to this device.
 
virtual void SetDevice (Ptr< NetDevice > d)=0
 Set the associated NetDevice instance.
 
virtual void SetMobility (Ptr< MobilityModel > m)=0
 Set the mobility model associated with this device.
 
virtual void StartRx (Ptr< SpectrumSignalParameters > params)=0
 Notify the SpectrumPhy instance of an incoming signal.
 
- 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.
 
- 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 ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::SpectrumPhy
static TypeId GetTypeId ()
 Get the type ID.
 
- 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 Member Functions

void AbortRx ()
 About current Rx.
 
void ChangeState (State newState)
 Change the PHY state.
 
void DoDispose () override
 Destructor implementation.
 
void EndRx ()
 End current Rx.
 
void EndTx ()
 End the current Tx.
 

Private Attributes

Ptr< AntennaModelm_antenna
 Antenna model.
 
Ptr< SpectrumChannelm_channel
 Channel.
 
EventId m_endRxEventId
 End Rx event.
 
SpectrumInterference m_interference
 Received interference.
 
Ptr< MobilityModelm_mobility
 Mobility model.
 
Ptr< NetDevicem_netDevice
 NetDevice connected to this phy.
 
GenericPhyRxEndErrorCallback m_phyMacRxEndErrorCallback
 Callback - Rx error.
 
GenericPhyRxEndOkCallback m_phyMacRxEndOkCallback
 Callback - Rx end.
 
GenericPhyRxStartCallback m_phyMacRxStartCallback
 Callback - Rx start.
 
GenericPhyTxEndCallback m_phyMacTxEndCallback
 Callback - Tx end.
 
TracedCallback< Ptr< const Packet > > m_phyRxAbortTrace
 Trace - Rx abort.
 
TracedCallback< Ptr< const Packet > > m_phyRxEndErrorTrace
 Trace - Rx end (error)
 
TracedCallback< Ptr< const Packet > > m_phyRxEndOkTrace
 Trace - Tx end (ok)
 
TracedCallback< Ptr< const Packet > > m_phyRxStartTrace
 Trace - Rx start.
 
TracedCallback< Ptr< const Packet > > m_phyTxEndTrace
 Trace - Tx end.
 
TracedCallback< Ptr< const Packet > > m_phyTxStartTrace
 Trace - Tx start.
 
DataRate m_rate
 Datarate.
 
Ptr< Packetm_rxPacket
 Rx packet.
 
Ptr< const SpectrumValuem_rxPsd
 Rx power spectral density.
 
State m_state
 PHY state.
 
Ptr< Packetm_txPacket
 Tx packet.
 
Ptr< SpectrumValuem_txPsd
 Tx power spectral density.
 

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

This PHY layer implementation realizes an ideal OFDM PHY which transmits half-duplex (i.e., it can either receive or transmit at a given time).

Introspection did not find any typical Config paths.

The device is ideal in the sense that: 1) it uses an error model based on the Shannon capacity, which assumes ideal channel coding; 2) it uses ideal signal acquisition, i.e., preamble detection and synchronization are always successful 3) it has no PHY layer overhead

Being half duplex, if a RX is ongoing but a TX is requested, the RX is aborted and the TX is started. Of course, no RX can be performed while there is an ongoing TX.

The use of OFDM is modeled by means of the Spectrum framework. By calling the method SetTxPowerSpectralDensity(), the user can specify how much of the spectrum is used, how many subcarriers are used, and what power is allocated to each subcarrier.

The user can also specify the PHY rate at which communications take place by using SetRate(). This is equivalent to choosing a particular modulation and coding scheme.

The use of the ShannonSpectrumErrorModel allows us to account for the following aspects in determining whether a transmission is successful or not:

  • the PHY rate (trades off communication speed with reliability)
  • the power spectral density (trade-off among total power consumed, total bandwidth used (i.e., how much of the spectrum is occupied), and communication reliability)
  • the signal propagation

This PHY model supports a single antenna model instance which is used for both transmission and reception.


Attributes

  • Rate: The PHY rate used by this device

TraceSources

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

Definition at line 77 of file half-duplex-ideal-phy.h.

Member Enumeration Documentation

◆ State

PHY states.

Enumerator
IDLE 

Idle state.

TX 

Transmitting state.

RX 

Receiving state.

Definition at line 86 of file half-duplex-ideal-phy.h.

Constructor & Destructor Documentation

◆ HalfDuplexIdealPhy()

ns3::HalfDuplexIdealPhy::HalfDuplexIdealPhy ( )

Definition at line 42 of file half-duplex-ideal-phy.cc.

References m_interference, and ns3::SpectrumInterference::SetErrorModel().

+ Here is the call graph for this function:

◆ ~HalfDuplexIdealPhy()

ns3::HalfDuplexIdealPhy::~HalfDuplexIdealPhy ( )
override

Definition at line 52 of file half-duplex-ideal-phy.cc.

Member Function Documentation

◆ AbortRx()

void ns3::HalfDuplexIdealPhy::AbortRx ( )
private

About current Rx.

Definition at line 396 of file half-duplex-ideal-phy.cc.

References ns3::SpectrumInterference::AbortRx(), ns3::EventId::Cancel(), ChangeState(), IDLE, m_endRxEventId, m_interference, m_phyRxAbortTrace, m_rxPacket, m_state, NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, and RX.

Referenced by StartTx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ChangeState()

void ns3::HalfDuplexIdealPhy::ChangeState ( State  newState)
private

Change the PHY state.

Parameters
newStatenew state

Definition at line 265 of file half-duplex-ideal-phy.cc.

References m_state, and NS_LOG_LOGIC.

Referenced by AbortRx(), EndRx(), EndTx(), StartRx(), and StartTx().

+ Here is the caller graph for this function:

◆ DoDispose()

void ns3::HalfDuplexIdealPhy::DoDispose ( )
overrideprivatevirtual

Destructor implementation.

This method is called by Dispose() or by the Object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.

It is safe to call GetObject() from within this method.

Reimplemented from ns3::Object.

Definition at line 57 of file half-duplex-ideal-phy.cc.

References ns3::Object::DoDispose(), m_channel, m_mobility, m_netDevice, m_phyMacRxEndErrorCallback, m_phyMacRxEndOkCallback, m_phyMacRxStartCallback, m_phyMacTxEndCallback, m_rxPacket, m_rxPsd, m_txPacket, m_txPsd, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ EndRx()

void ns3::HalfDuplexIdealPhy::EndRx ( )
private

End current Rx.

Definition at line 410 of file half-duplex-ideal-phy.cc.

References ChangeState(), ns3::SpectrumInterference::EndRx(), IDLE, ns3::Callback< R, UArgs >::IsNull(), m_interference, m_phyMacRxEndErrorCallback, m_phyMacRxEndOkCallback, m_phyRxEndErrorTrace, m_phyRxEndOkTrace, m_rxPacket, m_rxPsd, m_state, NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, and RX.

Referenced by StartRx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndTx()

void ns3::HalfDuplexIdealPhy::EndTx ( )
private

End the current Tx.

Definition at line 311 of file half-duplex-ideal-phy.cc.

References ChangeState(), IDLE, ns3::Callback< R, UArgs >::IsNull(), m_phyMacTxEndCallback, m_phyTxEndTrace, m_state, m_txPacket, NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, and TX.

Referenced by StartTx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAntenna()

Ptr< Object > ns3::HalfDuplexIdealPhy::GetAntenna ( ) const
overridevirtual

Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.

Note that in general and depending on each module design, there can be multiple SpectrumPhy instances per NetDevice.

Returns
a Ptr to the AntennaModel used by this SpectrumPhy instance for transmission and/or reception

Implements ns3::SpectrumPhy.

Definition at line 251 of file half-duplex-ideal-phy.cc.

References m_antenna, and NS_LOG_FUNCTION.

◆ GetDevice()

Ptr< NetDevice > ns3::HalfDuplexIdealPhy::GetDevice ( ) const
overridevirtual

Get the associated NetDevice instance.

Returns
a Ptr to the associated NetDevice instance

Implements ns3::SpectrumPhy.

Definition at line 144 of file half-duplex-ideal-phy.cc.

References m_netDevice, and NS_LOG_FUNCTION.

◆ GetMobility()

Ptr< MobilityModel > ns3::HalfDuplexIdealPhy::GetMobility ( ) const
overridevirtual

Get the associated MobilityModel instance.

Returns
a Ptr to the associated MobilityModel instance

Implements ns3::SpectrumPhy.

Definition at line 151 of file half-duplex-ideal-phy.cc.

References m_mobility, and NS_LOG_FUNCTION.

◆ GetRate()

DataRate ns3::HalfDuplexIdealPhy::GetRate ( ) const

Get the PHY rate to be used by this PHY.

Returns
the PHY rate used by this PHY.

Definition at line 216 of file half-duplex-ideal-phy.cc.

References m_rate, and NS_LOG_FUNCTION.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ GetRxSpectrumModel()

Ptr< const SpectrumModel > ns3::HalfDuplexIdealPhy::GetRxSpectrumModel ( ) const
overridevirtual
Returns
returns the SpectrumModel that this SpectrumPhy expects to be used for all SpectrumValues that are passed to StartRx. If 0 is returned, it means that any model will be accepted.

Implements ns3::SpectrumPhy.

Definition at line 179 of file half-duplex-ideal-phy.cc.

References ns3::SpectrumValue::GetSpectrumModel(), and m_txPsd.

+ Here is the call graph for this function:

◆ GetTypeId()

TypeId ns3::HalfDuplexIdealPhy::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 102 of file half-duplex-ideal-phy.cc.

References GetRate(), m_phyRxAbortTrace, m_phyRxEndErrorTrace, m_phyRxEndOkTrace, m_phyRxStartTrace, m_phyTxEndTrace, m_phyTxStartTrace, ns3::MakeTraceSourceAccessor(), ns3::TypeId::SetParent(), and SetRate().

+ Here is the call graph for this function:

◆ SetAntenna()

void ns3::HalfDuplexIdealPhy::SetAntenna ( Ptr< AntennaModel a)

set the AntennaModel to be used

Parameters
athe Antenna Model

Definition at line 258 of file half-duplex-ideal-phy.cc.

References m_antenna, and NS_LOG_FUNCTION.

◆ SetChannel()

void ns3::HalfDuplexIdealPhy::SetChannel ( Ptr< SpectrumChannel c)
overridevirtual

Set the channel attached to this device.

Parameters
cthe channel

Implements ns3::SpectrumPhy.

Definition at line 172 of file half-duplex-ideal-phy.cc.

References m_channel, and NS_LOG_FUNCTION.

◆ SetDevice()

void ns3::HalfDuplexIdealPhy::SetDevice ( Ptr< NetDevice d)
overridevirtual

Set the associated NetDevice instance.

Parameters
dthe NetDevice instance

Implements ns3::SpectrumPhy.

Definition at line 158 of file half-duplex-ideal-phy.cc.

References m_netDevice, and NS_LOG_FUNCTION.

◆ SetGenericPhyRxEndErrorCallback()

void ns3::HalfDuplexIdealPhy::SetGenericPhyRxEndErrorCallback ( GenericPhyRxEndErrorCallback  c)

set the callback for the end of a RX in error, as part of the interconnections between the PHY and the MAC

Parameters
cthe callback

Definition at line 237 of file half-duplex-ideal-phy.cc.

References m_phyMacRxEndErrorCallback, and NS_LOG_FUNCTION.

◆ SetGenericPhyRxEndOkCallback()

void ns3::HalfDuplexIdealPhy::SetGenericPhyRxEndOkCallback ( GenericPhyRxEndOkCallback  c)

set the callback for the successful end of a RX, as part of the interconnections between the PHY and the MAC

Parameters
cthe callback

Definition at line 244 of file half-duplex-ideal-phy.cc.

References m_phyMacRxEndOkCallback, and NS_LOG_FUNCTION.

◆ SetGenericPhyRxStartCallback()

void ns3::HalfDuplexIdealPhy::SetGenericPhyRxStartCallback ( GenericPhyRxStartCallback  c)

Set the callback for the start of RX, as part of the interconnections between the PHY and the MAC.

Parameters
cthe callback

Definition at line 230 of file half-duplex-ideal-phy.cc.

References m_phyMacRxStartCallback, and NS_LOG_FUNCTION.

◆ SetGenericPhyTxEndCallback()

void ns3::HalfDuplexIdealPhy::SetGenericPhyTxEndCallback ( GenericPhyTxEndCallback  c)

Set the callback for the end of a TX, as part of the interconnections between the PHY and the MAC.

Parameters
cthe callback

Definition at line 223 of file half-duplex-ideal-phy.cc.

References m_phyMacTxEndCallback, and NS_LOG_FUNCTION.

◆ SetMobility()

void ns3::HalfDuplexIdealPhy::SetMobility ( Ptr< MobilityModel m)
overridevirtual

Set the mobility model associated with this device.

Parameters
mthe mobility model

Implements ns3::SpectrumPhy.

Definition at line 165 of file half-duplex-ideal-phy.cc.

References m_mobility, and NS_LOG_FUNCTION.

◆ SetNoisePowerSpectralDensity()

void ns3::HalfDuplexIdealPhy::SetNoisePowerSpectralDensity ( Ptr< const SpectrumValue noisePsd)

Set the Noise Power Spectral Density in power units (Watt, Pascal...) per Hz.

Parameters
noisePsdthe Noise Power Spectral Density

Definition at line 201 of file half-duplex-ideal-phy.cc.

References m_interference, NS_ASSERT, NS_LOG_FUNCTION, and ns3::SpectrumInterference::SetNoisePowerSpectralDensity().

+ Here is the call graph for this function:

◆ SetRate()

void ns3::HalfDuplexIdealPhy::SetRate ( DataRate  rate)

Set the PHY rate to be used by this PHY.

Parameters
rateDataRate

Definition at line 209 of file half-duplex-ideal-phy.cc.

References m_rate, and NS_LOG_FUNCTION.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ SetTxPowerSpectralDensity()

void ns3::HalfDuplexIdealPhy::SetTxPowerSpectralDensity ( Ptr< SpectrumValue txPsd)

Set the Power Spectral Density of outgoing signals in power units (Watt, Pascal...) per Hz.

Parameters
txPsdTx Power Spectral Density

Definition at line 192 of file half-duplex-ideal-phy.cc.

References m_txPsd, NS_ASSERT, NS_LOG_FUNCTION, and NS_LOG_INFO.

◆ StartRx()

void ns3::HalfDuplexIdealPhy::StartRx ( Ptr< SpectrumSignalParameters params)
overridevirtual

Notify the SpectrumPhy instance of an incoming signal.

Parameters
paramsthe parameters of the signals being received

Implements ns3::SpectrumPhy.

Definition at line 330 of file half-duplex-ideal-phy.cc.

References ns3::SpectrumInterference::AddSignal(), ChangeState(), EndRx(), IDLE, ns3::Integral(), ns3::Callback< R, UArgs >::IsNull(), m_endRxEventId, m_interference, m_phyMacRxStartCallback, m_phyRxStartTrace, m_rxPacket, m_rxPsd, m_state, NS_LOG_FUNCTION, NS_LOG_LOGIC, RX, ns3::Simulator::Schedule(), ns3::SpectrumInterference::StartRx(), and TX.

+ Here is the call graph for this function:

◆ StartTx()

bool ns3::HalfDuplexIdealPhy::StartTx ( Ptr< Packet p)

Start a transmission.

Parameters
pthe packet to be transmitted
Returns
true if an error occurred and the transmission was not started, false otherwise.

Definition at line 272 of file half-duplex-ideal-phy.cc.

References AbortRx(), ns3::DataRate::CalculateBytesTxTime(), ChangeState(), EndTx(), IDLE, ns3::Integral(), m_antenna, m_channel, m_phyTxStartTrace, m_rate, m_state, m_txPacket, m_txPsd, NS_LOG_FUNCTION, NS_LOG_LOGIC, RX, ns3::Simulator::Schedule(), and TX.

Referenced by ns3::AdhocAlohaNoackIdealPhyHelper::Install().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_antenna

Ptr<AntennaModel> ns3::HalfDuplexIdealPhy::m_antenna
private

Antenna model.

Definition at line 212 of file half-duplex-ideal-phy.h.

Referenced by GetAntenna(), SetAntenna(), and StartTx().

◆ m_channel

Ptr<SpectrumChannel> ns3::HalfDuplexIdealPhy::m_channel
private

Channel.

Definition at line 214 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), SetChannel(), and StartTx().

◆ m_endRxEventId

EventId ns3::HalfDuplexIdealPhy::m_endRxEventId
private

End Rx event.

Definition at line 209 of file half-duplex-ideal-phy.h.

Referenced by AbortRx(), and StartRx().

◆ m_interference

SpectrumInterference ns3::HalfDuplexIdealPhy::m_interference
private

Received interference.

Definition at line 236 of file half-duplex-ideal-phy.h.

Referenced by HalfDuplexIdealPhy(), AbortRx(), EndRx(), SetNoisePowerSpectralDensity(), and StartRx().

◆ m_mobility

Ptr<MobilityModel> ns3::HalfDuplexIdealPhy::m_mobility
private

Mobility model.

Definition at line 211 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), GetMobility(), and SetMobility().

◆ m_netDevice

Ptr<NetDevice> ns3::HalfDuplexIdealPhy::m_netDevice
private

NetDevice connected to this phy.

Definition at line 213 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), GetDevice(), and SetDevice().

◆ m_phyMacRxEndErrorCallback

GenericPhyRxEndErrorCallback ns3::HalfDuplexIdealPhy::m_phyMacRxEndErrorCallback
private

Callback - Rx error.

Definition at line 233 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), EndRx(), and SetGenericPhyRxEndErrorCallback().

◆ m_phyMacRxEndOkCallback

GenericPhyRxEndOkCallback ns3::HalfDuplexIdealPhy::m_phyMacRxEndOkCallback
private

Callback - Rx end.

Definition at line 234 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), EndRx(), and SetGenericPhyRxEndOkCallback().

◆ m_phyMacRxStartCallback

GenericPhyRxStartCallback ns3::HalfDuplexIdealPhy::m_phyMacRxStartCallback
private

Callback - Rx start.

Definition at line 232 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), SetGenericPhyRxStartCallback(), and StartRx().

◆ m_phyMacTxEndCallback

GenericPhyTxEndCallback ns3::HalfDuplexIdealPhy::m_phyMacTxEndCallback
private

Callback - Tx end.

Definition at line 231 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), EndTx(), and SetGenericPhyTxEndCallback().

◆ m_phyRxAbortTrace

TracedCallback<Ptr<const Packet> > ns3::HalfDuplexIdealPhy::m_phyRxAbortTrace
private

Trace - Rx abort.

Definition at line 227 of file half-duplex-ideal-phy.h.

Referenced by AbortRx(), and GetTypeId().

◆ m_phyRxEndErrorTrace

TracedCallback<Ptr<const Packet> > ns3::HalfDuplexIdealPhy::m_phyRxEndErrorTrace
private

Trace - Rx end (error)

Definition at line 229 of file half-duplex-ideal-phy.h.

Referenced by EndRx(), and GetTypeId().

◆ m_phyRxEndOkTrace

TracedCallback<Ptr<const Packet> > ns3::HalfDuplexIdealPhy::m_phyRxEndOkTrace
private

Trace - Tx end (ok)

Definition at line 228 of file half-duplex-ideal-phy.h.

Referenced by EndRx(), and GetTypeId().

◆ m_phyRxStartTrace

TracedCallback<Ptr<const Packet> > ns3::HalfDuplexIdealPhy::m_phyRxStartTrace
private

Trace - Rx start.

Definition at line 226 of file half-duplex-ideal-phy.h.

Referenced by GetTypeId(), and StartRx().

◆ m_phyTxEndTrace

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

Trace - Tx end.

Definition at line 225 of file half-duplex-ideal-phy.h.

Referenced by EndTx(), and GetTypeId().

◆ m_phyTxStartTrace

TracedCallback<Ptr<const Packet> > ns3::HalfDuplexIdealPhy::m_phyTxStartTrace
private

Trace - Tx start.

Definition at line 224 of file half-duplex-ideal-phy.h.

Referenced by GetTypeId(), and StartTx().

◆ m_rate

DataRate ns3::HalfDuplexIdealPhy::m_rate
private

Datarate.

Definition at line 221 of file half-duplex-ideal-phy.h.

Referenced by GetRate(), SetRate(), and StartTx().

◆ m_rxPacket

Ptr<Packet> ns3::HalfDuplexIdealPhy::m_rxPacket
private

Rx packet.

Definition at line 219 of file half-duplex-ideal-phy.h.

Referenced by AbortRx(), DoDispose(), EndRx(), and StartRx().

◆ m_rxPsd

Ptr<const SpectrumValue> ns3::HalfDuplexIdealPhy::m_rxPsd
private

Rx power spectral density.

Definition at line 217 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), EndRx(), and StartRx().

◆ m_state

State ns3::HalfDuplexIdealPhy::m_state
private

PHY state.

Definition at line 222 of file half-duplex-ideal-phy.h.

Referenced by AbortRx(), ChangeState(), EndRx(), EndTx(), StartRx(), and StartTx().

◆ m_txPacket

Ptr<Packet> ns3::HalfDuplexIdealPhy::m_txPacket
private

Tx packet.

Definition at line 218 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), EndTx(), and StartTx().

◆ m_txPsd

Ptr<SpectrumValue> ns3::HalfDuplexIdealPhy::m_txPsd
private

Tx power spectral density.

Definition at line 216 of file half-duplex-ideal-phy.h.

Referenced by DoDispose(), GetRxSpectrumModel(), SetTxPowerSpectralDensity(), and StartTx().


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