Example #1
0
/*
 *  DEBUG
 */
void
NetworkManager::Print (void)
{
  cout << " TOTAL Network Manager Debug: " << endl;

  std::vector<Cell*>* cellContainer = GetCellContainer ();
  std::vector<Cell*>::iterator iter;
  Cell *cell;
  for (iter = cellContainer->begin ();
      iter !=cellContainer->end (); iter++)
    {
    cell = *iter;
    cell->Print();
    }

  std::vector<ENodeB*>* eNodeBContainer = GetENodeBContainer ();
  std::vector<ENodeB*>::iterator iter2;
  ENodeB *eNodeB;
  for (iter2 = eNodeBContainer->begin ();
      iter2 !=eNodeBContainer->end (); iter2++)
    {
    eNodeB = *iter2;
    eNodeB->Print();
    }

  std::vector<UserEquipment*>* userEquipmentContainer = GetUserEquipmentContainer ();
  std::vector<UserEquipment*>::iterator iter3;
  UserEquipment *userEquipment;
  for (iter3 = userEquipmentContainer->begin ();
      iter3 !=userEquipmentContainer->end (); iter3++)
    {
    userEquipment = *iter3;
    userEquipment->Print();
    }
}
Example #2
0
void
NetworkManager::Print (NetworkManager::m_debugInfo info)
{
  cout << " Network Manager Debug: " << endl;

  switch (info)
  {
  case NetworkManager::ALL_NETWORK:
    {
      this->Print();
      break;
    }

  case NetworkManager::ONLY_CELL_DETAILS:
    {
      std::vector<Cell*>* cellContainer = GetCellContainer ();
      std::vector<Cell*>::iterator iter;
      Cell *cell;
      for (iter = cellContainer->begin ();
          iter !=cellContainer->end (); iter++)
        {
        cell = *iter;
        cell->Print();
        }
      break;
    }

  case NetworkManager::ONLY_ENODEB_DETAILS:
    {
      std::vector<ENodeB*>* eNodeBContainer = GetENodeBContainer ();
      std::vector<ENodeB*>::iterator iter2;
      ENodeB *eNodeB;
      for (iter2 = eNodeBContainer->begin ();
          iter2 !=eNodeBContainer->end (); iter2++)
        {
        eNodeB = *iter2;
        eNodeB->Print();
        }
      break;
    }
  case NetworkManager::ONLY_USER_EQUIPMENT_DETAILS:
    {
      std::vector<UserEquipment*>* userEquipmentContainer = GetUserEquipmentContainer ();
      std::vector<UserEquipment*>::iterator iter3;
      UserEquipment *userEquipment;
      for (iter3 = userEquipmentContainer->begin ();
          iter3 !=userEquipmentContainer->end (); iter3++)
        {
        userEquipment = *iter3;
        userEquipment->Print();
        }
      break;
    }

  default:
    {
      cout << " INVALID NETWORK DEBUG CODE " << endl;
      break;
    }

  }
}