21 #ifndef SATELLITE_BEAM_CHANNEL_PAIR_H
22 #define SATELLITE_BEAM_CHANNEL_PAIR_H
27 #include <ns3/object.h>
52 typedef std::pair<Ptr<SatChannel>, Ptr<SatChannel>>
79 Ptr<SatChannel>
GetReturnChannel(uint32_t satId, uint32_t frequencyId)
const;
88 bool HasFwdChannel(uint32_t satId, uint32_t frequencyId)
const;
89 bool HasRtnChannel(uint32_t satId, uint32_t frequencyId)
const;
100 uint32_t fwdFrequencyId,
101 uint32_t rtnFrequencyId);
114 uint32_t fwdFrequencyId,
115 Ptr<SatChannel> fwdChannel,
116 uint32_t rtnFrequencyId,
117 Ptr<SatChannel> rtnChannel);
120 std::map<std::pair<uint32_t, uint32_t>, std::pair<uint32_t, uint32_t>>
Container of Satellite channels pairs.
virtual ~SatChannelPair()
Destructor for SatChannel.
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.
void UpdateBeamsForFrequency(uint32_t satId, uint32_t beamdId, uint32_t fwdFrequencyId, uint32_t rtnFrequencyId)
Associate a new beam to a given color.
std::map< std::pair< uint32_t, uint32_t >, Ptr< SatChannel > > m_fwdChannels
static TypeId GetTypeId(void)
Get the type ID.
bool HasRtnChannel(uint32_t satId, uint32_t frequencyId) const
std::map< std::pair< uint32_t, uint32_t >, Ptr< SatChannel > > m_rtnChannels
std::pair< Ptr< SatChannel >, Ptr< SatChannel > > ChannelPair_t
ChannelPair_t GetChannelPair(uint32_t satId, uint32_t beamId) const
Retrieve the channel pair associated to a beam.
std::map< std::pair< uint32_t, uint32_t >, std::pair< uint32_t, uint32_t > > m_frequencies
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.
SatChannelPair()
Default constructor.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.