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 (void) | |
SSRecord (Mac48Address macAddress) | |
Constructor. More... | |
SSRecord (Mac48Address macAddress, Ipv4Address IPaddress) | |
Constructor. More... | |
~SSRecord (void) | |
void | AddServiceFlow (ServiceFlow *serviceFlow) |
Add service flow. More... | |
void | DisablePollForRanging (void) |
Disable poll for ranging. More... | |
void | EnablePollForRanging (void) |
Enable poll for ranging function. More... | |
bool | GetAreServiceFlowsAllocated (void) const |
Check if service flows are allocated. More... | |
Cid | GetBasicCid (void) const |
Get basic CID. More... | |
DsaRsp | GetDsaRsp (void) const |
Get DSA response. More... | |
uint8_t | GetDsaRspRetries (void) const |
Get DSA response retries. More... | |
bool | GetHasServiceFlowBe (void) const |
Check if at least one flow has scheduling type SF_TYPE_BE. More... | |
bool | GetHasServiceFlowNrtps (void) const |
Check if at least one flow has scheduling type SF_TYPE_NRTPS. More... | |
bool | GetHasServiceFlowRtps (void) const |
Check if at least one flow has scheduling type SF_TYPE_RTPS. More... | |
bool | GetHasServiceFlowUgs (void) const |
Check if at least one flow has scheduling type SF_TYPE_UGS. More... | |
uint8_t | GetInvitedRangRetries (void) const |
Get invited range retries. More... | |
Ipv4Address | GetIPAddress (void) |
Get IP address. More... | |
bool | GetIsBroadcastSS (void) |
Get is broadcast SS. More... | |
Mac48Address | GetMacAddress (void) const |
Get MAC address. More... | |
WimaxPhy::ModulationType | GetModulationType (void) const |
Get modulation type. More... | |
bool | GetPollForRanging (void) const |
Get poll for ranging. More... | |
bool | GetPollMeBit (void) const |
Get poll ME bit. More... | |
Cid | GetPrimaryCid (void) const |
Get primary CID. More... | |
uint8_t | GetRangingCorrectionRetries (void) const |
Get ranging correction retries. More... | |
WimaxNetDevice::RangingStatus | GetRangingStatus (void) const |
Get ranging status. More... | |
std::vector< ServiceFlow * > | GetServiceFlows (enum ServiceFlow::SchedulingType schedulingType) const |
Get service flows. More... | |
uint16_t | GetSfTransactionId (void) const |
Get SF transaction ID. More... | |
void | IncrementDsaRspRetries (void) |
Increment DAS response retries. More... | |
void | IncrementInvitedRangingRetries (void) |
Increment invited ranging retries. More... | |
void | IncrementRangingCorrectionRetries (void) |
Increment ranging correction retries. More... | |
void | ResetInvitedRangingRetries (void) |
Reset invited ranging retries. More... | |
void | ResetRangingCorrectionRetries (void) |
Reset ranging correction retries. More... | |
void | SetAreServiceFlowsAllocated (bool val) |
Set are service flows allocated. More... | |
void | SetBasicCid (Cid basicCid) |
Set basic CID. More... | |
void | SetDsaRsp (DsaRsp dsaRsp) |
Set DSA response. More... | |
void | SetDsaRspRetries (uint8_t dsaRspRetries) |
Set DSA response retries. More... | |
void | SetIPAddress (Ipv4Address IPaddress) |
Set IP address. More... | |
void | SetIsBroadcastSS (bool broadcast_enable) |
Set is broadcast SS. More... | |
void | SetMacAddress (Mac48Address macAddress) |
Set MAC address. More... | |
void | SetModulationType (WimaxPhy::ModulationType modulationType) |
Set modulation type. More... | |
void | SetPollMeBit (bool pollMeBit) |
Set poll ME bit. More... | |
void | SetPrimaryCid (Cid primaryCid) |
Set primary CID. More... | |
void | SetRangingStatus (WimaxNetDevice::RangingStatus rangingStatus) |
Set ranging status. More... | |
void | SetSfTransactionId (uint16_t sfTransactionId) |
Set SF transaction ID. More... | |
Private Member Functions | |
void | Initialize (void) |
Initialize. More... | |
Private Attributes | |
bool | m_areServiceFlowsAllocated |
are service floes allowed More... | |
Cid | m_basicCid |
basic CID More... | |
bool | m_broadcast |
broadcast? More... | |
DsaRsp | m_dsaRsp |
DSA response. More... | |
uint8_t | m_dsaRspRetries |
DAS response retries. More... | |
uint8_t | m_invitedRangingRetries |
invited ranging retries More... | |
Ipv4Address | m_IPAddress |
IP address. More... | |
Mac48Address | m_macAddress |
MAC address. More... | |
WimaxPhy::ModulationType | m_modulationType |
least robust burst profile (modulation type) for this SS More... | |
bool | m_pollForRanging |
poll for ranging More... | |
bool | m_pollMeBit |
if PM (poll me) bit set for this SS More... | |
Cid | m_primaryCid |
primary CID More... | |
uint8_t | m_rangingCorrectionRetries |
ranging correction retries More... | |
WimaxNetDevice::RangingStatus | m_rangingStatus |
ranging status More... | |
std::vector< ServiceFlow * > * | m_serviceFlows |
service flows More... | |
uint16_t | m_sfTransactionId |
SF transaction ID. More... | |
This class is used by the base station to store some information related to subscriber station in the cell.
Definition at line 43 of file ss-record.h.
ns3::SSRecord::SSRecord | ( | void | ) |
Definition at line 28 of file ss-record.cc.
References Initialize().
ns3::SSRecord::SSRecord | ( | Mac48Address | macAddress | ) |
Constructor.
macAddress | MAC address |
Definition at line 33 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 39 of file ss-record.cc.
References Initialize(), m_IPAddress, and m_macAddress.
ns3::SSRecord::~SSRecord | ( | void | ) |
Definition at line 68 of file ss-record.cc.
References m_serviceFlows.
void ns3::SSRecord::AddServiceFlow | ( | ServiceFlow * | serviceFlow | ) |
Add service flow.
serviceFlow | the service flow |
Definition at line 224 of file ss-record.cc.
References m_serviceFlows.
void ns3::SSRecord::DisablePollForRanging | ( | void | ) |
Disable poll for ranging.
Definition at line 188 of file ss-record.cc.
References m_pollForRanging.
Referenced by ns3::BSLinkManager::AbortRanging(), and ns3::BSLinkManager::AcceptRanging().
void ns3::SSRecord::EnablePollForRanging | ( | void | ) |
Enable poll for ranging function.
Definition at line 182 of file ss-record.cc.
References m_pollForRanging.
Referenced by ns3::BSLinkManager::PerformInitialRanging().
bool ns3::SSRecord::GetAreServiceFlowsAllocated | ( | void | ) | const |
Check if service flows are allocated.
Definition at line 206 of file ss-record.cc.
References m_areServiceFlowsAllocated.
Referenced by ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerMBQoS::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
Cid ns3::SSRecord::GetBasicCid | ( | void | ) | const |
Get basic CID.
Definition at line 92 of file ss-record.cc.
References m_basicCid.
Referenced by ns3::SSManager::DeleteSSRecord(), ns3::SSManager::GetSSRecord(), ns3::BSLinkManager::PerformInitialRanging(), ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection(), and ns3::BSLinkManager::VerifyInvitedRanging().
DsaRsp ns3::SSRecord::GetDsaRsp | ( | void | ) | const |
Get DSA response.
Definition at line 342 of file ss-record.cc.
References m_dsaRsp.
uint8_t ns3::SSRecord::GetDsaRspRetries | ( | void | ) | const |
Get DSA response retries.
Definition at line 330 of file ss-record.cc.
References m_dsaRspRetries.
bool ns3::SSRecord::GetHasServiceFlowBe | ( | void | ) | const |
Check if at least one flow has scheduling type SF_TYPE_BE.
Definition at line 294 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_BE.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule().
bool ns3::SSRecord::GetHasServiceFlowNrtps | ( | void | ) | const |
Check if at least one flow has scheduling type SF_TYPE_NRTPS.
Definition at line 281 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_NRTPS.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule().
bool ns3::SSRecord::GetHasServiceFlowRtps | ( | void | ) | const |
Check if at least one flow has scheduling type SF_TYPE_RTPS.
Definition at line 268 of file ss-record.cc.
References m_serviceFlows, and ns3::ServiceFlow::SF_TYPE_RTPS.
Referenced by ns3::UplinkSchedulerMBQoS::Schedule().
bool ns3::SSRecord::GetHasServiceFlowUgs | ( | void | ) | const |
Check if at least one flow has scheduling type SF_TYPE_UGS.
Definition at line 255 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 | ( | void | ) | const |
Get invited range retries.
Definition at line 140 of file ss-record.cc.
References m_invitedRangingRetries.
Referenced by ns3::BSLinkManager::VerifyInvitedRanging().
Ipv4Address ns3::SSRecord::GetIPAddress | ( | void | ) |
Get IP address.
Definition at line 80 of file ss-record.cc.
References m_IPAddress.
bool ns3::SSRecord::GetIsBroadcastSS | ( | void | ) |
Get is broadcast SS.
Definition at line 249 of file ss-record.cc.
References m_broadcast.
Referenced by ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerMBQoS::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
Mac48Address ns3::SSRecord::GetMacAddress | ( | void | ) | const |
Get MAC address.
Definition at line 116 of file ss-record.cc.
References m_macAddress.
Referenced by ns3::SSManager::GetMacAddress(), and ns3::UplinkSchedulerMBQoS::ProcessBandwidthRequest().
WimaxPhy::ModulationType ns3::SSRecord::GetModulationType | ( | void | ) | const |
Get modulation type.
Definition at line 164 of file ss-record.cc.
References m_modulationType.
Referenced by ns3::UplinkSchedulerMBQoS::CountSymbolsJobs(), ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerMBQoS::Schedule(), ns3::UplinkSchedulerSimple::SetupServiceFlow(), ns3::UplinkSchedulerMBQoS::SetupServiceFlow(), ns3::UplinkSchedulerRtps::SetupServiceFlow(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
bool ns3::SSRecord::GetPollForRanging | ( | void | ) | const |
Get poll for ranging.
Definition at line 194 of file ss-record.cc.
References m_pollForRanging.
Referenced by ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerMBQoS::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
bool ns3::SSRecord::GetPollMeBit | ( | void | ) | const |
Get poll ME bit.
Definition at line 218 of file ss-record.cc.
References m_pollMeBit.
Referenced by ns3::BandwidthManager::CalculateAllocationSize().
Cid ns3::SSRecord::GetPrimaryCid | ( | void | ) | const |
Get primary CID.
Definition at line 104 of file ss-record.cc.
References m_primaryCid.
Referenced by ns3::SSManager::DeleteSSRecord(), and ns3::SSManager::GetSSRecord().
uint8_t ns3::SSRecord::GetRangingCorrectionRetries | ( | void | ) | const |
Get ranging correction retries.
Definition at line 122 of file ss-record.cc.
References m_rangingCorrectionRetries.
Referenced by ns3::BSLinkManager::PerformInvitedRanging().
WimaxNetDevice::RangingStatus ns3::SSRecord::GetRangingStatus | ( | void | ) | const |
Get ranging status.
Definition at line 176 of file ss-record.cc.
References m_rangingStatus.
Referenced by ns3::SSManager::IsRegistered(), ns3::UplinkSchedulerSimple::Schedule(), ns3::UplinkSchedulerRtps::Schedule(), ns3::UplinkSchedulerMBQoS::Schedule(), and ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection().
std::vector< ServiceFlow * > ns3::SSRecord::GetServiceFlows | ( | enum ServiceFlow::SchedulingType | schedulingType | ) | const |
Get service flows.
schedulingType | the scheduling type |
Definition at line 229 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::UplinkSchedulerSimple::ServiceBandwidthRequests(), ns3::UplinkSchedulerRtps::ServiceBandwidthRequests(), ns3::UplinkSchedulerMBQoS::ServiceBandwidthRequests(), ns3::UplinkSchedulerSimple::ServiceUnsolicitedGrants(), ns3::UplinkSchedulerRtps::ServiceUnsolicitedGrants(), ns3::UplinkSchedulerMBQoS::ServiceUnsolicitedGrants(), ns3::UplinkSchedulerRtps::ULSchedulerRTPSConnection(), and ns3::UplinkSchedulerMBQoS::UplinkSchedWindowTimer().
uint16_t ns3::SSRecord::GetSfTransactionId | ( | void | ) | const |
Get SF transaction ID.
Definition at line 312 of file ss-record.cc.
References m_sfTransactionId.
void ns3::SSRecord::IncrementDsaRspRetries | ( | void | ) |
Increment DAS response retries.
Definition at line 324 of file ss-record.cc.
References m_dsaRspRetries.
void ns3::SSRecord::IncrementInvitedRangingRetries | ( | void | ) |
Increment invited ranging retries.
Definition at line 152 of file ss-record.cc.
References m_invitedRangingRetries.
Referenced by ns3::BSLinkManager::VerifyInvitedRanging().
void ns3::SSRecord::IncrementRangingCorrectionRetries | ( | void | ) |
Increment ranging correction retries.
Definition at line 134 of file ss-record.cc.
References m_rangingCorrectionRetries.
Referenced by ns3::BSLinkManager::PerformInvitedRanging().
|
private |
Initialize.
Definition at line 47 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().
void ns3::SSRecord::ResetInvitedRangingRetries | ( | void | ) |
Reset invited ranging retries.
Definition at line 146 of file ss-record.cc.
References m_invitedRangingRetries.
Referenced by ns3::BSLinkManager::PerformInitialRanging(), and ns3::BSLinkManager::PerformInvitedRanging().
void ns3::SSRecord::ResetRangingCorrectionRetries | ( | void | ) |
Reset ranging correction retries.
Definition at line 128 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 200 of file ss-record.cc.
References m_areServiceFlowsAllocated.
void ns3::SSRecord::SetBasicCid | ( | Cid | basicCid | ) |
Set basic CID.
basicCid | the basic CID |
Definition at line 86 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 336 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 318 of file ss-record.cc.
References m_dsaRspRetries.
void ns3::SSRecord::SetIPAddress | ( | Ipv4Address | IPaddress | ) |
Set IP address.
IPaddress | the IP address |
Definition at line 75 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 243 of file ss-record.cc.
References m_broadcast.
void ns3::SSRecord::SetMacAddress | ( | Mac48Address | macAddress | ) |
Set MAC address.
macAddress | the MAC address |
Definition at line 110 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 158 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 212 of file ss-record.cc.
References m_pollMeBit.
void ns3::SSRecord::SetPrimaryCid | ( | Cid | primaryCid | ) |
Set primary CID.
primaryCid | priamry CID |
Definition at line 98 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 170 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 307 of file ss-record.cc.
References m_sfTransactionId.
|
private |
are service floes allowed
Definition at line 270 of file ss-record.h.
Referenced by GetAreServiceFlowsAllocated(), Initialize(), and SetAreServiceFlowsAllocated().
|
private |
basic CID
Definition at line 261 of file ss-record.h.
Referenced by GetBasicCid(), Initialize(), and SetBasicCid().
|
private |
broadcast?
Definition at line 272 of file ss-record.h.
Referenced by GetIsBroadcastSS(), Initialize(), and SetIsBroadcastSS().
|
private |
DSA response.
Definition at line 279 of file ss-record.h.
Referenced by GetDsaRsp(), Initialize(), and SetDsaRsp().
|
private |
DAS response retries.
Definition at line 278 of file ss-record.h.
Referenced by GetDsaRspRetries(), IncrementDsaRspRetries(), Initialize(), and SetDsaRspRetries().
|
private |
invited ranging retries
Definition at line 265 of file ss-record.h.
Referenced by GetInvitedRangRetries(), IncrementInvitedRangingRetries(), Initialize(), and ResetInvitedRangingRetries().
|
private |
IP address.
Definition at line 259 of file ss-record.h.
Referenced by GetIPAddress(), SetIPAddress(), and SSRecord().
|
private |
MAC address.
Definition at line 258 of file ss-record.h.
Referenced by GetMacAddress(), SetMacAddress(), and SSRecord().
|
private |
least robust burst profile (modulation type) for this SS
Definition at line 267 of file ss-record.h.
Referenced by GetModulationType(), Initialize(), and SetModulationType().
|
private |
poll for ranging
Definition at line 269 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 271 of file ss-record.h.
Referenced by GetPollMeBit(), Initialize(), and SetPollMeBit().
|
private |
primary CID
Definition at line 262 of file ss-record.h.
Referenced by GetPrimaryCid(), Initialize(), and SetPrimaryCid().
|
private |
ranging correction retries
Definition at line 264 of file ss-record.h.
Referenced by GetRangingCorrectionRetries(), IncrementRangingCorrectionRetries(), Initialize(), and ResetRangingCorrectionRetries().
|
private |
ranging status
Definition at line 268 of file ss-record.h.
Referenced by GetRangingStatus(), Initialize(), and SetRangingStatus().
|
private |
service flows
Definition at line 274 of file ss-record.h.
Referenced by AddServiceFlow(), GetHasServiceFlowBe(), GetHasServiceFlowNrtps(), GetHasServiceFlowRtps(), GetHasServiceFlowUgs(), GetServiceFlows(), Initialize(), and ~SSRecord().
|
private |
SF transaction ID.
Definition at line 277 of file ss-record.h.
Referenced by GetSfTransactionId(), Initialize(), and SetSfTransactionId().