UT handover module. More...
#include "satellite-ut-handover-module.h"
Public Types | |
typedef Callback< void, uint32_t > | HandoverRequestCallback |
Handover recommendation message sending callback. More... | |
Public Member Functions | |
SatUtHandoverModule () | |
Default constructor, which is not used. More... | |
SatUtHandoverModule (Ptr< SatAntennaGainPatternContainer > agpContainer) | |
Construct a SatUtHandoverModule. More... | |
~SatUtHandoverModule () | |
Destroy a SatUtHandoverModule. More... | |
bool | CheckForHandoverRecommendation (uint32_t satId, uint32_t beamId) |
Inspect whether or not the given beam is still suitable for the underlying mobility model. More... | |
virtual void | DoDispose () |
Dispose of this class instance. More... | |
uint32_t | GetAskedBeamId () |
Get the best beam ID. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Derived from Object. More... | |
void | SetHandoverRequestCallback (SatUtHandoverModule::HandoverRequestCallback cb) |
Set the handover recommendation message sending callback. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Derived from Object. More... | |
Private Attributes | |
Ptr< SatAntennaGainPatternContainer > | m_antennaGainPatterns |
TracedCallback< double > | m_antennaGainTrace |
uint32_t | m_askedBeamId |
HandoverRequestCallback | m_handoverCallback |
bool | m_hasPendingRequest |
Time | m_lastMessageSentAt |
Time | m_repeatRequestTimeout |
UT handover module.
Definition at line 38 of file satellite-ut-handover-module.h.
typedef Callback<void, uint32_t> ns3::SatUtHandoverModule::HandoverRequestCallback |
Handover recommendation message sending callback.
uint32_t | The beam ID this UT want to change to |
Definition at line 45 of file satellite-ut-handover-module.h.
ns3::SatUtHandoverModule::SatUtHandoverModule | ( | ) |
Default constructor, which is not used.
Definition at line 75 of file satellite-ut-handover-module.cc.
ns3::SatUtHandoverModule::SatUtHandoverModule | ( | Ptr< SatAntennaGainPatternContainer > | agpContainer | ) |
Construct a SatUtHandoverModule.
agpContainer | the antenna gain patterns of the simulation |
Definition at line 87 of file satellite-ut-handover-module.cc.
ns3::SatUtHandoverModule::~SatUtHandoverModule | ( | ) |
Destroy a SatUtHandoverModule.
Definition at line 94 of file satellite-ut-handover-module.cc.
bool ns3::SatUtHandoverModule::CheckForHandoverRecommendation | ( | uint32_t | satId, |
uint32_t | beamId | ||
) |
Inspect whether or not the given beam is still suitable for the underlying mobility model.
satId | The current satellite ID the underlying mobility model is emitting in |
beamId | The current beam ID the underlying mobility model is emitting in |
Definition at line 114 of file satellite-ut-handover-module.cc.
References m_antennaGainPatterns, m_antennaGainTrace, m_askedBeamId, m_handoverCallback, m_hasPendingRequest, m_lastMessageSentAt, and m_repeatRequestTimeout.
Referenced by ns3::SatUtHelper::InstallDvb().
|
virtual |
Dispose of this class instance.
Definition at line 65 of file satellite-ut-handover-module.cc.
References m_antennaGainPatterns, and m_handoverCallback.
uint32_t ns3::SatUtHandoverModule::GetAskedBeamId | ( | ) |
Get the best beam ID.
Definition at line 108 of file satellite-ut-handover-module.cc.
References m_askedBeamId.
Referenced by ns3::SatUtHelper::InstallDvb().
|
virtual |
Derived from Object.
Definition at line 57 of file satellite-ut-handover-module.cc.
References GetTypeId().
|
static |
Derived from Object.
Definition at line 37 of file satellite-ut-handover-module.cc.
References m_antennaGainTrace, and m_repeatRequestTimeout.
Referenced by GetInstanceTypeId().
void ns3::SatUtHandoverModule::SetHandoverRequestCallback | ( | SatUtHandoverModule::HandoverRequestCallback | cb | ) |
Set the handover recommendation message sending callback.
cb | callback to send handover recommendation messages |
Definition at line 100 of file satellite-ut-handover-module.cc.
References m_handoverCallback.
Referenced by ns3::SatUtHelper::InstallDvb().
|
private |
Definition at line 102 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation(), and DoDispose().
|
private |
Definition at line 109 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation(), and GetTypeId().
|
private |
Definition at line 107 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation(), and GetAskedBeamId().
|
private |
Definition at line 100 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation(), DoDispose(), and SetHandoverRequestCallback().
|
private |
Definition at line 106 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation().
|
private |
Definition at line 104 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation().
|
private |
Definition at line 105 of file satellite-ut-handover-module.h.
Referenced by CheckForHandoverRecommendation(), and GetTypeId().