#include <spectrum-channel.h>
Public Member Functions | |
virtual void | AddSpectrumPropagationLossModel (Ptr< SpectrumPropagationLossModel > loss)=0 |
virtual void | SetPropagationDelayModel (Ptr< PropagationDelayModel > delay)=0 |
virtual void | StartTx (Ptr< PacketBurst > p, Ptr< SpectrumValue > txPsd, SpectrumType st, Time duration, Ptr< SpectrumPhy > sender)=0 |
virtual void | AddRx (Ptr< SpectrumPhy > phy)=0 |
add a SpectrumPhy to a channel, so it can receive packets | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::SpectrumChannel. |
Defines the interface for spectrum-aware channel implementations
virtual void ns3::SpectrumChannel::AddRx | ( | Ptr< SpectrumPhy > | phy | ) | [pure virtual] |
add a SpectrumPhy to a channel, so it can receive packets
This method is used to attach a SpectrumPhy instance to a SpectrumChannel instance, so that the SpectrumPhy can receive packets sent on that channel. Note that a SpectrumPhy that only transmits (without receiveing ever) does not need to be added to the channel.
This method is to be implemented by all classes inheriting from SpectrumChannel.
phy | the SpectrumPhy instance to be added to the channel as a receiver. |
Implemented in ns3::MultiModelSpectrumChannel, and ns3::SingleModelSpectrumChannel.
virtual void ns3::SpectrumChannel::AddSpectrumPropagationLossModel | ( | Ptr< SpectrumPropagationLossModel > | loss | ) | [pure virtual] |
set the propagation loss model to be used
loss | Ptr to the propagation loss model to be used. |
Implemented in ns3::MultiModelSpectrumChannel, and ns3::SingleModelSpectrumChannel.
static TypeId ns3::SpectrumChannel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::SpectrumChannel.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
Attributes defined in parent class ns3::Channel:
No TraceSources defined for this type.
Reimplemented from ns3::Channel.
Reimplemented in ns3::MultiModelSpectrumChannel, and ns3::SingleModelSpectrumChannel.
virtual void ns3::SpectrumChannel::SetPropagationDelayModel | ( | Ptr< PropagationDelayModel > | delay | ) | [pure virtual] |
set the propagation delay model to be used
delay | Ptr to the propagation delay model to be used. |
Implemented in ns3::MultiModelSpectrumChannel, and ns3::SingleModelSpectrumChannel.
virtual void ns3::SpectrumChannel::StartTx | ( | Ptr< PacketBurst > | p, | |
Ptr< SpectrumValue > | txPsd, | |||
SpectrumType | st, | |||
Time | duration, | |||
Ptr< SpectrumPhy > | sender | |||
) | [pure virtual] |
Used by attached PHY instances to transmit waveforms on the channel
p | the PacketBurst associated with the waveform being transmitted | |
txPsd | the Power Spectral Density of the waveform, in linear units. The exact unit will depend on the type of transmission medium involved: W for radio communications, Pa for underwater acoustic communications. Other transmission media to be defined. | |
st | spectrum type | |
duration | duration of the packet transmission. It is assumed that the Power Spectral Density remains constant for the whole duration of the transmission. In other words, all waveform have a rect shape with respect to time. | |
sender | the SpectrumPhy instance making this function call |
Implemented in ns3::MultiModelSpectrumChannel, and ns3::SingleModelSpectrumChannel.