Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Transient"/> class.
 /// </summary>
 /// <param name="name">The name of the simulation.</param>
 /// <param name="parameters">The time parameters.</param>
 public Transient(string name, TimeParameters parameters)
     : base(name)
 {
     TimeParameters = parameters.ThrowIfNull(nameof(parameters));
     Statistics     = new TimeSimulationStatistics();
     _time          = new SimulationState();
 }
Exemple #2
0
 /// <inheritdoc />
 protected override void CreateStates()
 {
     base.CreateStates();
     _method = TimeParameters.Create(GetState <IBiasingSimulationState>());
 }