SpectrumChannel implementation which handles a single spectrum model. More...
#include <single-model-spectrum-channel.h>


Public Types | |
|
typedef std::vector< Ptr < SpectrumPhy > > | PhyList |
Public Member Functions | |
| virtual void | AddSpectrumPropagationLossModel (Ptr< SpectrumPropagationLossModel > loss) |
| virtual void | SetPropagationDelayModel (Ptr< PropagationDelayModel > delay) |
| virtual void | AddRx (Ptr< SpectrumPhy > phy) |
| add a SpectrumPhy to a channel, so it can receive packets | |
| virtual void | StartTx (Ptr< PacketBurst > p, Ptr< SpectrumValue > txPsd, SpectrumType st, Time duration, Ptr< SpectrumPhy > sender) |
| virtual uint32_t | GetNDevices (void) const |
| virtual Ptr< NetDevice > | GetDevice (uint32_t i) const |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| This method returns the TypeId associated to ns3::SingleModelSpectrumChannel. | |
SpectrumChannel implementation which handles a single spectrum model.
All SpectrumPhy layers attached to this SpectrumChannel
| virtual void ns3::SingleModelSpectrumChannel::AddRx | ( | Ptr< SpectrumPhy > | phy | ) | [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. |
Implements ns3::SpectrumChannel.
| virtual void ns3::SingleModelSpectrumChannel::AddSpectrumPropagationLossModel | ( | Ptr< SpectrumPropagationLossModel > | loss | ) | [virtual] |
set the propagation loss model to be used
| loss | Ptr to the propagation loss model to be used. |
Implements ns3::SpectrumChannel.
| i | index of NetDevice to retrieve |
This method must be implemented by subclasses.
Implements ns3::Channel.
| virtual uint32_t ns3::SingleModelSpectrumChannel::GetNDevices | ( | void | ) | const [virtual] |
This method must be implemented by subclasses.
Implements ns3::Channel.
| static TypeId ns3::SingleModelSpectrumChannel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::SingleModelSpectrumChannel.
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::SpectrumChannel.
| virtual void ns3::SingleModelSpectrumChannel::SetPropagationDelayModel | ( | Ptr< PropagationDelayModel > | delay | ) | [virtual] |
set the propagation delay model to be used
| delay | Ptr to the propagation delay model to be used. |
Implements ns3::SpectrumChannel.
| virtual void ns3::SingleModelSpectrumChannel::StartTx | ( | Ptr< PacketBurst > | p, | |
| Ptr< SpectrumValue > | txPsd, | |||
| SpectrumType | st, | |||
| Time | duration, | |||
| Ptr< SpectrumPhy > | sender | |||
| ) | [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 |
Implements ns3::SpectrumChannel.
1.7.1