示例#1
0
 public UpdateRoute(TrainInfo trainInfo, SetMA MA)
 {
     this.trainInfo = trainInfo;
     this.MA        = MA;
     CancelPreAccess();
     UpdateAccess();
     UpdatePreAccess();
 }
示例#2
0
 private void SetMATail()
 {
     MA = new SetMA();
     if (MA.DetermineMA(trainInfo))
     {
         atpPackage.D_MATailType = Convert.ToByte(MA.MAEndDevice is Section ? 0x01 : 0x02);
         atpPackage.D_MATailId   = Convert.ToByte(MA.MAEndDevice.ID);
         atpPackage.D_MATailOff  = MA.MAOffset;
         atpPackage.Q_MATailDir  = (Byte)trainInfo.TrainDirection;
     }
 }