private void Preprocess() { if (m_isFinished) { Log("\n *** Simulation started *** \n"); // Initialize starting events TenantGenerator generator; TenantQueue queue; foreach (int key in GeneratorsController.Floors) { generator = GeneratorsController.Get(key); queue = QueuesController.Get(key); CreateEvent_NewTenant(generator, queue); } // Force update statistics GeneratorsController.UpdateStatistics(); QueuesController.UpdateStatistics(); ElevatorsController.UpdateStatistics(); m_isFinished = false; } else { Log("\n *** Simulation continued *** \n"); } }
private void Postprocess() { Log("\n *** Simulation stopped *** \n"); // Force update statistics GeneratorsController.UpdateStatistics(); QueuesController.UpdateStatistics(); ElevatorsController.UpdateStatistics(); }