class for module SatDamaEntry. More...
#include "satellite-dama-entry.h"
Inheritance diagram for ns3::SatDamaEntry:
Collaboration diagram for ns3::SatDamaEntry:Public Member Functions | |
| SatDamaEntry () | |
| Default construct a SatDamaEntry. More... | |
| SatDamaEntry (Ptr< SatLowerLayerServiceConf > llsConf) | |
| Actual construct a SatDamaEntry. More... | |
| ~SatDamaEntry () | |
| Destroy a SatDamaEntry. More... | |
| void | DecrementDynamicRatePersistence () |
| Decrement dynamic rate persistence. More... | |
| void | DecrementVolumeBacklogPersistence () |
| Decrement volume backlog persistence. More... | |
| uint32_t | GetCraBasedBytes (Time duration) const |
| Get CRA based bytes with given duration. More... | |
| uint16_t | GetCraInKbps (uint8_t index) const |
| Get configured value of the CRA. More... | |
| uint32_t | GetMinRateBasedBytes (Time duration) const |
| Get minimum rate based bytes with given duration. More... | |
| uint16_t | GetMinRbdcInKbps (uint8_t index) const |
| Get configured value of the minimum RBDC. More... | |
| uint32_t | GetRbdcBasedBytes (Time duration) const |
| Get RBDC based bytes with given duration. More... | |
| uint16_t | GetRbdcInKbps (uint8_t index) const |
| Get current value of the RBDC requested. More... | |
| uint8_t | GetRcCount () const |
| Get number of RCs in the SatDamaEntry. More... | |
| uint32_t | GetVbdcBasedBytes () const |
| Get VBDC based bytes. More... | |
| uint32_t | GetVbdcInBytes (uint8_t index) const |
| Get current value of the VBDC requested. More... | |
| void | ResetDynamicRatePersistence () |
| Reset dynamic rate persistence to the value given in lower layer service configuration. More... | |
| void | ResetVolumeBacklogPersistence () |
| Reset volume backlog persistence to the value given in lower layer service configuration. More... | |
| void | SetVbdcInBytes (uint8_t index, uint32_t volumeInBytes) |
| Set VBDC request of the RC. More... | |
| void | UpdateRbdcInKbps (uint8_t index, uint16_t rateInKbps) |
| Update RBDC request of a RC. More... | |
| void | UpdateVbdcInBytes (uint8_t index, uint32_t volumeInBytes) |
| Update VBDC request of the RC. More... | |
Private Attributes | |
| uint8_t | m_dynamicRatePersistence |
| std::vector< uint16_t > | m_dynamicRateRequestedInKbps |
| Ptr< SatLowerLayerServiceConf > | m_llsConf |
| uint8_t | m_volumeBacklogPersistence |
| std::vector< uint32_t > | m_volumeBacklogRequestedInBytes |
class for module SatDamaEntry.
This SatDamaEntry class holds information of a satellite DAMA entry. It's is created and used by NCC.
Definition at line 43 of file satellite-dama-entry.h.
| ns3::SatDamaEntry::SatDamaEntry | ( | ) |
Default construct a SatDamaEntry.
This version of the constructor shall not used.
Definition at line 36 of file satellite-dama-entry.cc.
| ns3::SatDamaEntry::SatDamaEntry | ( | Ptr< SatLowerLayerServiceConf > | llsConf | ) |
Actual construct a SatDamaEntry.
Definition at line 44 of file satellite-dama-entry.cc.
References m_dynamicRateRequestedInKbps, m_llsConf, and m_volumeBacklogRequestedInBytes.
| ns3::SatDamaEntry::~SatDamaEntry | ( | ) |
Destroy a SatDamaEntry.
This is the destructor for the SatDamaEntry.
Definition at line 55 of file satellite-dama-entry.cc.
| void ns3::SatDamaEntry::DecrementDynamicRatePersistence | ( | ) |
Decrement dynamic rate persistence.
Definition at line 292 of file satellite-dama-entry.cc.
References m_dynamicRatePersistence, and m_dynamicRateRequestedInKbps.
| void ns3::SatDamaEntry::DecrementVolumeBacklogPersistence | ( | ) |
Decrement volume backlog persistence.
Definition at line 316 of file satellite-dama-entry.cc.
References m_volumeBacklogPersistence, and m_volumeBacklogRequestedInBytes.
| uint32_t ns3::SatDamaEntry::GetCraBasedBytes | ( | Time | duration | ) | const |
Get CRA based bytes with given duration.
| duration | Duration of the transmission |
Definition at line 69 of file satellite-dama-entry.cc.
References ns3::SatConstVariables::BITS_IN_KBIT, ns3::SatConstVariables::BITS_PER_BYTE, and m_llsConf.
| uint16_t ns3::SatDamaEntry::GetCraInKbps | ( | uint8_t | index | ) | const |
Get configured value of the CRA.
| index | Index of RC, which CRA is requested. |
Definition at line 153 of file satellite-dama-entry.cc.
References m_llsConf.
Referenced by GetMinRbdcInKbps(), and UpdateRbdcInKbps().
Here is the caller graph for this function:| uint32_t ns3::SatDamaEntry::GetMinRateBasedBytes | ( | Time | duration | ) | const |
Get minimum rate based bytes with given duration.
When
| duration | Duration of the transmission |
Definition at line 89 of file satellite-dama-entry.cc.
References ns3::SatConstVariables::BITS_IN_KBIT, ns3::SatConstVariables::BITS_PER_BYTE, and m_llsConf.
| uint16_t ns3::SatDamaEntry::GetMinRbdcInKbps | ( | uint8_t | index | ) | const |
Get configured value of the minimum RBDC.
| index | Index of RC, which minimum RBDC is requested. |
Definition at line 172 of file satellite-dama-entry.cc.
References GetCraInKbps(), m_dynamicRatePersistence, and m_llsConf.
Referenced by UpdateRbdcInKbps().
Here is the call graph for this function:
Here is the caller graph for this function:| uint32_t ns3::SatDamaEntry::GetRbdcBasedBytes | ( | Time | duration | ) | const |
Get RBDC based bytes with given duration.
| duration | Duration of the transmission |
Definition at line 121 of file satellite-dama-entry.cc.
References ns3::SatConstVariables::BITS_IN_KBIT, ns3::SatConstVariables::BITS_PER_BYTE, and m_dynamicRateRequestedInKbps.
| uint16_t ns3::SatDamaEntry::GetRbdcInKbps | ( | uint8_t | index | ) | const |
Get current value of the RBDC requested.
| index | Index of RC, which dynamic rate is requested. |
Definition at line 193 of file satellite-dama-entry.cc.
References m_dynamicRateRequestedInKbps.
| uint8_t ns3::SatDamaEntry::GetRcCount | ( | ) | const |
Get number of RCs in the SatDamaEntry.
Definition at line 61 of file satellite-dama-entry.cc.
References m_llsConf.
| uint32_t ns3::SatDamaEntry::GetVbdcBasedBytes | ( | ) | const |
Get VBDC based bytes.
Definition at line 138 of file satellite-dama-entry.cc.
References m_volumeBacklogRequestedInBytes.
| uint32_t ns3::SatDamaEntry::GetVbdcInBytes | ( | uint8_t | index | ) | const |
Get current value of the VBDC requested.
| index | Index of RC, which volume backlog is requested. |
Definition at line 233 of file satellite-dama-entry.cc.
References m_volumeBacklogRequestedInBytes.
| void ns3::SatDamaEntry::ResetDynamicRatePersistence | ( | ) |
Reset dynamic rate persistence to the value given in lower layer service configuration.
Definition at line 284 of file satellite-dama-entry.cc.
References m_dynamicRatePersistence, and m_llsConf.
| void ns3::SatDamaEntry::ResetVolumeBacklogPersistence | ( | ) |
Reset volume backlog persistence to the value given in lower layer service configuration.
Definition at line 308 of file satellite-dama-entry.cc.
References m_llsConf, and m_volumeBacklogPersistence.
| void ns3::SatDamaEntry::SetVbdcInBytes | ( | uint8_t | index, |
| uint32_t | volumeInBytes | ||
| ) |
Set VBDC request of the RC.
| index | Index of RC, which VBDC is updated. |
| volumeInBytes | VBDC value [bytes] to set |
Definition at line 261 of file satellite-dama-entry.cc.
References ns3::SatConstVariables::BYTES_IN_KBYTE, m_llsConf, and m_volumeBacklogRequestedInBytes.
Referenced by UpdateVbdcInBytes().
Here is the caller graph for this function:| void ns3::SatDamaEntry::UpdateRbdcInKbps | ( | uint8_t | index, |
| uint16_t | rateInKbps | ||
| ) |
Update RBDC request of a RC.
| index | Index of RC, which dynamic rate is updated. |
| rateInKbps | RBDC [kBps] for update |
Definition at line 206 of file satellite-dama-entry.cc.
References GetCraInKbps(), GetMinRbdcInKbps(), m_dynamicRateRequestedInKbps, and m_llsConf.
Here is the call graph for this function:| void ns3::SatDamaEntry::UpdateVbdcInBytes | ( | uint8_t | index, |
| uint32_t | volumeInBytes | ||
| ) |
Update VBDC request of the RC.
| index | Index of RC, which VBDC is updated. |
| volumeInBytes | VBDC value [bytes] for update |
Definition at line 246 of file satellite-dama-entry.cc.
References m_llsConf, m_volumeBacklogRequestedInBytes, and SetVbdcInBytes().
Here is the call graph for this function:
|
private |
Definition at line 184 of file satellite-dama-entry.h.
Referenced by DecrementDynamicRatePersistence(), GetMinRbdcInKbps(), and ResetDynamicRatePersistence().
|
private |
Definition at line 187 of file satellite-dama-entry.h.
Referenced by SatDamaEntry(), DecrementDynamicRatePersistence(), GetRbdcBasedBytes(), GetRbdcInKbps(), and UpdateRbdcInKbps().
|
private |
Definition at line 186 of file satellite-dama-entry.h.
Referenced by SatDamaEntry(), GetCraBasedBytes(), GetCraInKbps(), GetMinRateBasedBytes(), GetMinRbdcInKbps(), GetRcCount(), ResetDynamicRatePersistence(), ResetVolumeBacklogPersistence(), SetVbdcInBytes(), UpdateRbdcInKbps(), and UpdateVbdcInBytes().
|
private |
Definition at line 185 of file satellite-dama-entry.h.
Referenced by DecrementVolumeBacklogPersistence(), and ResetVolumeBacklogPersistence().
|
private |
Definition at line 188 of file satellite-dama-entry.h.
Referenced by SatDamaEntry(), DecrementVolumeBacklogPersistence(), GetVbdcBasedBytes(), GetVbdcInBytes(), SetVbdcInBytes(), and UpdateVbdcInBytes().