Exemple #1
0
 private void ReadyToDepart(ILoad load)
 {
     Log("Ready to Depart", load);
     if (DebugMode)
     {
         Debug.WriteLine("{0}:\t{1}\tReadyToDepart\t{2}", ClockTime, this, load);
     }
     HSet_Serving.Remove(load);
     HSet_PendingToDepart.Add(load);
     HC_Serving.ObserveChange(-1, ClockTime);
     HC_PendingToDepart.ObserveChange(1, ClockTime);
     OnReadyToDepart.Invoke(load);
 }
Exemple #2
0
 protected void Finish(TLoad load)
 {
     ActiveLoads.Remove(load);
     PassiveLoads.Add(load);
     OnReadyToDepart.Invoke(load);
 }