Container of Satellite channels pairs. More...
#include "satellite-beam-channel-pair.h"
Public Types | |
typedef std::pair< Ptr< SatChannel >, Ptr< SatChannel > > | ChannelPair_t |
Public Member Functions | |
SatChannelPair () | |
Default constructor. More... | |
virtual | ~SatChannelPair () |
Destructor for SatChannel. More... | |
ChannelPair_t | GetChannelPair (uint32_t satId, uint32_t beamId) const |
Retrieve the channel pair associated to a beam. More... | |
Ptr< SatChannel > | GetForwardChannel (uint32_t satId, uint32_t frequencyId) const |
Ptr< SatChannel > | GetReturnChannel (uint32_t satId, uint32_t frequencyId) const |
bool | HasFwdChannel (uint32_t satId, uint32_t frequencyId) const |
Test if a channel pair has been stored for a given color. More... | |
bool | HasRtnChannel (uint32_t satId, uint32_t frequencyId) const |
void | StoreChannelPair (uint32_t satId, uint32_t beamId, uint32_t fwdFrequencyId, Ptr< SatChannel > fwdChannel, uint32_t rtnFrequencyId, Ptr< SatChannel > rtnChannel) |
Store a pair of SatChannel for the given color and associate the given beam to said color. More... | |
void | UpdateBeamsForFrequency (uint32_t satId, uint32_t beamdId, uint32_t fwdFrequencyId, uint32_t rtnFrequencyId) |
Associate a new beam to a given color. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
std::map< std::pair< uint32_t, uint32_t >, std::pair< uint32_t, uint32_t > > | m_frequencies |
std::map< std::pair< uint32_t, uint32_t >, Ptr< SatChannel > > | m_fwdChannels |
std::map< std::pair< uint32_t, uint32_t >, Ptr< SatChannel > > | m_rtnChannels |
Container of Satellite channels pairs.
As a Satellite channel is mapped into a frequency band and act as data transmitter in a single direction, a pair of Satellite channels represent a bidirectionnal link between either an UT and the Satellite or a GW and the Satellite.
The main task of the SatChannelPair is to store such bidirectionnal link information on a per-beam basis.
Definition at line 49 of file satellite-beam-channel-pair.h.
typedef std::pair<Ptr<SatChannel>, Ptr<SatChannel> > ns3::SatChannelPair::ChannelPair_t |
Definition at line 53 of file satellite-beam-channel-pair.h.
ns3::SatChannelPair::SatChannelPair | ( | ) |
Default constructor.
Definition at line 46 of file satellite-beam-channel-pair.cc.
|
virtual |
Destructor for SatChannel.
Definition at line 54 of file satellite-beam-channel-pair.cc.
References m_frequencies, m_fwdChannels, and m_rtnChannels.
SatChannelPair::ChannelPair_t ns3::SatChannelPair::GetChannelPair | ( | uint32_t | satId, |
uint32_t | beamId | ||
) | const |
Retrieve the channel pair associated to a beam.
satId | the ID of the satellite |
beamId | the ID of the beam |
Definition at line 63 of file satellite-beam-channel-pair.cc.
References GetForwardChannel(), GetReturnChannel(), and m_frequencies.
Referenced by ns3::SatBeamHelper::InstallFeeder(), and ns3::SatBeamHelper::InstallUser().
Ptr< SatChannel > ns3::SatChannelPair::GetForwardChannel | ( | uint32_t | satId, |
uint32_t | frequencyId | ||
) | const |
Definition at line 81 of file satellite-beam-channel-pair.cc.
References m_fwdChannels.
Referenced by GetChannelPair().
Ptr< SatChannel > ns3::SatChannelPair::GetReturnChannel | ( | uint32_t | satId, |
uint32_t | frequencyId | ||
) | const |
Definition at line 95 of file satellite-beam-channel-pair.cc.
References m_rtnChannels.
Referenced by GetChannelPair().
|
static |
Get the type ID.
Definition at line 39 of file satellite-beam-channel-pair.cc.
bool ns3::SatChannelPair::HasFwdChannel | ( | uint32_t | satId, |
uint32_t | frequencyId | ||
) | const |
Test if a channel pair has been stored for a given color.
satId | the ID of the satellite |
frequencyId | the ID of the color |
Definition at line 109 of file satellite-beam-channel-pair.cc.
References m_fwdChannels.
bool ns3::SatChannelPair::HasRtnChannel | ( | uint32_t | satId, |
uint32_t | frequencyId | ||
) | const |
Definition at line 119 of file satellite-beam-channel-pair.cc.
References m_rtnChannels.
void ns3::SatChannelPair::StoreChannelPair | ( | uint32_t | satId, |
uint32_t | beamId, | ||
uint32_t | fwdFrequencyId, | ||
Ptr< SatChannel > | fwdChannel, | ||
uint32_t | rtnFrequencyId, | ||
Ptr< SatChannel > | rtnChannel | ||
) |
Store a pair of SatChannel for the given color and associate the given beam to said color.
satId | the ID of the satellite |
beamId | the ID of the beam |
frequencyId | the ID of the color |
channels | the SatChannel pair to store |
Definition at line 149 of file satellite-beam-channel-pair.cc.
References m_fwdChannels, m_rtnChannels, and UpdateBeamsForFrequency().
void ns3::SatChannelPair::UpdateBeamsForFrequency | ( | uint32_t | satId, |
uint32_t | beamdId, | ||
uint32_t | fwdFrequencyId, | ||
uint32_t | rtnFrequencyId | ||
) |
Associate a new beam to a given color.
satId | the ID of the satellite |
beamId | the ID of the beam |
frequencyId | the ID of the color |
Definition at line 129 of file satellite-beam-channel-pair.cc.
References m_frequencies.
Referenced by StoreChannelPair().
|
private |
Definition at line 121 of file satellite-beam-channel-pair.h.
Referenced by ~SatChannelPair(), GetChannelPair(), and UpdateBeamsForFrequency().
|
private |
Definition at line 122 of file satellite-beam-channel-pair.h.
Referenced by ~SatChannelPair(), GetForwardChannel(), HasFwdChannel(), and StoreChannelPair().
|
private |
Definition at line 123 of file satellite-beam-channel-pair.h.
Referenced by ~SatChannelPair(), GetReturnChannel(), HasRtnChannel(), and StoreChannelPair().