Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Simulation"/> class.
 /// </summary>
 /// <param name="name">The identifier of the simulation.</param>
 protected Simulation(string name)
 {
     Name = name;
     SimulationStatistics = new SimulationStatistics();
     Statistics.Add(typeof(SimulationStatistics), SimulationStatistics);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Simulation"/> class.
 /// </summary>
 /// <param name="name">The name of the simulation.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="name"/> is <c>null</c>.</exception>
 protected Simulation(string name)
 {
     Name       = name.ThrowIfNull(nameof(name));
     Statistics = new SimulationStatistics();
 }