ns-3 PLC model
 All Classes Functions Variables Enumerations
Public Member Functions | Static Public Member Functions
ns3::PLC_RxInterface Class Reference
Inheritance diagram for ns3::PLC_RxInterface:
ns3::PLC_Interface

List of all members.

Public Member Functions

 PLC_RxInterface (Ptr< PLC_Node > associated_node, Ptr< const SpectrumModel > sm)
void SetIdx (uint32_t idx)
uint32_t GetRxIfIdx (void) const
void SetOutlet (Ptr< PLC_Outlet > outlet)
Ptr< PLC_OutletGetOutlet (void)
void StartRx (Ptr< const Packet > p, uint32_t txId, Ptr< SpectrumValue > &rxPsd, Time duration, Ptr< const PLC_TrxMetaInfo > metaInfo)
void RxPsdChanged (uint32_t txId, Ptr< SpectrumValue > rxSignal)

Static Public Member Functions

static TypeId GetTypeId (void)

Constructor & Destructor Documentation

ns3::PLC_RxInterface::PLC_RxInterface ( Ptr< PLC_Node associated_node,
Ptr< const SpectrumModel >  sm 
)

Constructor

Parameters:
associated_plc_nodePLC_Node the interface is located on
smSpectrum model

Member Function Documentation

Ptr<PLC_Outlet> ns3::PLC_RxInterface::GetOutlet ( void  ) [inline]
Returns:
Outlet the interface is connected with
uint32_t ns3::PLC_RxInterface::GetRxIfIdx ( void  ) const
Returns:
Index the interface is registered with the channel
void ns3::PLC_RxInterface::RxPsdChanged ( uint32_t  txId,
Ptr< SpectrumValue >  rxSignal 
)

Called when rxPsd changes due to channel evolution

Parameters:
txIdTransmitter index
rxSignalNew rxPsd
void ns3::PLC_RxInterface::SetIdx ( uint32_t  idx) [inline]

Assign the index returned by PLC_Channel::AddTxInterface to this interface

Parameters:
idx

Connect this interface to an outlet

Parameters:
outlet
void ns3::PLC_RxInterface::StartRx ( Ptr< const Packet >  p,
uint32_t  txId,
Ptr< SpectrumValue > &  rxPsd,
Time  duration,
Ptr< const PLC_TrxMetaInfo metaInfo 
)

Start receiving. Called by PLC_Channel::TransmissionStart()

Parameters:
pPacket associated with the incoming waveform or NULL for noise
rxPsdreceived power spectral density
metaInfometa information for link performance emulation

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations