一.程序first.cc,second.cc等
命令:sudo ./waf --run scratch/first
二.lte模块程序
例如程序:lena-dual-stripe.cc
首先,在lena-dual-stripe.cc程序文件中加入切换相关的函数。如下:
void
NotifyHandoverStartUe (std::string context,
uint64_t imsi,
uint16_t cellId,
uint16_t rnti,
uint16_t targetCellId)
{
std::cout << Simulator::Now ().GetSeconds () << " " << context
<< " UE IMSI " << imsi
<< ": previously connected to CellId " << cellId
<< " with RNTI " << rnti
<< ", doing handover to CellId " << targetCellId
<< std::endl;
}
void
NotifyHandoverEndO