예제 #1
0
 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());
 }
예제 #2
0
 override protected void PrepareSimulation()
 {
     base.PrepareSimulation();
     // Create global statistcis
     AveragePassengerWaitingTimeSim.Clear();
     ArrivedAfterStartRatioSim.Clear();
     AverageVehicleLoadSim.Clear();
 }