コード例 #1
0
 public void Terminate(Event evt)
 {
     evt.EventExecuted += delegate(object obj1, EventInfoArgs e)
     {
         unsatisfiedRatio   = (double)UnsatisfiedCustomer / ID;
         richTextBox1.Text += "Replication No : " + Simulation.replicationNow + " ended." + "\n";
         Stats.AddDataToStatsGlobalDictionary("SOHtimeAverage", Stats.Dictionary["SOHtimeAverage"].timeWeightedAverage);
         Stats.AddDataToStatsGlobalDictionary("Unsatisfied Customer", UnsatisfiedCustomer);
         Stats.AddDataToStatsGlobalDictionary("Total Customer", ID);
         Stats.AddDataToStatsGlobalDictionary("Lost Demand Size", Stats.Dictionary["Lost Demand Size"].mean);
         Stats.AddDataToStatsGlobalDictionary("Unsatisfied Ratio", unsatisfiedRatio);
     };
 }