• MARS Website
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API
Show / Hide Table of Contents
  • Mars.Core
    • DependencyRegistrationCore
  • Mars.Core.Data
    • AbstractConfigLoader
    • AbstractEntityManager
    • AgentManagerImpl
    • DomainDataMediatorImpl
    • EntityManagerImpl
    • IAgentManager
    • IEntityManager
    • IEntityMapping
    • IGeneratedEntityLogger
    • IGeneratedLayerLogger
    • IGeneratedLogger<TModel>
    • IGeneratedTypeLogger
    • IModelCompiler
    • IOutputLogger
    • IPlatformSelector
    • ISchemaMigrationProvider
    • ISerializerManager
    • PlatformSelectorImpl
  • Mars.Core.Data.Compiler
    • AbstractEntityMapper
    • AbstractJitMapper
    • AbstractLayerMapper
    • AbstractMapper<TModel>
    • AbstractTypeMapper
    • RoslynCompilerUtils
  • Mars.Core.Data.Entities
    • CircleFilter
    • Condition
    • ConjunctiveWhere
    • DataFrame
    • DisjunctiveWhere
    • EqualityCondition
    • IntersectionFilter
    • ISelection
    • NearestFilter
    • Query
    • WindowFilter
    • WithinFilter
  • Mars.Core.Data.Exceptions
    • AgentInitializationException
  • Mars.Core.Data.Mapping
    • DefaultSourceProvider
    • ReflectiveMapping
  • Mars.Core.Data.Wrapper
    • AbstractOperationWrapper
    • AbstractWrapper
    • AbstractWrapper<TOptions>
    • GlobalRestrictions
    • ICircleQueryOperation
    • IIntersectionOperation
    • ILookupOperation
    • INearestOperation
    • IOperation
    • IPlatform
    • IQueryOperation
    • ISnapshot
    • IWindowQueryOperation
    • IWithinOperation
    • IWrapper
    • KnnGraphWrapper
    • PostGisWrapper
  • Mars.Core.Data.Wrapper.Document
    • IMongoConnection
    • IMongoWrapper
    • MongoDbIteratorHelper
    • MongoDbWrapper
  • Mars.Core.Data.Wrapper.File
    • AbstractFileWrapper<TOptions>
    • AscWrapper
    • GeoJsonWrapper
  • Mars.Core.Data.Wrapper.Memory
    • DataTableWrapper
    • GeoHashTrieWrapper
    • KdTreeWrapper
    • TripPosition
    • TripPositionCoordinateConverter
    • TripsCollection
    • TripsLineConverter
    • TripsTrajectoryWrapper
  • Mars.Core.Data.Wrapper.Relational
    • AbstractRelationalConnection
    • PostgresSqlDbConnection
    • PostgresSqlWrapper
    • RelationalMapperException
    • RelationalSqlWrapper<TOptions>
    • SqliteDbConnection
    • SqliteWrapper
  • Mars.Core.Data.Wrapper.Stream
    • MqttWrapper
    • SimulationTypeInfo
  • Mars.Core.Executor
    • IRuntimeModel
    • ISimulationProgress
    • IStepExecutor
  • Mars.Core.Executor.Entities
    • Parametrization
    • StepParam
  • Mars.Core.Executor.Implementation
    • RuntimeModelImpl
    • SimulationProgressImpl
    • StepExecutionUseCase
  • Mars.Core.Model
    • IConfigLoader
    • IModelContainer
    • IModelResolver
  • Mars.Core.Model.Entities
    • LayerInstanceContainer
  • Mars.Core.Model.Exceptions
    • InvalidMappingException
    • MissingConstructorException
    • ModelResolutionException
    • ValidationException
  • Mars.Core.Model.Implementation
    • DependencyBuilder
    • MappingHelper
    • ModelContainer
    • ValidationIssueLevel
    • ValidationResult
    • Validator
  • Mars.Core.Simulation
    • ISimulation
    • ISimulationControl
  • Mars.Core.Simulation.Entities
    • SimulationRestartArgs
    • SimulationWorkflowState

Interface ISimulation

The external service to start, control and stop simulation run. Use only this service to interact with running simulation.
Inherited Members
ISimulationControl.StepSimulation()
ISimulationControl.PauseSimulation()
ISimulationControl.ResumeSimulation()
ISimulationControl.AbortSimulation()
System.IDisposable.Dispose()
Namespace: Mars.Core.Simulation
Assembly: Mars.Core.dll
Syntax
public interface ISimulation : ISimulationControl, IDisposable

Properties

| Improve this Doc View Source

WorkflowState

Gets or sets the current simulation state with step and realtime progress
Declaration
SimulationWorkflowState WorkflowState { get; }
Property Value
Type Description
SimulationWorkflowState

Methods

| Improve this Doc View Source

PrepareInfrastructure(ModelDescription, SimulationConfig)

Prepare the simulation infrastructure in order to write the initial step and to perform the first simulation step. This call will initialize all required entities and bring them into a state where snapshot results can be written into target.
Declaration
SimulationWorkflowState PrepareInfrastructure(ModelDescription description, SimulationConfig config)
Parameters
Type Name Description
ModelDescription description The static model description of the model to execute.
SimulationConfig config The initialization inputConfiguration for simulation step zero.
Returns
Type Description
SimulationWorkflowState The last simulation workflow state that was successfully executed.
| Improve this Doc View Source

PrepareSimulation(ModelDescription, SimulationConfig)

Prepare the simulation execution with initialization data of the infrastructure, all initialization data for each individual model type and the global inputConfiguration of the execution interval, step size and result output.
Declaration
SimulationWorkflowState PrepareSimulation(ModelDescription description, SimulationConfig config)
Parameters
Type Name Description
ModelDescription description The static model description of the model to execute.
SimulationConfig config The initialization inputConfiguration for simulation step zero.
Returns
Type Description
SimulationWorkflowState The last simulation workflow state that was successfully executed.
| Improve this Doc View Source

StartSimulation()

Starts a simulation where the ModelDescription and the SimulationConfig was already been prepared through PrepareSimulation(ModelDescription, SimulationConfig)
Declaration
SimulationWorkflowState StartSimulation()
Returns
Type Description
SimulationWorkflowState The last simulation workflow state that was successfully executed.
| Improve this Doc View Source

StartSimulation(ModelDescription, SimulationConfig)

Starts a simulation for the passed ModelDescription and all initialization data in form of SimulationConfig which includes all necessary configurations.
Declaration
SimulationWorkflowState StartSimulation(ModelDescription description, SimulationConfig config)
Parameters
Type Name Description
ModelDescription description The static model description to create and simulate.
SimulationConfig config The simulation config with input data references, mappings and global execution configurations.
Returns
Type Description
SimulationWorkflowState The last simulation workflow state that was successfully executed.
| Improve this Doc View Source

StartSimulation(ModelDescription, in String)

Starts a simulation for the passed ModelDescription and all initialization data in form of the input SimulationConfig YAML or JSON file path, which includes all necessary configurations.
Declaration
SimulationWorkflowState StartSimulation(ModelDescription description, in string configPath)
Parameters
Type Name Description
ModelDescription description The static model description to create and simulate.
System.String configPath The simulation config as YAML/JSON or the file path with input data and configurations.
Returns
Type Description
SimulationWorkflowState The last simulation workflow state that was successfully executed.

Extension Methods

Serializer.Save<T>(T, out Byte[], SerializerCompression)
Serializer.Save<T>(T, Stream, SerializerCompression)
Serializer.Save<T>(T, BinaryFormatter, Stream, SerializerCompression)
Serializer.Save<T>(T, String, SerializerCompression)
Serializer.Save<T>(T, String)
Matrix.Concatenate<T>(T, T[])
Matrix.Replace<T>(T, Object, Object)
DomainDataImporter.Import(Object, InputConfiguration)
ObjectSerialize.Serialize(Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg