ns-3 PLC model
 All Classes Functions Variables Enumerations
Public Member Functions | Static Public Member Functions | Friends
ns3::PLC_TxInterface Class Reference

Interface with transmitting ability. More...

#include <plc-interface.h>

Inheritance diagram for ns3::PLC_TxInterface:
ns3::PLC_Interface

List of all members.

Public Member Functions

 PLC_TxInterface (Ptr< PLC_Node > associated_plc_node, Ptr< const SpectrumModel > sm)
void SetIdx (uint32_t idx)
uint32_t GetTxIfIdx (void) const
Ptr< const SpectrumValue > GetTxPsd (void)
void InitializeChannelTransferImpls (void)
void CalculateChannels (void)
PLC_ChannelTransferImplGetChannelTransferImpl (PLC_RxInterface *rxInterface)
std::list< PLC_BackboneBranch * > GetBackbonePath (PLC_RxInterface *sink)
PLC_BackbonePath::iterator BackbonePathBegin (PLC_RxInterface *sink)
PLC_BackbonePath::iterator BackbonePathEnd (PLC_RxInterface *sink)
void StartTx (Ptr< const Packet > p, Ptr< const SpectrumValue > txPsd, Time duration, Ptr< const PLC_TrxMetaInfo > metaInfo)

Static Public Member Functions

static TypeId GetTypeId (void)

Friends

class PLC_Outlet

Detailed Description

Interface with transmitting ability.

Interface with receiving ability.


Constructor & Destructor Documentation

ns3::PLC_TxInterface::PLC_TxInterface ( Ptr< PLC_Node associated_plc_node,
Ptr< const SpectrumModel >  sm 
)

Constructor

Parameters:
associated_plc_nodePLC_Node the interface is located on
smSpectrum model

Member Function Documentation

PLC_BackbonePath::iterator ns3::PLC_TxInterface::BackbonePathBegin ( PLC_RxInterface sink)
Parameters:
sinkRX Interface of the backbone path
Returns:
Iterator to start of the backbone path to sink
PLC_BackbonePath::iterator ns3::PLC_TxInterface::BackbonePathEnd ( PLC_RxInterface sink)
Parameters:
sinkRX Interface of the backbone path
Returns:
Iterator to end of the backbone path to sink

Calculate the channel transfer function to each receiver interface

Only call after InitializeChannelTransferImpls()

Get the backbone path between this tx interface and the sink rx interface An empty list indicates a direct connection

Parameters:
sinkRX Interface of the backbone path
Returns:
Backbone path

Get the channel transfer implementation that has the channel transfer data to rxInterface

Parameters:
rxInterface
Returns:
Channel transfer implementation to rxInterface
uint32_t ns3::PLC_TxInterface::GetTxIfIdx ( void  ) const
Returns:
Index the interface is registered with the channel
Ptr<const SpectrumValue> ns3::PLC_TxInterface::GetTxPsd ( void  ) [inline]
Returns:
The most recent used transmission power spectral density

Initialize channel implementations from this transmission interface to each known receiver interface.

Only call after all interfaces have been added to PLC_Channel

void ns3::PLC_TxInterface::SetIdx ( uint32_t  idx) [inline]

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

Parameters:
idx
void ns3::PLC_TxInterface::StartTx ( Ptr< const Packet >  p,
Ptr< const SpectrumValue >  txPsd,
Time  duration,
Ptr< const PLC_TrxMetaInfo metaInfo 
)

Start transmission from this tx interface

Parameters:
pPacket to be transmitted or NULL for noise signal
metaInfoMeta information for link performance emulation

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