Exemplo n.º 1
0
 void DrvWlConInit()
 {
     for (int i = 0; i < AGVNUM_MAX; i++)
     {
         AGVStatus[i] = new AGVCar(this,canvas);
     }
     DrvWlConWorkLineInit();  //生产区初始化,需要先初始化AGVStatus,然后再生产区初始化
     if (GlobalPara.IsTrafficFun)
     {
         agvTrafficList = new AGVTrafficList();
         agvTrafficList.Init();//交通管制路口初始化
     }
     if (GlobalPara.IsDockFun)
     {
         agvDock = new AGVDock();
         agvDock.Init();
     }
     if (GlobalPara.IsChargeFun)
     {
         agvCharge = new AGVCharge();
         agvCharge.Init();
     }
     if (GlobalPara.IsCallFun)
     {
         agvCall = new AGVCall();
     }
 }
Exemplo n.º 2
0
 void DrvWlConInit()
 {
     if (GlobalPara.IsTrafficFun)
     {
         agvTrafficList = new AGVTrafficList();
         agvTrafficList.Init();//交通管制路口初始化
     }
     if (GlobalPara.IsDockFun)
     {
         agvDock = new AGVDock();
         agvDock.Init();
     }
     if (GlobalPara.IsChargeFun)
     {
         agvCharge = new AGVCharge();
         agvCharge.Init();
     }
     if (GlobalPara.IsCallFun)
     {
         agvCall = new AGVCall();
     }
 }