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

    Class AbstractEntityMapper

    Provides a base implementation for the IGeneratedEntityLogger interface for all agent entities which can be serialize/deserialized.
    Inheritance
    System.Object
    AbstractJitMapper
    AbstractMapper<IEntity>
    AbstractEntityMapper
    Implements
    IGeneratedEntityLogger
    IGeneratedLogger<IEntity>
    IOutputLogger
    Inherited Members
    AbstractMapper<IEntity>.CompressionOptions
    AbstractMapper<IEntity>.BsonDocument
    AbstractMapper<IEntity>.Frame
    AbstractMapper<IEntity>.RId
    AbstractMapper<IEntity>.Tick
    AbstractMapper<IEntity>.Step
    AbstractMapper<IEntity>.DateTime
    AbstractMapper<IEntity>.Entity
    AbstractMapper<IEntity>.Id
    AbstractMapper<IEntity>.IdString
    AbstractMapper<IEntity>.IsSerializable()
    AbstractMapper<IEntity>.Serialize()
    AbstractMapper<IEntity>.SerializeCompressed()
    AbstractMapper<IEntity>.SerializeToJson()
    AbstractMapper<IEntity>.SerializeToJsonCompressed()
    AbstractMapper<IEntity>.Serialize(Stream)
    AbstractMapper<IEntity>.SerializeCompressed(Stream)
    AbstractMapper<IEntity>.SerializeProperties()
    AbstractMapper<IEntity>.SerializePropertyValues()
    AbstractMapper<IEntity>.SerializeToFrame()
    AbstractMapper<IEntity>.SerializeValueFor(String)
    AbstractJitMapper.TypeName
    AbstractJitMapper.ProxyKey
    AbstractJitMapper.ConfigLoader
    AbstractJitMapper.Culture
    AbstractJitMapper.Type
    AbstractJitMapper.TypeLogger
    AbstractJitMapper.Mapping
    AbstractJitMapper.OutputFrequency
    AbstractJitMapper.OutputTicks
    AbstractJitMapper.HasOutputProperties
    AbstractJitMapper.Context
    AbstractJitMapper.ToString()
    AbstractJitMapper.GetHashCode()
    Namespace: Mars.Core.Data.Compiler
    Assembly: Mars.Core.dll
    Syntax
    public abstract class AbstractEntityMapper : AbstractMapper<IEntity>, IGeneratedEntityLogger, IGeneratedLogger<IEntity>, IOutputLogger
    Remarks
    The concrete implementations are generated at runtime by the Mars.Core.Data.Compiler.ProxyEntityGenerator

    Properties

    Position

    Declaration
    public Position Position { get; }
    Property Value
    Type Description
    Position

    Methods

    Initialize()

    Performs a deferred initialization of this entity-specific mapper. This makes it possible to assign properties with values before (e.g., the concrete entity ).
    Declaration
    public override void Initialize()
    Overrides
    Mars.Core.Data.Compiler.AbstractMapper<IEntity>.Initialize()
    Remarks
    This method should always be used when something have to be implemented within the constructor scope.

    IsPositionSerializable(BoundingBox)

    Checks for the current instance, based on their position whether this instance is within the bounding box or not.
    Declaration
    public bool IsPositionSerializable(BoundingBox box)
    Parameters
    Type Name Description
    BoundingBox box The bounding box with lower left and upper right corner specification to check whether the position is in that box.
    Returns
    Type Description
    System.Boolean Returns true when the instance can be serialized otherwise false

    SerializeToDocument()

    Serialize this instance of the proxy with the corresponding output properties described in into a MongoDb conforming which is reused for each tick.
    Declaration
    public override BsonDocument SerializeToDocument()
    Returns
    Type Description
    BsonDocument
    Overrides
    Mars.Core.Data.Compiler.AbstractMapper<IEntity>.SerializeToDocument()

    Implements

    IGeneratedEntityLogger
    IGeneratedLogger<TModel>
    IOutputLogger
    Back to top © 2022 MARS GROUP