|
522 |
void |
522 |
void |
523 |
BaseStationNetDevice::StartFrame (void) |
523 |
BaseStationNetDevice::StartFrame (void) |
524 |
{ |
524 |
{ |
|
|
525 |
//setting DL/UL subframe allocation for this frame |
526 |
uint32_t symbolsPerFrame = GetPhy ()->GetSymbolsPerFrame (); |
527 |
SetNrDlSymbols ((symbolsPerFrame / 2) - ceil(GetTtg()*m_psDuration.GetSeconds ()/m_symbolDuration.GetSeconds ())); |
528 |
SetNrUlSymbols ((symbolsPerFrame / 2) - ceil(GetRtg()*m_psDuration.GetSeconds ()/m_symbolDuration.GetSeconds ())); |
529 |
|
525 |
m_frameStartTime = Simulator::Now (); |
530 |
m_frameStartTime = Simulator::Now (); |
526 |
|
531 |
|
527 |
NS_LOG_INFO ("----------------------frame" << GetNrFrames () + 1 << "----------------------"); |
532 |
NS_LOG_INFO ("----------------------frame" << GetNrFrames () + 1 << "----------------------"); |
|
951 |
burst = pair.second; |
956 |
burst = pair.second; |
952 |
dlMapIe = pair.first; |
957 |
dlMapIe = pair.first; |
953 |
cid = dlMapIe->GetCid (); |
958 |
cid = dlMapIe->GetCid (); |
|
|
959 |
uint8_t diuc = dlMapIe->GetDiuc (); |
954 |
|
960 |
|
955 |
if (cid != GetInitialRangingConnection ()->GetCid () && cid != GetBroadcastConnection ()->GetCid ()) |
961 |
if (cid != GetInitialRangingConnection ()->GetCid () && cid != GetBroadcastConnection ()->GetCid ()) |
956 |
{ |
962 |
{ |
|
958 |
{ |
964 |
{ |
959 |
if (m_serviceFlowManager->GetServiceFlow (cid)->GetIsMulticast () == true) |
965 |
if (m_serviceFlowManager->GetServiceFlow (cid)->GetIsMulticast () == true) |
960 |
{ |
966 |
{ |
961 |
modulationType = m_serviceFlowManager->GetServiceFlow (cid)->GetModulation (); |
967 |
modulationType = GetBurstProfileManager ()->GetModulationType (diuc, WimaxNetDevice::DIRECTION_DOWNLINK); |
962 |
} |
968 |
} |
963 |
} |
969 |
} |
964 |
else |
970 |
else |
965 |
{ |
971 |
{ |
966 |
modulationType = m_ssManager->GetSSRecord (cid)->GetModulationType (); |
972 |
modulationType = GetBurstProfileManager ()->GetModulationType (diuc, WimaxNetDevice::DIRECTION_DOWNLINK); |
967 |
} |
973 |
} |
968 |
} |
974 |
} |
969 |
else |
975 |
else |