This class implements super frame sequence. More...
#include "satellite-superframe-sequence.h"
Public Types | |
typedef std::vector< Ptr< SatSuperframeConf > > | SatSuperframeConfList |
Define type SatSuperframeConfList. More... | |
Public Member Functions | |
SatSuperframeSeq () | |
Default constructor for SatSuperframeConf. More... | |
~SatSuperframeSeq () | |
Destructor for SatSuperframeSeq. More... | |
void | AddSuperframe (Ptr< SatSuperframeConf > conf) |
Add super frame (configuration) to super frame sequence. More... | |
void | AddWaveformConf (Ptr< SatWaveformConf > wfConf) |
Add waveform configuration class instance to this superframe sequence. More... | |
double | GetCarrierBandwidthHz (uint32_t carrierId, SatEnums::CarrierBandwidthType_t bandwidthType) const |
Get the bandwidth of the requested carrier. More... | |
uint32_t | GetCarrierCount () const |
Get carrier count of the super frame sequence. More... | |
uint32_t | GetCarrierCount (uint8_t seqId) const |
Get carrier count in the super frame. More... | |
double | GetCarrierFrequencyHz (uint32_t carrierId) const |
Get the center frequency of the requested carrier. More... | |
uint32_t | GetCarrierId (uint8_t superframeId, uint8_t frameId, uint16_t frameCarrierId) const |
Get global carrier id. More... | |
Time | GetDuration (uint8_t seqId) const |
Get duration of the super frame. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the type ID of instance. More... | |
Ptr< SatSuperframeConf > | GetSuperframeConf (uint8_t seqId) const |
Get superframe conf of the sequence. More... | |
Time | GetTargetDuration () const |
Get target duration for sequence. More... | |
Ptr< SatWaveformConf > | GetWaveformConf () const |
Get waveform configuration. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Types | |
typedef std::map< uint32_t, Ptr< SatControlMsgContainer > > | TbtpMap_t |
Private Attributes | |
SatSuperframeConfList | m_superframe |
Super frame sequences. More... | |
Time | m_targetDuration |
Target duration time for sequence. More... | |
Ptr< SatWaveformConf > | m_wfConf |
Waveform configurations. More... | |
This class implements super frame sequence.
It consists information of the super frames in sequence.
Definition at line 44 of file satellite-superframe-sequence.h.
typedef std::vector<Ptr<SatSuperframeConf> > ns3::SatSuperframeSeq::SatSuperframeConfList |
Define type SatSuperframeConfList.
Definition at line 50 of file satellite-superframe-sequence.h.
|
private |
Definition at line 167 of file satellite-superframe-sequence.h.
ns3::SatSuperframeSeq::SatSuperframeSeq | ( | ) |
Default constructor for SatSuperframeConf.
Definition at line 36 of file satellite-superframe-sequence.cc.
ns3::SatSuperframeSeq::~SatSuperframeSeq | ( | ) |
Destructor for SatSuperframeSeq.
Definition at line 41 of file satellite-superframe-sequence.cc.
void ns3::SatSuperframeSeq::AddSuperframe | ( | Ptr< SatSuperframeConf > | conf | ) |
Add super frame (configuration) to super frame sequence.
conf | Super frame configuration to add. (id of the sequence is order number of addition starting from 0) |
Definition at line 84 of file satellite-superframe-sequence.cc.
References m_superframe.
void ns3::SatSuperframeSeq::AddWaveformConf | ( | Ptr< SatWaveformConf > | wfConf | ) |
Add waveform configuration class instance to this superframe sequence.
wfConf | Waveform conf to add |
Definition at line 70 of file satellite-superframe-sequence.cc.
References m_wfConf.
double ns3::SatSuperframeSeq::GetCarrierBandwidthHz | ( | uint32_t | carrierId, |
SatEnums::CarrierBandwidthType_t | bandwidthType | ||
) | const |
Get the bandwidth of the requested carrier.
carrierId | Id of the carrier inside super frame which bandwidth is requested. |
bandwidthType | Type of bandwidth requested. |
Definition at line 191 of file satellite-superframe-sequence.cc.
References m_superframe.
uint32_t ns3::SatSuperframeSeq::GetCarrierCount | ( | ) | const |
Get carrier count of the super frame sequence.
Definition at line 92 of file satellite-superframe-sequence.cc.
References m_superframe.
uint32_t ns3::SatSuperframeSeq::GetCarrierCount | ( | uint8_t | seqId | ) | const |
Get carrier count in the super frame.
seqId | Sequence id of the super frame which carrier count is requested. |
Definition at line 107 of file satellite-superframe-sequence.cc.
References m_superframe.
double ns3::SatSuperframeSeq::GetCarrierFrequencyHz | ( | uint32_t | carrierId | ) | const |
Get the center frequency of the requested carrier.
carrierId | Id of the carrier inside super frame which center frequency is requested. |
Definition at line 167 of file satellite-superframe-sequence.cc.
References m_superframe.
uint32_t ns3::SatSuperframeSeq::GetCarrierId | ( | uint8_t | superframeId, |
uint8_t | frameId, | ||
uint16_t | frameCarrierId | ||
) | const |
Get global carrier id.
Converts super frame specific id to global carrier id.
superframeId | Id of the super frame requested. |
frameId | Id of the frame inside super frame requested. |
frameCarrierId | Id of the carrier inside frame requested. |
Definition at line 146 of file satellite-superframe-sequence.cc.
References m_superframe.
Time ns3::SatSuperframeSeq::GetDuration | ( | uint8_t | seqId | ) | const |
Get duration of the super frame.
seqId | Sequence id of the super frame which duration is requested. |
Definition at line 120 of file satellite-superframe-sequence.cc.
References m_superframe.
|
virtual |
Get the type ID of instance.
Definition at line 62 of file satellite-superframe-sequence.cc.
References GetTypeId().
Ptr< SatSuperframeConf > ns3::SatSuperframeSeq::GetSuperframeConf | ( | uint8_t | seqId | ) | const |
Get superframe conf of the sequence.
seqId | Id of the super frame sequence requested. |
Definition at line 133 of file satellite-superframe-sequence.cc.
References m_superframe.
|
inline |
Get target duration for sequence.
Definition at line 161 of file satellite-superframe-sequence.h.
References m_targetDuration.
|
static |
Get the type ID.
Definition at line 47 of file satellite-superframe-sequence.cc.
References m_targetDuration.
Referenced by GetInstanceTypeId().
Ptr< SatWaveformConf > ns3::SatSuperframeSeq::GetWaveformConf | ( | ) | const |
Get waveform configuration.
Definition at line 77 of file satellite-superframe-sequence.cc.
References m_wfConf.
|
private |
Super frame sequences.
Table includes super frame configurations for the return link. Item index of the list means super frame sequence (SFS).
Definition at line 175 of file satellite-superframe-sequence.h.
Referenced by AddSuperframe(), GetCarrierBandwidthHz(), GetCarrierCount(), GetCarrierFrequencyHz(), GetCarrierId(), GetDuration(), and GetSuperframeConf().
|
private |
Target duration time for sequence.
Definition at line 185 of file satellite-superframe-sequence.h.
Referenced by GetTargetDuration(), and GetTypeId().
|
private |
Waveform configurations.
Definition at line 180 of file satellite-superframe-sequence.h.
Referenced by AddWaveformConf(), and GetWaveformConf().