22 #ifndef MULTI_MODEL_SPECTRUM_CHANNEL_H 23 #define MULTI_MODEL_SPECTRUM_CHANNEL_H 25 #include <ns3/spectrum-value.h> 26 #include <ns3/spectrum-converter.h> 27 #include <ns3/spectrum-channel.h> 28 #include <ns3/spectrum-propagation-loss-model.h> 29 #include <ns3/propagation-delay-model.h> std::set< Ptr< SpectrumPhy > > m_rxPhySet
Container of the Rx Spectrum phy objects.
virtual Ptr< NetDevice > GetDevice(std::size_t i) const
The Rx spectrum model information.
std::map< SpectrumModelUid_t, SpectrumConverter > SpectrumConverterMap_t
Container: SpectrumModelUid_t, SpectrumConverter.
RxSpectrumModelInfoMap_t m_rxSpectrumModelInfoMap
Data structure holding, for each RX spectrum model, all the corresponding SpectrumPhy instances...
This SpectrumChannel implementation can handle the presence of SpectrumPhy instances which can use di...
std::size_t m_numDevices
Number of devices connected to the channel.
Ptr< const SpectrumModel > m_rxSpectrumModel
Rx Spectrum model.
Ptr< const SpectrumModel > m_txSpectrumModel
Tx Spectrum model.
static TypeId GetTypeId(void)
Get the type ID.
virtual void AddRx(Ptr< SpectrumPhy > phy)
Add a SpectrumPhy to a channel, so it can receive packets.
TxSpectrumModelInfoMap_t::const_iterator FindAndEventuallyAddTxSpectrumModel(Ptr< const SpectrumModel > txSpectrumModel)
This method checks if m_rxSpectrumModelInfoMap contains an entry for the given TX SpectrumModel...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual std::size_t GetNDevices(void) const
RxSpectrumModelInfo(Ptr< const SpectrumModel > rxSpectrumModel)
Constructor.
std::map< SpectrumModelUid_t, RxSpectrumModelInfo > RxSpectrumModelInfoMap_t
Container: SpectrumModelUid_t, RxSpectrumModelInfo.
void DoDispose()
Destructor implementation.
SpectrumConverterMap_t m_spectrumConverterMap
Spectrum converter.
virtual void StartTx(Ptr< SpectrumSignalParameters > params)
Used by attached PHY instances to transmit signals on the channel.
TxSpectrumModelInfoMap_t m_txSpectrumModelInfoMap
Data structure holding, for each TX SpectrumModel, all the converters to any RX SpectrumModel, and all the corresponding SpectrumPhy instances.
Defines the interface for spectrum-aware channel implementations.
TxSpectrumModelInfo(Ptr< const SpectrumModel > txSpectrumModel)
Constructor.
MultiModelSpectrumChannel()
a unique identifier for an interface.
virtual void StartRx(Ptr< SpectrumSignalParameters > params, Ptr< SpectrumPhy > receiver)
Used internally to reschedule transmission after the propagation delay.
std::map< SpectrumModelUid_t, TxSpectrumModelInfo > TxSpectrumModelInfoMap_t
Container: SpectrumModelUid_t, TxSpectrumModelInfo.
The Tx spectrum model information.