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); }
protected void Finish(TLoad load) { ActiveLoads.Remove(load); PassiveLoads.Add(load); OnReadyToDepart.Invoke(load); }