コード例 #1
0
 /// <summary>
 /// Prepare the simulation to be run.
 /// </summary>
 public void Prepare()
 {
     SimulationToRun = ToSimulation();
     SimulationToRun.Prepare();
 }
コード例 #2
0
 /// <summary>Run the simulation.</summary>
 /// <param name="cancelToken"></param>
 public void Run(CancellationTokenSource cancelToken)
 {
     SimulationToRun = ToSimulation();
     SimulationToRun.Run(cancelToken);
 }
コード例 #3
0
 /// <summary>
 /// Cleanup the job after running it.
 /// </summary>
 public void Cleanup()
 {
     // Do nothing.
     SimulationToRun.Cleanup();
 }