This class is used by the base station to store some information related to subscriber station in the cell. More...
#include "ss-record.h"
Public Member Functions | |
SSRecord () | |
SSRecord (Mac48Address macAddress) | |
Constructor. | |
SSRecord (Mac48Address macAddress, Ipv4Address IPaddress) | |
Constructor. | |
~SSRecord () | |
void | AddServiceFlow (ServiceFlow *serviceFlow) |
Add service flow. | |
void | DisablePollForRanging () |
Disable poll for ranging. | |
void | EnablePollForRanging () |
Enable poll for ranging function. | |
bool | GetAreServiceFlowsAllocated () const |
Check if service flows are allocated. | |
Cid | GetBasicCid () const |
Get basic CID. | |
DsaRsp | GetDsaRsp () const |
Get DSA response. | |
uint8_t | GetDsaRspRetries () const |
Get DSA response retries. | |
bool | GetHasServiceFlowBe () const |
Check if at least one flow has scheduling type SF_TYPE_BE. | |
bool | GetHasServiceFlowNrtps () const |
Check if at least one flow has scheduling type SF_TYPE_NRTPS. | |
bool | GetHasServiceFlowRtps () const |
Check if at least one flow has scheduling type SF_TYPE_RTPS. | |
bool | GetHasServiceFlowUgs () const |
Check if at least one flow has scheduling type SF_TYPE_UGS. | |
uint8_t | GetInvitedRangRetries () const |
Get invited range retries. | |
Ipv4Address | GetIPAddress () |
Get IP address. | |
bool | GetIsBroadcastSS () const |
Get is broadcast SS. | |
Mac48Address | GetMacAddress () const |
Get MAC address. | |
WimaxPhy::ModulationType | GetModulationType () const |
Get modulation type. | |
bool | GetPollForRanging () const |
Get poll for ranging. | |
bool | GetPollMeBit () const |
Get poll ME bit. | |
Cid | GetPrimaryCid () const |
Get primary CID. | |
uint8_t | GetRangingCorrectionRetries () const |
Get ranging correction retries. | |
WimaxNetDevice::RangingStatus | GetRangingStatus () const |
Get ranging status. | |
std::vector< ServiceFlow * > | GetServiceFlows (ServiceFlow::SchedulingType schedulingType) const |
Get service flows. | |
uint16_t | GetSfTransactionId () const |
Get SF transaction ID. | |
void | IncrementDsaRspRetries () |
Increment DAS response retries. | |
void | IncrementInvitedRangingRetries () |
Increment invited ranging retries. | |
void | IncrementRangingCorrectionRetries () |
Increment ranging correction retries. | |
void | ResetInvitedRangingRetries () |
Reset invited ranging retries. | |
void | ResetRangingCorrectionRetries () |
Reset ranging correction retries. | |
void | SetAreServiceFlowsAllocated (bool val) |
Set are service flows allocated. | |
void | SetBasicCid (Cid basicCid) |
Set basic CID. | |
void | SetDsaRsp (DsaRsp dsaRsp) |
Set DSA response. | |
void | SetDsaRspRetries (uint8_t dsaRspRetries) |
Set DSA response retries. | |
void | SetIPAddress (Ipv4Address IPaddress) |
Set IP address. | |
void | SetIsBroadcastSS (bool broadcast_enable) |
Set is broadcast SS. | |
void | SetMacAddress (Mac48Address macAddress) |
Set MAC address. | |
void | SetModulationType (WimaxPhy::ModulationType modulationType) |
Set modulation type. | |
void | SetPollMeBit (bool pollMeBit) |
Set poll ME bit. | |
void | SetPrimaryCid (Cid primaryCid) |
Set primary CID. | |
void | SetRangingStatus (WimaxNetDevice::RangingStatus rangingStatus) |
Set ranging status. | |
void | SetSfTransactionId (uint16_t sfTransactionId) |
Set SF transaction ID. | |
Private Member Functions | |
void | Initialize () |
Initialize. | |
Private Attributes | |
bool | m_areServiceFlowsAllocated |
are service floes allowed | |
Cid | m_basicCid |
basic CID | |
bool | m_broadcast |
broadcast? | |
DsaRsp | m_dsaRsp |
DSA response. | |
uint8_t | m_dsaRspRetries |
DAS response retries. | |
uint8_t | m_invitedRangingRetries |
invited ranging retries | |
Ipv4Address | m_IPAddress |
IP address. | |
Mac48Address | m_macAddress |
MAC address. | |
WimaxPhy::ModulationType | m_modulationType |
least robust burst profile (modulation type) for this SS | |
bool | m_pollForRanging |
poll for ranging | |
bool | m_pollMeBit |
if PM (poll me) bit set for this SS | |
Cid | m_primaryCid |
primary CID | |
uint8_t | m_rangingCorrectionRetries |
ranging correction retries | |
WimaxNetDevice::RangingStatus | m_rangingStatus |
ranging status | |
std::vector< ServiceFlow * > * | m_serviceFlows |
service flows | |
uint16_t | m_sfTransactionId |
SF transaction ID. | |
This class is used by the base station to store some information related to subscriber station in the cell.
Definition at line 34 of file ss-record.h.
ns3::SSRecord::SSRecord | ( | ) |
Definition at line 19 of file ss-record.cc.
References Initialize().
ns3::SSRecord::SSRecord | ( | Mac48Address | macAddress | ) |
Constructor.
macAddress | MAC address |
Definition at line 24 of file ss-record.cc.
References Initialize(), and m_macAddress.
ns3::SSRecord::SSRecord | ( | Mac48Address | macAddress, |
Ipv4Address | IPaddress ) |
Constructor.
macAddress | MAC address |
IPaddress | IP address |
Definition at line 30 of file ss-record.cc.
References Initialize(), m_IPAddress, and m_macAddress.
ns3::SSRecord::~SSRecord | ( | ) |
Definition at line 59 of file ss-record.cc.
References m_serviceFlows.
void ns3::SSRecord::AddServiceFlow | ( | ServiceFlow * | serviceFlow | ) |
Add service flow.
serviceFlow | the service flow |
Definition at line 216 of file ss-record.cc.
References m_serviceFlows.
void ns3::SSRecord::DisablePollForRanging | ( | ) |
Disable poll for ranging.
Definition at line 180 of file ss-record.cc.
References m_pollForRanging.
Referenced by ns3::BSLinkManager::AbortRanging(), and ns3::BSLinkManager::AcceptRanging().
void ns3::SSRecord::EnablePollForRanging | ( | ) |
Enable poll for ranging function.
Definition at line 174 of file ss-record.cc.
References m_pollForRanging.
Referenced by ns3::BSLinkManager::PerformInitialRanging().
bool ns3::SSRecord::GetAreServiceFlowsAllocated | ( | ) | const |
Check if service flows are allocated.
Definition at line 198 of file ss-record.cc.
References m_areServiceFlowsAllocated.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerSimple::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
Cid ns3::SSRecord::GetBasicCid | ( | ) | const |
Get basic CID.
Definition at line 84 of file ss-record.cc.
References m_basicCid.
Referenced by ns3::SSManager::DeleteSSRecord(), ns3::SSManager::GetSSRecord(), ns3::BSLinkManager::PerformInitialRanging(), ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection(), and ns3::BSLinkManager::VerifyInvitedRanging().
DsaRsp ns3::SSRecord::GetDsaRsp | ( | ) | const |
Get DSA response.
Definition at line 337 of file ss-record.cc.
References m_dsaRsp.
uint8_t ns3::SSRecord::GetDsaRspRetries | ( | ) | const |
Get DSA response retries.
Definition at line 325 of file ss-record.cc.
References m_dsaRspRetries.
bool ns3::SSRecord::GetHasServiceFlowBe | ( | ) | const |
Check if at least one flow has scheduling type SF_TYPE_BE.
Definition at line 288 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_BE.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule().
bool ns3::SSRecord::GetHasServiceFlowNrtps | ( | ) | const |
Check if at least one flow has scheduling type SF_TYPE_NRTPS.
Definition at line 275 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_NRTPS.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule().
bool ns3::SSRecord::GetHasServiceFlowRtps | ( | ) | const |
Check if at least one flow has scheduling type SF_TYPE_RTPS.
Definition at line 262 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_RTPS.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule().
bool ns3::SSRecord::GetHasServiceFlowUgs | ( | ) | const |
Check if at least one flow has scheduling type SF_TYPE_UGS.
Definition at line 249 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_UGS.
Referenced by ns3::BandwidthManager::CalculateAllocationSize(), and ns3::UplinkSchedulerMBQoS::Schedule().
uint8_t ns3::SSRecord::GetInvitedRangRetries | ( | ) | const |
Get invited range retries.
Definition at line 132 of file ss-record.cc.
References m_invitedRangingRetries.
Referenced by ns3::BSLinkManager::VerifyInvitedRanging().
Ipv4Address ns3::SSRecord::GetIPAddress | ( | ) |
Get IP address.
Definition at line 72 of file ss-record.cc.
References m_IPAddress.
bool ns3::SSRecord::GetIsBroadcastSS | ( | ) | const |
Get is broadcast SS.
Definition at line 243 of file ss-record.cc.
References m_broadcast.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerSimple::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
Mac48Address ns3::SSRecord::GetMacAddress | ( | ) | const |
Get MAC address.
Definition at line 108 of file ss-record.cc.
References m_macAddress.
Referenced by ns3::SSManager::GetMacAddress(), and ns3::UplinkSchedulerMBQoS::ProcessBandwidthRequest().
WimaxPhy::ModulationType ns3::SSRecord::GetModulationType | ( | ) | const |
Get modulation type.
Definition at line 156 of file ss-record.cc.
References m_modulationType.
Referenced by ns3::UplinkSchedulerMBQoS::CountSymbolsJobs(), ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerMBQoS::SetupServiceFlow(), ns3::UplinkSchedulerRtps::SetupServiceFlow(), ns3::UplinkSchedulerSimple::SetupServiceFlow(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
bool ns3::SSRecord::GetPollForRanging | ( | ) | const |
Get poll for ranging.
Definition at line 186 of file ss-record.cc.
References m_pollForRanging.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerSimple::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
bool ns3::SSRecord::GetPollMeBit | ( | ) | const |
Get poll ME bit.
Definition at line 210 of file ss-record.cc.
References m_pollMeBit.
Referenced by ns3::BandwidthManager::CalculateAllocationSize().
Cid ns3::SSRecord::GetPrimaryCid | ( | ) | const |
Get primary CID.
Definition at line 96 of file ss-record.cc.
References m_primaryCid.
Referenced by ns3::SSManager::DeleteSSRecord(), and ns3::SSManager::GetSSRecord().
uint8_t ns3::SSRecord::GetRangingCorrectionRetries | ( | ) | const |
Get ranging correction retries.
Definition at line 114 of file ss-record.cc.
References m_rangingCorrectionRetries.
Referenced by ns3::BSLinkManager::PerformInvitedRanging().
WimaxNetDevice::RangingStatus ns3::SSRecord::GetRangingStatus | ( | ) | const |
Get ranging status.
Definition at line 168 of file ss-record.cc.
References m_rangingStatus.
Referenced by ns3::SSManager::IsRegistered(), ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerSimple::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
std::vector< ServiceFlow * > ns3::SSRecord::GetServiceFlows | ( | ServiceFlow::SchedulingType | schedulingType | ) | const |
Get service flows.
schedulingType | the scheduling type |
Definition at line 222 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_ALL.
Referenced by ns3::UplinkSchedulerMBQoS::CheckMinimumBandwidth(), ns3::UplinkSchedulerMBQoS::CreateUlJob(), ns3::SSManager::DeleteSSRecord(), ns3::SSManager::GetSSRecord(), ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerMBQoS::ServiceBandwidthRequests(), ns3::UplinkSchedulerRtps::ServiceBandwidthRequests(), ns3::UplinkSchedulerSimple::ServiceBandwidthRequests(), ns3::UplinkSchedulerMBQoS::ServiceUnsolicitedGrants(), ns3::UplinkSchedulerRtps::ServiceUnsolicitedGrants(), ns3::UplinkSchedulerSimple::ServiceUnsolicitedGrants(), ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection(), and ns3::UplinkSchedulerMBQoS::UplinkSchedWindowTimer().
uint16_t ns3::SSRecord::GetSfTransactionId | ( | ) | const |
Get SF transaction ID.
Definition at line 307 of file ss-record.cc.
References m_sfTransactionId.
void ns3::SSRecord::IncrementDsaRspRetries | ( | ) |
Increment DAS response retries.
Definition at line 319 of file ss-record.cc.
References m_dsaRspRetries.
void ns3::SSRecord::IncrementInvitedRangingRetries | ( | ) |
Increment invited ranging retries.
Definition at line 144 of file ss-record.cc.
References m_invitedRangingRetries.
Referenced by ns3::BSLinkManager::VerifyInvitedRanging().
void ns3::SSRecord::IncrementRangingCorrectionRetries | ( | ) |
Increment ranging correction retries.
Definition at line 126 of file ss-record.cc.
References m_rangingCorrectionRetries.
Referenced by ns3::BSLinkManager::PerformInvitedRanging().
|
private |
Initialize.
Definition at line 38 of file ss-record.cc.
References m_areServiceFlowsAllocated, m_basicCid, m_broadcast, m_dsaRsp, m_dsaRspRetries, m_invitedRangingRetries, m_modulationType, m_pollForRanging, m_pollMeBit, m_primaryCid, m_rangingCorrectionRetries, m_rangingStatus, m_serviceFlows, m_sfTransactionId, ns3::WimaxPhy::MODULATION_TYPE_BPSK_12, and ns3::WimaxNetDevice::RANGING_STATUS_EXPIRED.
Referenced by SSRecord(), SSRecord(), and SSRecord().
void ns3::SSRecord::ResetInvitedRangingRetries | ( | ) |
Reset invited ranging retries.
Definition at line 138 of file ss-record.cc.
References m_invitedRangingRetries.
Referenced by ns3::BSLinkManager::PerformInitialRanging(), and ns3::BSLinkManager::PerformInvitedRanging().
void ns3::SSRecord::ResetRangingCorrectionRetries | ( | ) |
Reset ranging correction retries.
Definition at line 120 of file ss-record.cc.
References m_rangingCorrectionRetries.
Referenced by ns3::BSLinkManager::PerformInitialRanging().
void ns3::SSRecord::SetAreServiceFlowsAllocated | ( | bool | val | ) |
Set are service flows allocated.
val | the service flows allocated flag |
Definition at line 192 of file ss-record.cc.
References m_areServiceFlowsAllocated.
void ns3::SSRecord::SetBasicCid | ( | Cid | basicCid | ) |
Set basic CID.
basicCid | the basic CID |
Definition at line 78 of file ss-record.cc.
References m_basicCid.
Referenced by ns3::ConnectionManager::AllocateManagementConnections().
void ns3::SSRecord::SetDsaRsp | ( | DsaRsp | dsaRsp | ) |
Set DSA response.
dsaRsp | the DSA response |
Definition at line 331 of file ss-record.cc.
References m_dsaRsp.
void ns3::SSRecord::SetDsaRspRetries | ( | uint8_t | dsaRspRetries | ) |
Set DSA response retries.
dsaRspRetries | the DSA response retries |
Definition at line 313 of file ss-record.cc.
References m_dsaRspRetries.
void ns3::SSRecord::SetIPAddress | ( | Ipv4Address | IPaddress | ) |
Set IP address.
IPaddress | the IP address |
Definition at line 66 of file ss-record.cc.
References m_IPAddress.
void ns3::SSRecord::SetIsBroadcastSS | ( | bool | broadcast_enable | ) |
Set is broadcast SS.
broadcast_enable | the broadcast enable flag |
Definition at line 237 of file ss-record.cc.
References m_broadcast.
void ns3::SSRecord::SetMacAddress | ( | Mac48Address | macAddress | ) |
Set MAC address.
macAddress | the MAC address |
Definition at line 102 of file ss-record.cc.
References m_macAddress.
void ns3::SSRecord::SetModulationType | ( | WimaxPhy::ModulationType | modulationType | ) |
Set modulation type.
modulationType | the modulation type |
Definition at line 150 of file ss-record.cc.
References m_modulationType.
Referenced by ns3::BSLinkManager::PerformInitialRanging().
void ns3::SSRecord::SetPollMeBit | ( | bool | pollMeBit | ) |
Set poll ME bit.
pollMeBit | the poll me bit |
Definition at line 204 of file ss-record.cc.
References m_pollMeBit.
void ns3::SSRecord::SetPrimaryCid | ( | Cid | primaryCid | ) |
Set primary CID.
primaryCid | priamry CID |
Definition at line 90 of file ss-record.cc.
References m_primaryCid.
Referenced by ns3::ConnectionManager::AllocateManagementConnections().
void ns3::SSRecord::SetRangingStatus | ( | WimaxNetDevice::RangingStatus | rangingStatus | ) |
Set ranging status.
rangingStatus | the ranging status |
Definition at line 162 of file ss-record.cc.
References m_rangingStatus.
Referenced by ns3::BSLinkManager::AbortRanging(), ns3::BSLinkManager::AcceptRanging(), and ns3::BSLinkManager::ContinueRanging().
void ns3::SSRecord::SetSfTransactionId | ( | uint16_t | sfTransactionId | ) |
Set SF transaction ID.
sfTransactionId | the SF transaction ID |
Definition at line 301 of file ss-record.cc.
References m_sfTransactionId.
|
private |
are service floes allowed
Definition at line 263 of file ss-record.h.
Referenced by GetAreServiceFlowsAllocated(), Initialize(), and SetAreServiceFlowsAllocated().
|
private |
basic CID
Definition at line 253 of file ss-record.h.
Referenced by GetBasicCid(), Initialize(), and SetBasicCid().
|
private |
broadcast?
Definition at line 265 of file ss-record.h.
Referenced by GetIsBroadcastSS(), Initialize(), and SetIsBroadcastSS().
|
private |
DSA response.
Definition at line 272 of file ss-record.h.
Referenced by GetDsaRsp(), Initialize(), and SetDsaRsp().
|
private |
DAS response retries.
Definition at line 271 of file ss-record.h.
Referenced by GetDsaRspRetries(), IncrementDsaRspRetries(), Initialize(), and SetDsaRspRetries().
|
private |
invited ranging retries
Definition at line 257 of file ss-record.h.
Referenced by GetInvitedRangRetries(), IncrementInvitedRangingRetries(), Initialize(), and ResetInvitedRangingRetries().
|
private |
IP address.
Definition at line 251 of file ss-record.h.
Referenced by SSRecord(), GetIPAddress(), and SetIPAddress().
|
private |
MAC address.
Definition at line 250 of file ss-record.h.
Referenced by SSRecord(), SSRecord(), GetMacAddress(), and SetMacAddress().
|
private |
least robust burst profile (modulation type) for this SS
Definition at line 260 of file ss-record.h.
Referenced by GetModulationType(), Initialize(), and SetModulationType().
|
private |
poll for ranging
Definition at line 262 of file ss-record.h.
Referenced by DisablePollForRanging(), EnablePollForRanging(), GetPollForRanging(), and Initialize().
|
private |
if PM (poll me) bit set for this SS
Definition at line 264 of file ss-record.h.
Referenced by GetPollMeBit(), Initialize(), and SetPollMeBit().
|
private |
primary CID
Definition at line 254 of file ss-record.h.
Referenced by GetPrimaryCid(), Initialize(), and SetPrimaryCid().
|
private |
ranging correction retries
Definition at line 256 of file ss-record.h.
Referenced by GetRangingCorrectionRetries(), IncrementRangingCorrectionRetries(), Initialize(), and ResetRangingCorrectionRetries().
|
private |
ranging status
Definition at line 261 of file ss-record.h.
Referenced by GetRangingStatus(), Initialize(), and SetRangingStatus().
|
private |
service flows
Definition at line 267 of file ss-record.h.
Referenced by ~SSRecord(), AddServiceFlow(), GetHasServiceFlowBe(), GetHasServiceFlowNrtps(), GetHasServiceFlowRtps(), GetHasServiceFlowUgs(), GetServiceFlows(), and Initialize().
|
private |
SF transaction ID.
Definition at line 270 of file ss-record.h.
Referenced by GetSfTransactionId(), Initialize(), and SetSfTransactionId().