Class that holds information for each beam regarding UTs and their users camped in each beam. More...
#include "satellite-beam-user-info.h"
Public Member Functions | |
SatBeamUserInfo () | |
Default constructor for SatBeamUserInfo enables creating an empty information structure. More... | |
SatBeamUserInfo (uint32_t utCount, uint32_t userCountPerUt) | |
Constructor for SatBeamUserInfo which allows creating a group of UT information structures with each UT having the same number of users. More... | |
virtual | ~SatBeamUserInfo () |
Destructor for SatBeamUserInfo. More... | |
void | AppendUt (uint32_t userCount) |
Appends new UT to end of the list with given user count for the appended UT. More... | |
std::vector< std::pair< GeoCoordinate, uint32_t > > | GetPositions () |
uint32_t | GetUtCount () const |
uint32_t | GetUtUserCount (uint32_t utIndex) const |
void | SetPositions (std::vector< std::pair< GeoCoordinate, uint32_t >> positions) |
Set the list of custom positions to create, and associated group. More... | |
void | SetUtUserCount (uint32_t utIndex, uint32_t userCount) |
Sets user count for the UT with given uIndex. More... | |
Private Attributes | |
std::vector< std::pair< GeoCoordinate, uint32_t > > | m_positions |
std::vector< uint32_t > | m_userCount |
Class that holds information for each beam regarding UTs and their users camped in each beam.
Default constructor enables creating an empty information structure. The developer needs to Append individual UTs with individual number of users in each UT by calling the method AppendUt().
The second constructor allows creating a group of UT information structures with each UT having the same number of users.
Definition at line 45 of file satellite-beam-user-info.h.
ns3::SatBeamUserInfo::SatBeamUserInfo | ( | ) |
Default constructor for SatBeamUserInfo enables creating an empty information structure.
Definition at line 34 of file satellite-beam-user-info.cc.
ns3::SatBeamUserInfo::SatBeamUserInfo | ( | uint32_t | utCount, |
uint32_t | userCountPerUt | ||
) |
Constructor for SatBeamUserInfo which allows creating a group of UT information structures with each UT having the same number of users.
utCount | UT count of the beam (can be added later by method AddUt) |
userCountPerUt | User count of the UTs (can be changed for the specific UT by method SetUtUserCount) |
Definition at line 39 of file satellite-beam-user-info.cc.
References m_userCount.
|
inlinevirtual |
Destructor for SatBeamUserInfo.
Definition at line 66 of file satellite-beam-user-info.h.
void ns3::SatBeamUserInfo::AppendUt | ( | uint32_t | userCount | ) |
Appends new UT to end of the list with given user count for the appended UT.
userCount | Number of users under the appended UT. Minimum value is 1. |
Definition at line 81 of file satellite-beam-user-info.cc.
References m_userCount.
Referenced by ns3::SatHelper::CreateLargerScenario(), ns3::SimulationHelper::CreateSatScenario(), and ScenarioCreationUser::DoRun().
std::vector< std::pair< GeoCoordinate, uint32_t > > ns3::SatBeamUserInfo::GetPositions | ( | ) |
Definition at line 97 of file satellite-beam-user-info.cc.
References m_positions.
uint32_t ns3::SatBeamUserInfo::GetUtCount | ( | ) | const |
Definition at line 53 of file satellite-beam-user-info.cc.
References m_userCount.
uint32_t ns3::SatBeamUserInfo::GetUtUserCount | ( | uint32_t | utIndex | ) | const |
utIndex | index of the UT. Possible indexes are 0 to value -1 returned by GetUtCount |
Definition at line 61 of file satellite-beam-user-info.cc.
References m_userCount.
void ns3::SatBeamUserInfo::SetPositions | ( | std::vector< std::pair< GeoCoordinate, uint32_t >> | positions | ) |
Set the list of custom positions to create, and associated group.
Definition at line 91 of file satellite-beam-user-info.cc.
References m_positions.
void ns3::SatBeamUserInfo::SetUtUserCount | ( | uint32_t | utIndex, |
uint32_t | userCount | ||
) |
Sets user count for the UT with given uIndex.
utIndex | index of the UT. Possible indexes are 0 to value -1 returned by GetUtCount. |
userCount | Number of users under the UT of with given utIndex. Minimum value is 1. If this is not called for the UT then default value (1) is used for the UT. |
Definition at line 71 of file satellite-beam-user-info.cc.
References m_userCount.
Referenced by ns3::SatHelper::CreateLargerScenario().
|
private |
Definition at line 114 of file satellite-beam-user-info.h.
Referenced by GetPositions(), and SetPositions().
|
private |
Definition at line 111 of file satellite-beam-user-info.h.
Referenced by SatBeamUserInfo(), AppendUt(), GetUtCount(), GetUtUserCount(), and SetUtUserCount().