This class implements configuration for frames (for super frames) More...
#include "satellite-frame-conf.h"
Classes | |
struct | SatFrameConfParams_t |
Helper struct to reduce the number of parameters fed into the SatFrameConf constructor. More... | |
Public Types | |
typedef std::vector< Ptr< SatTimeSlotConf > > | SatTimeSlotConfContainer_t |
Define type SatTimeSlotConfContainer_t. More... | |
Public Member Functions | |
SatFrameConf () | |
Default constructor for SatFrameConf. More... | |
SatFrameConf (SatFrameConfParams_t parameters) | |
Constructor for SatFrameConf. More... | |
~SatFrameConf () | |
Destructor for SatFrameConf. More... | |
uint8_t | GetAllocationChannelId () const |
Get allocation channel ID of this frame. More... | |
double | GetBandwidthHz () const |
Get bandwidth of the frame. More... | |
Ptr< SatBtuConf > | GetBtuConf () const |
Get BTU conf of the frame. More... | |
double | GetCarrierBandwidthHz (SatEnums::CarrierBandwidthType_t bandwidthType) const |
Get carrier bandwidth in frame. More... | |
uint16_t | GetCarrierCount () const |
Get carrier count of the frame. More... | |
double | GetCarrierFrequencyHz (uint16_t carrierId) const |
Get carrier center frequency in frame. More... | |
uint32_t | GetCarrierMaxSymbols () const |
Get maximum symbols in carrier. More... | |
uint32_t | GetCarrierMinPayloadInBytes () const |
Get minimum payload of a carrier in bytes. More... | |
Time | GetDuration () const |
Get duration of frame. More... | |
uint8_t | GetGuardTimeSymbols () const |
Get the guard time configuration of this frame. More... | |
Ptr< SatFrameConf > | GetParent () const |
uint8_t | GetSubdivisionLevel () const |
Get the subdivision level of this frame. More... | |
Ptr< SatTimeSlotConf > | GetTimeSlotConf (uint16_t carrierId, uint16_t index) const |
Get time slot conf of the frame. More... | |
Ptr< SatTimeSlotConf > | GetTimeSlotConf (uint16_t index) const |
Get time slot configuration of the frame. More... | |
SatTimeSlotConfContainer_t | GetTimeSlotConfs (uint16_t carrierId) const |
Get time slot of the specific carrier. More... | |
uint16_t | GetTimeSlotCount () const |
Get time slot count of the frame. More... | |
Ptr< SatWaveformConf > | GetWaveformConf () const |
Get waveform configuration of this frame. More... | |
bool | IsLogon () const |
Get state if frame is logon frame. More... | |
bool | IsRandomAccess () const |
Get state if frame is random access frame. More... | |
bool | IsSubdivided () const |
Get wether this frame is subdivided or not. More... | |
Static Public Attributes | |
static const uint16_t | m_maxTimeSlotCount = SatConstVariables::MAXIMUM_TIME_SLOT_ID + 1 |
Private Types | |
typedef std::map< uint16_t, SatTimeSlotConfContainer_t > | SatTimeSlotConfMap_t |
Private Member Functions | |
uint16_t | AddTimeSlotConf (Ptr< SatTimeSlotConf > conf) |
Add time slot. More... | |
Private Attributes | |
uint8_t | m_allocationChannel |
double | m_bandwidthHz |
Ptr< SatBtuConf > | m_btuConf |
uint16_t | m_carrierCount |
Time | m_duration |
uint8_t | m_guardTimeSymbols |
bool | m_isLogon |
bool | m_isRandomAccess |
uint32_t | m_maxSymbolsPerCarrier |
uint32_t | m_minPayloadPerCarrierInBytes |
Ptr< SatFrameConf > | m_parent |
SatTimeSlotConfMap_t | m_timeSlotConfMap |
Ptr< SatWaveformConf > | m_waveformConf |
This class implements configuration for frames (for super frames)
Definition at line 256 of file satellite-frame-conf.h.
typedef std::vector<Ptr<SatTimeSlotConf> > ns3::SatFrameConf::SatTimeSlotConfContainer_t |
Define type SatTimeSlotConfContainer_t.
Definition at line 262 of file satellite-frame-conf.h.
|
private |
Definition at line 489 of file satellite-frame-conf.h.
ns3::SatFrameConf::SatFrameConf | ( | ) |
Default constructor for SatFrameConf.
Definition at line 127 of file satellite-frame-conf.cc.
ns3::SatFrameConf::SatFrameConf | ( | SatFrameConfParams_t | parameters | ) |
Constructor for SatFrameConf.
parameters | Parameters to construct the frame configuration with |
Definition at line 144 of file satellite-frame-conf.cc.
References AddTimeSlotConf(), m_bandwidthHz, m_btuConf, m_carrierCount, ns3::SatFrameConf::SatFrameConfParams_t::m_checkSlotLimit, ns3::SatFrameConf::SatFrameConfParams_t::m_defaultWaveformInUse, m_duration, ns3::SatFrameConf::SatFrameConfParams_t::m_guardTimeSymbols, m_guardTimeSymbols, m_maxSymbolsPerCarrier, m_maxTimeSlotCount, m_minPayloadPerCarrierInBytes, ns3::SatFrameConf::SatFrameConfParams_t::m_targetDuration, m_waveformConf, and ns3::SatTimeSlotConf::SLOT_TYPE_TRC.
ns3::SatFrameConf::~SatFrameConf | ( | ) |
Destructor for SatFrameConf.
Definition at line 233 of file satellite-frame-conf.cc.
|
private |
Add time slot.
conf | Time slot configuration added. |
Definition at line 372 of file satellite-frame-conf.cc.
References m_timeSlotConfMap.
Referenced by SatFrameConf().
|
inline |
Get allocation channel ID of this frame.
Definition at line 467 of file satellite-frame-conf.h.
References m_allocationChannel.
|
inline |
Get bandwidth of the frame.
Definition at line 336 of file satellite-frame-conf.h.
References m_bandwidthHz.
|
inline |
Get BTU conf of the frame.
Definition at line 414 of file satellite-frame-conf.h.
References m_btuConf.
double ns3::SatFrameConf::GetCarrierBandwidthHz | ( | SatEnums::CarrierBandwidthType_t | bandwidthType | ) | const |
Get carrier bandwidth in frame.
bandwidthType | Type of bandwidth requested. |
Definition at line 254 of file satellite-frame-conf.cc.
References ns3::SatEnums::ALLOCATED_BANDWIDTH, ns3::SatEnums::EFFECTIVE_BANDWIDTH, m_btuConf, and ns3::SatEnums::OCCUPIED_BANDWIDTH.
|
inline |
Get carrier count of the frame.
Definition at line 424 of file satellite-frame-conf.h.
References m_carrierCount.
double ns3::SatFrameConf::GetCarrierFrequencyHz | ( | uint16_t | carrierId | ) | const |
Get carrier center frequency in frame.
Definition at line 239 of file satellite-frame-conf.cc.
References m_btuConf, and m_carrierCount.
|
inline |
Get maximum symbols in carrier.
Definition at line 356 of file satellite-frame-conf.h.
References m_maxSymbolsPerCarrier.
|
inline |
Get minimum payload of a carrier in bytes.
Definition at line 366 of file satellite-frame-conf.h.
References m_minPayloadPerCarrierInBytes.
|
inline |
Get duration of frame.
Definition at line 346 of file satellite-frame-conf.h.
References m_duration.
|
inline |
Get the guard time configuration of this frame.
Definition at line 483 of file satellite-frame-conf.h.
References m_guardTimeSymbols.
|
inline |
Definition at line 404 of file satellite-frame-conf.h.
References m_parent.
uint8_t ns3::SatFrameConf::GetSubdivisionLevel | ( | ) | const |
Get the subdivision level of this frame.
Definition at line 283 of file satellite-frame-conf.cc.
References m_parent.
Ptr< SatTimeSlotConf > ns3::SatFrameConf::GetTimeSlotConf | ( | uint16_t | carrierId, |
uint16_t | index | ||
) | const |
Get time slot conf of the frame.
Possible values for id are from 0 to Carrier count - 1.
carrierId | Id of carrier which time slot is requested. |
index | Id of the time slot requested in the carrier of the frame. |
Definition at line 316 of file satellite-frame-conf.cc.
References m_timeSlotConfMap.
Ptr< SatTimeSlotConf > ns3::SatFrameConf::GetTimeSlotConf | ( | uint16_t | index | ) | const |
Get time slot configuration of the frame.
Possible values for id are from 0 to 2047.
index | Id of the time slot requested in frame. |
Definition at line 337 of file satellite-frame-conf.cc.
References m_timeSlotConfMap.
SatFrameConf::SatTimeSlotConfContainer_t ns3::SatFrameConf::GetTimeSlotConfs | ( | uint16_t | carrierId | ) | const |
Get time slot of the specific carrier.
carrierId | Id of the carrier which time slots are requested. |
Definition at line 351 of file satellite-frame-conf.cc.
References m_timeSlotConfMap.
uint16_t ns3::SatFrameConf::GetTimeSlotCount | ( | ) | const |
Get time slot count of the frame.
Definition at line 301 of file satellite-frame-conf.cc.
References m_timeSlotConfMap.
|
inline |
Get waveform configuration of this frame.
Definition at line 475 of file satellite-frame-conf.h.
References m_waveformConf.
|
inline |
Get state if frame is logon frame.
Definition at line 459 of file satellite-frame-conf.h.
References m_isLogon.
|
inline |
Get state if frame is random access frame.
Definition at line 449 of file satellite-frame-conf.h.
References m_isRandomAccess.
|
inline |
Get wether this frame is subdivided or not.
Definition at line 391 of file satellite-frame-conf.h.
References m_parent.
|
private |
Definition at line 499 of file satellite-frame-conf.h.
Referenced by GetAllocationChannelId().
|
private |
Definition at line 491 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and GetBandwidthHz().
|
private |
Definition at line 497 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), GetBtuConf(), GetCarrierBandwidthHz(), and GetCarrierFrequencyHz().
|
private |
Definition at line 500 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), GetCarrierCount(), and GetCarrierFrequencyHz().
|
private |
Definition at line 492 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and GetDuration().
|
private |
Definition at line 504 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and GetGuardTimeSymbols().
|
private |
Definition at line 494 of file satellite-frame-conf.h.
Referenced by IsLogon().
|
private |
Definition at line 493 of file satellite-frame-conf.h.
Referenced by IsRandomAccess().
|
private |
Definition at line 501 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and GetCarrierMaxSymbols().
|
static |
Definition at line 264 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and ns3::SatFrameAllocator::GenerateTimeSlots().
|
private |
Definition at line 502 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and GetCarrierMinPayloadInBytes().
|
private |
Definition at line 496 of file satellite-frame-conf.h.
Referenced by GetParent(), GetSubdivisionLevel(), and IsSubdivided().
|
private |
Definition at line 503 of file satellite-frame-conf.h.
Referenced by AddTimeSlotConf(), GetTimeSlotConf(), GetTimeSlotConfs(), and GetTimeSlotCount().
|
private |
Definition at line 498 of file satellite-frame-conf.h.
Referenced by SatFrameConf(), and GetWaveformConf().