Class SimulationProgressImpl
Provides a component to show the progress of the simulation
in form of progress bar.
Inheritance
System.Object
SimulationProgressImpl
Namespace: Mars.Core.Executor.Implementation
Assembly: Mars.Core.dll
Syntax
public class SimulationProgressImpl : object, ISimulationProgress, IDisposable
Constructors
SimulationProgressImpl(IConfigLoader)
Creates a new progress with the IConfigLoader as a the dependency
Declaration
public SimulationProgressImpl(IConfigLoader configLoader)
Parameters
Type | Name | Description |
---|---|---|
IConfigLoader | configLoader |
Methods
Dispose()
Release the progress bar
Declaration
public void Dispose()
Start(Int32)
Starts a new progress bar with optional options for visualisation
Declaration
public void Start(int maxTicks)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxTicks | The amount of execution iterations |
Tick(String)
One step forward in the progress
Declaration
public void Tick(string message = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
Implements
IDisposable