• 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 IEntityMapping

Generic input/output mapping component, responsible to manage all connected services in order to access them to read entities or to write entity states in multi-store manner.
Inherited Members
System.IDisposable.Dispose()
Namespace: Mars.Core.Data
Assembly: Mars.Core.dll
Syntax
public interface IEntityMapping : IDisposable

Methods

| Improve this Doc View Source

DeRegisterEntity(IEntity, TypeElement)

Unregisters an entity object from the I/O mapper.
Declaration
void DeRegisterEntity(IEntity entity, TypeElement type)
Parameters
Type Name Description
IEntity entity The entity to remove.
TypeElement type The corresponding type of the entity.
| Improve this Doc View Source

DeRegisterLayer(ILayer, LayerType)

Unregisters a layer object from the entity I/O mapper.
Declaration
void DeRegisterLayer(ILayer layer, LayerType type)
Parameters
Type Name Description
ILayer layer The layer object to remove.
LayerType type The corresponding type of the layer.
| Improve this Doc View Source

Initialize(ModelDescription, SimulationConfig)

Initialize the result output for the passed ModelDescription and their SimulationConfig.
Declaration
void Initialize(ModelDescription description, SimulationConfig config)
Parameters
Type Name Description
ModelDescription description The description containing all types.
SimulationConfig config The simulation config containing all relevant runtime information's.
| Improve this Doc View Source

RegisterEntity(IEntity, TypeElement, TypeMapping)

Register a simulation object at the result adapter.
Declaration
IGeneratedEntityLogger RegisterEntity(IEntity entity, TypeElement type, TypeMapping mapping = null)
Parameters
Type Name Description
IEntity entity The simulation entity to add to output queue.
TypeElement type The description of the type from which this entity is an instance.
TypeMapping mapping The type-specific configuration.
Returns
Type Description
IGeneratedEntityLogger
| Improve this Doc View Source

RegisterLayer(ILayer, LayerType, Int32)

Register a layer object at the result adapter.
Declaration
IGeneratedLayerLogger RegisterLayer(ILayer layer, LayerType type, int outputFrequency = 1)
Parameters
Type Name Description
ILayer layer The layer entity to add to output queue.
LayerType type The layer type responsible for the concrete instance.
System.Int32 outputFrequency Output tick frequency of the layer.
Returns
Type Description
IGeneratedLayerLogger
| Improve this Doc View Source

RegisterType(TypeElement, Int32)

Registers an agent type where each instance their result output will be handled by this configuration if its not registered individually by apply RegisterEntity(IEntity, TypeElement, TypeMapping).
Declaration
IGeneratedTypeLogger RegisterType(TypeElement type, int executionGroup = 1)
Parameters
Type Name Description
TypeElement type The static AgentType description.
System.Int32 executionGroup The output tick frequency after each tick the instance shall be persisted.
Returns
Type Description
IGeneratedTypeLogger
| Improve this Doc View Source

SimulationFinished()

The simulation has finished. Tear down / finalization method.
Declaration
void SimulationFinished()
| Improve this Doc View Source

WriteResults(Int64, Int64, Nullable<DateTime>)

Fetch all tick results and write them to the database.
Declaration
void WriteResults(long currentTick, long currentStep, DateTime? currentDate)
Parameters
Type Name Description
System.Int64 currentTick The current tick. Needed for sanity check.
System.Int64 currentStep The current model simulation step
System.Nullable<System.DateTime> currentDate The current concrete time point if realtime related

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