/// <summary> /// Used to wait for workers that are still busy. (In case we simulated faster than real-time) /// </summary> /// <param name="currentTime">The current simulation time.</param> protected void WaitForUnfinishedWorker(double currentTime) { BotManager.SignalCurrentTime(currentTime); StationManager.SignalCurrentTime(currentTime); StorageManager.SignalCurrentTime(currentTime); PodStorageManager.SignalCurrentTime(currentTime); RepositioningManager.SignalCurrentTime(currentTime); OrderManager.SignalCurrentTime(currentTime); BundleManager.SignalCurrentTime(currentTime); }
/// <summary> /// Exchanges the active pod storage manager with the given one. /// </summary> /// <param name="newManager">The new manager.</param> public void ExchangePodStorageManager(PodStorageManager newManager) { Instance.RemoveUpdateable(PodStorageManager); PodStorageManager = newManager; Instance.AddUpdateable(newManager); }