本文整理汇总了C++中NetworkNode::GetProtocolStack方法的典型用法代码示例。如果您正苦于以下问题:C++ NetworkNode::GetProtocolStack方法的具体用法?C++ NetworkNode::GetProtocolStack怎么用?C++ NetworkNode::GetProtocolStack使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetworkNode
的用法示例。
在下文中一共展示了NetworkNode::GetProtocolStack方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetHandoverEntity
void
NetworkManager::SelectTargetNode (UserEquipment* ue)
{
NetworkNode* targetNode = ue->GetTargetNode ();
if (targetNode->GetProtocolStack ()->GetRrcEntity ()->
GetHandoverEntity ()->CheckHandoverNeed (ue))
{
NetworkNode* newTagertNode =
targetNode->GetProtocolStack ()->GetRrcEntity ()->
GetHandoverEntity ()->GetHoManager ()->m_target;
ue->SetTargetNode (newTagertNode);
}
}
示例2: GetUserEquipmentContainer
void
NetworkManager::UpdateUserPosition (double time)
{
std::vector<UserEquipment*> *records = GetUserEquipmentContainer ();
std::vector<UserEquipment*>::iterator iter;
UserEquipment *record;
#ifdef MOBILITY_DEBUG
std::cout << "MOBILITY_DEBUG: UPDATE POSITION, "
"number of UE = " << records->size () <<
" time = " << time << std::endl;
#endif
for (iter = records->begin(); iter != records->end(); iter++)
{
record = *iter;
#ifdef MOBILITY_DEBUG
std::cout << "\t USER " << record->GetIDNetworkNode ()
<< std::endl;
#endif
record->UpdateUserPosition (time);
record->SetIndoorFlag( CheckIndoorUsers(record) );
#ifdef AMC_MAPPING
std::cout << "time: " << time << "\n\t position: "
<< record->GetMobilityModel ()->GetAbsolutePosition ()->GetCoordinateX () <<
" " << record->GetMobilityModel ()->GetAbsolutePosition ()->GetCoordinateY ()
<< std::endl;
#endif
#ifdef MOBILITY_DEBUG
std::cout << "time: " << time << "\t position: "
<< record->GetMobilityModel ()->GetAbsolutePosition ()->GetCoordinateX () <<
" " << record->GetMobilityModel ()->GetAbsolutePosition ()->GetCoordinateY ()
<< std::endl;
#endif
if (record->GetMobilityModel ()->GetHandover () == true)
{
NetworkNode* targetNode = record->GetTargetNode ();
if (targetNode->GetProtocolStack ()->GetRrcEntity ()->
GetHandoverEntity ()->CheckHandoverNeed (record))
{
NetworkNode* newTagertNode = targetNode->GetProtocolStack ()
->GetRrcEntity ()->GetHandoverEntity ()->GetHoManager ()->m_target;
#ifdef HANDOVER_DEBUG
std::cout << "** HO ** \t time: " << time << " user " << record->GetIDNetworkNode () <<
" old eNB " << targetNode->GetIDNetworkNode () <<
" new eNB " << newTagertNode->GetIDNetworkNode () << std::endl;
#endif
HandoverProcedure(time, record, targetNode, newTagertNode);
}
}
}
//PrintUEsForEachCell();
}