//**********************unit**************************
T_unit = 1;    //1:min, 60:sec
L_unit = 1000; //1:km, 1000:m, 100000:cm

//****************simulation time*********************
time_length = 180;
T = 480; // 8:00 = 8~60 + 0

//****************primitive mobility******************
AVOID = true;

//*********************customer***********************
if(prob( 20 )){
  V = rand(1.0, 1.8);

  if(prob(30)) P = A;
  else P = Q;

  if(prob(50)){
    tdst.p = E;
    tdst.t = T + req_time(P, E, V);
    tdst.s = 30;
  }
  else{
    tdst.p = J;
    tdst.t = T + req_time(P, J, V);
    tdst.s = 30;
  }
  put(tdst, Dlist);

  tdst.t = tdst.t + 30 + req_time(dst.p, P, V);
  tdst.p = P;
  tdst.s = 0;
  put(tdst, Dlist);

  customer.gen(P, V, Dlist);
}

//*********************commuter***********************
if(T * 60 % 10){ //every 10sec
  V = rand(1.5, 2.0);

  if(prob(50)) P = F;
  else P = J;

  tdst.p = K;
  tdst.t = T + req_time(P, K, V);
  tdst.s = 0;
  put(tdst, Dlist);

  void generator(T, nodenum){
    if( prob(0.2) ) customer.gen(P, V, Dlist);
  }
}