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_Outlet > | GetOutlet (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) |
| ns3::PLC_RxInterface::PLC_RxInterface | ( | Ptr< PLC_Node > | associated_node, |
| Ptr< const SpectrumModel > | sm | ||
| ) |
Constructor
| associated_plc_node | PLC_Node the interface is located on |
| sm | Spectrum model |
| Ptr<PLC_Outlet> ns3::PLC_RxInterface::GetOutlet | ( | void | ) | [inline] |
| uint32_t ns3::PLC_RxInterface::GetRxIfIdx | ( | void | ) | const |
| void ns3::PLC_RxInterface::RxPsdChanged | ( | uint32_t | txId, |
| Ptr< SpectrumValue > | rxSignal | ||
| ) |
Called when rxPsd changes due to channel evolution
| txId | Transmitter index |
| rxSignal | New rxPsd |
| void ns3::PLC_RxInterface::SetIdx | ( | uint32_t | idx | ) | [inline] |
Assign the index returned by PLC_Channel::AddTxInterface to this interface
| idx |
| void ns3::PLC_RxInterface::SetOutlet | ( | Ptr< PLC_Outlet > | outlet | ) |
Connect this interface to an outlet
| 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()
| p | Packet associated with the incoming waveform or NULL for noise |
| rxPsd | received power spectral density |
| metaInfo | meta information for link performance emulation |
1.7.6.1