UT information helper class for SatBeamScheduler. More...
Public Member Functions | |
SatUtInfo (Ptr< SatDamaEntry > damaEntry, Ptr< SatCnoEstimator > cnoEstimator, Time controlSlotOffset, bool controlSlotsEnabled) | |
Construct SatUtInfo. More... | |
void | AddCnoSample (double sample) |
Add C/N0 sample to UT info's estimator. More... | |
void | AddCrMsg (Ptr< SatCrMessage > crMsg) |
Add CR message to UT info to be used when capacity request is calculated next time (method UpdateDamaEntryFromCrs is called). More... | |
void | ClearCrMsgs () |
Remove all CR messages from UT info to reset capacity requests in case of handover. More... | |
double | GetCnoEstimation () |
Get estimated C/N0 value based on added samples. More... | |
Ptr< SatDamaEntry > | GetDamaEntry () |
Get damaEntry of the UT info. More... | |
bool | IsControlSlotGenerationTime () const |
Check if time is expired to send control slot. More... | |
void | SetControlSlotGenerationTime (Time offset) |
Set time for next time slot generation for this UT. More... | |
void | UpdateDamaEntryFromCrs () |
Update DamaEntry with information of the received CR messages. More... | |
Private Types | |
typedef std::vector< Ptr< SatCrMessage > > | CrMsgContainer_t |
Container to store received CR messages. More... | |
Private Attributes | |
Ptr< SatCnoEstimator > | m_cnoEstimator |
Estimator for the C/N0. More... | |
Time | m_controlSlotGenerationTime |
Time to send next control time slot. More... | |
bool | m_controlSlotsEnabled |
Flag to indicated if control time slots generation is enabled. More... | |
CrMsgContainer_t | m_crContainer |
Received CRs since last update round (call of the method UpdateDamaEntryFromCrs). More... | |
Ptr< SatDamaEntry > | m_damaEntry |
DamaEntry of this UT info. More... | |
UT information helper class for SatBeamScheduler.
Stores capacity request and C/N0 estimation information of the UT.
Definition at line 352 of file satellite-beam-scheduler.h.
|
private |
Container to store received CR messages.
Definition at line 427 of file satellite-beam-scheduler.h.
ns3::SatBeamScheduler::SatUtInfo::SatUtInfo | ( | Ptr< SatDamaEntry > | damaEntry, |
Ptr< SatCnoEstimator > | cnoEstimator, | ||
Time | controlSlotOffset, | ||
bool | controlSlotsEnabled | ||
) |
Construct SatUtInfo.
damaEntry | DamaEntry for created UT info. |
cnoEstimator | C/N0 estimator for the UT info. |
controlSlotOffset | Offset of the current moment to generate control slot. |
controlSlotsEnabled | Flag to tell if control slots generation is enabled according to controlSlotOffset |
Definition at line 58 of file satellite-beam-scheduler.cc.
References SetControlSlotGenerationTime().
void ns3::SatBeamScheduler::SatUtInfo::AddCnoSample | ( | double | sample | ) |
Add C/N0 sample to UT info's estimator.
sample | C/N0 sample value to add. |
Definition at line 141 of file satellite-beam-scheduler.cc.
void ns3::SatBeamScheduler::SatUtInfo::AddCrMsg | ( | Ptr< SatCrMessage > | crMsg | ) |
Add CR message to UT info to be used when capacity request is calculated next time (method UpdateDamaEntryFromCrs is called).
crMsg |
Definition at line 149 of file satellite-beam-scheduler.cc.
void ns3::SatBeamScheduler::SatUtInfo::ClearCrMsgs | ( | ) |
Remove all CR messages from UT info to reset capacity requests in case of handover.
Definition at line 157 of file satellite-beam-scheduler.cc.
double ns3::SatBeamScheduler::SatUtInfo::GetCnoEstimation | ( | ) |
Get estimated C/N0 value based on added samples.
Definition at line 133 of file satellite-beam-scheduler.cc.
Ptr< SatDamaEntry > ns3::SatBeamScheduler::SatUtInfo::GetDamaEntry | ( | ) |
Get damaEntry of the UT info.
Definition at line 72 of file satellite-beam-scheduler.cc.
bool ns3::SatBeamScheduler::SatUtInfo::IsControlSlotGenerationTime | ( | ) | const |
Check if time is expired to send control slot.
Definition at line 165 of file satellite-beam-scheduler.cc.
References ns3::SatBeamScheduler::m_controlSlotsEnabled.
void ns3::SatBeamScheduler::SatUtInfo::SetControlSlotGenerationTime | ( | Time | offset | ) |
Set time for next time slot generation for this UT.
offset | Offset of the current moment to generate control slot. |
Definition at line 180 of file satellite-beam-scheduler.cc.
Referenced by SatUtInfo().
void ns3::SatBeamScheduler::SatUtInfo::UpdateDamaEntryFromCrs | ( | ) |
Update DamaEntry with information of the received CR messages.
Definition at line 80 of file satellite-beam-scheduler.cc.
References ns3::SatEnums::DA_AVBDC, ns3::SatEnums::DA_RBDC, and ns3::SatEnums::DA_VBDC.
|
private |
Estimator for the C/N0.
Definition at line 437 of file satellite-beam-scheduler.h.
|
private |
Time to send next control time slot.
Definition at line 447 of file satellite-beam-scheduler.h.
|
private |
Flag to indicated if control time slots generation is enabled.
Definition at line 452 of file satellite-beam-scheduler.h.
|
private |
Received CRs since last update round (call of the method UpdateDamaEntryFromCrs).
Definition at line 442 of file satellite-beam-scheduler.h.
|
private |
DamaEntry of this UT info.
Definition at line 432 of file satellite-beam-scheduler.h.