• 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

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()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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

| Improve this Doc View Source

Position

Provides a base implementation for the IGeneratedEntityLogger interface for all agent entities which can be serialize/deserialized.
Declaration
[IgnoreMember]
[JsonProperty(PropertyName = "position", NullValueHandling = NullValueHandling.Ignore)]
[BsonElement("position")]
[BsonIgnoreIfNull]
[NotMapped]
public Position Position { get; }
Property Value
Type Description
Position
Remarks
The concrete implementations are generated at runtime by the Mars.Core.Data.Compiler.ProxyEntityGenerator

Methods

| Improve this Doc View Source

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<Mars.Interfaces.Agents.IEntity>.Initialize()
Remarks
This method should always be used when something have to be implemented within the constructor scope.
| Improve this Doc View Source

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
Remarks
The concrete implementations are generated at runtime by the Mars.Core.Data.Compiler.ProxyEntityGenerator
| Improve this Doc View Source

SerializeToDocument()

Serialize this instance of the proxy with the corresponding output properties described in TypeElement into a MongoDb conforming MongoDB.Bson.BsonDocument which is reused for each tick.
Declaration
public override BsonDocument SerializeToDocument()
Returns
Type Description
MongoDB.Bson.BsonDocument
Overrides
Mars.Core.Data.Compiler.AbstractMapper<Mars.Interfaces.Agents.IEntity>.SerializeToDocument()
Remarks
The concrete implementations are generated at runtime by the Mars.Core.Data.Compiler.ProxyEntityGenerator

Implements

IGeneratedEntityLogger
IGeneratedLogger<TModel>
IOutputLogger

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