override protected void ReplicationFinished() { // Collect local statistics into global, update UI, etc... base.ReplicationFinished(); AveragePassengerWaitingTimeSim.AddSample(BusStopsAgent.WaitingTimeRepStat.Mean()); ArrivedAfterStartRatioSim.AddSample(StadiumAgent.ArrivedAfterStartRatioRep.Mean()); AverageVehicleLoadSim.AddSample(StadiumAgent.AverageVehicleLoadRep.Mean()); }
override protected void PrepareSimulation() { base.PrepareSimulation(); // Create global statistcis AveragePassengerWaitingTimeSim.Clear(); ArrivedAfterStartRatioSim.Clear(); AverageVehicleLoadSim.Clear(); }