Interface IStepExecutor
The Step Executor is the central component to orchestrate model initialization
for execution of a simulation step
Inherited Members
System.IDisposable.Dispose()
Namespace: Mars.Core.Executor
Assembly: Mars.Core.dll
Syntax
public interface IStepExecutor : IDisposable
Methods
| Improve this Doc View SourceAbortStep()
Abort a running simulation step.
Declaration
void AbortStep()
InitializeModel(ModelDescription, SimulationConfig, ISimulationContext)
Initialize a new model based on a given
model description
for the specified context
.
Declaration
IRuntimeModel InitializeModel(ModelDescription description, SimulationConfig config, ISimulationContext context)
Parameters
Type | Name | Description |
---|---|---|
ModelDescription | description | The model description associated with an SimulationConfig to initialize. |
SimulationConfig | config |
The simulation config containing all shared runtime and init info's
to create instances for the given type in the description
|
ISimulationContext | context | The current execution context, containing all shared step execution information's and identifying this run. |
Returns
Type | Description |
---|---|
IRuntimeModel |
PauseStep()
Pause a running simulation step.
Declaration
void PauseStep()
ResumeStep()
Resume a running simulation step from a paused state.
Declaration
void ResumeStep()
StepSimulation(StepParam)
Execute a simulation step for each agent and active layer.
Declaration
void StepSimulation(StepParam param)
Parameters
Type | Name | Description |
---|---|---|
StepParam | param | Step param with the relevant information for the step. |