int main(){
        //ifstream in("input.txt");
        short commds;
        BandwidthManager bm;
        int commands;
        string command;
        ios_base::sync_with_stdio(false);
        cin>>commands;
        while (commands--)
        {
                string command,load;
                cin>>command;
                if(command == "rcv"){
                        cin>>command>>load;
                        bm.rcv(command,load);
                }
                else if(command == "send"){
Beispiel #2
0
ENodeB::UserEquipmentRecord::UserEquipmentRecord (UserEquipment *UE)
{
  m_UE = UE;
  BandwidthManager *s = m_UE->GetPhy ()->GetBandwidthManager ();

  int nbRbs = s->GetDlSubChannels ().size ();
  m_cqiFeedback.clear ();
  for (int i = 0; i < nbRbs; i++ )
    {
	  m_cqiFeedback.push_back (10);
    }

  nbRbs = s->GetUlSubChannels ().size ();
  m_uplinkChannelStatusIndicator.clear ();
  for (int i = 0; i < nbRbs; i++ )
    {
	  m_uplinkChannelStatusIndicator.push_back (10.);
    }

  m_schedulingRequest = 0;
  m_averageSchedulingGrants = 1;
}