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

Inherited Members
System.IDisposable.Dispose()
Namespace: Mars.Core.Data
Assembly: Mars.Core.dll
Syntax
public interface ISerializerManager : IDisposable

Properties

| Improve this Doc View Source

EntityLoggers

Logger listing. The first key is the output group (=frequency), the second the mapping of each concrete entity to their generated proxy.
Declaration
IDictionary<TypeElement, IGeneratedTypeLogger> EntityLoggers { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<TypeElement, IGeneratedTypeLogger>
| Improve this Doc View Source

LayerLoggers

Registered layer loggers with their type description
Declaration
IDictionary<LayerType, IGeneratedLayerLogger> LayerLoggers { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<LayerType, IGeneratedLayerLogger>

Methods

| Improve this Doc View Source

DeRegister(IEntity, TypeElement)

De-registers a simulation object from the result adapter.
Declaration
void DeRegister(IEntity entity, TypeElement type)
Parameters
Type Name Description
IEntity entity The simulation entity to remove.
TypeElement type The corresponding type of this entity.
| Improve this Doc View Source

DeRegister(ILayer, LayerType)

Declaration
void DeRegister(ILayer entity, LayerType type)
Parameters
Type Name Description
ILayer entity
LayerType type
| Improve this Doc View Source

GetIndividualLoggers()

Simpler form to access each IGeneratedEntityLogger serializer without any extra output group. This can be used for test purposes.
Declaration
IEnumerable<IGeneratedEntityLogger> GetIndividualLoggers()
Returns
Type Description
System.Collections.Generic.IEnumerable<IGeneratedEntityLogger> Returns an enumerator for all serializer which have direct access to an entity.
| Improve this Doc View Source

GetLayerLoggers()

Simpler form to access each IGeneratedLayerLogger serializer without any extra output group. This can be used for test purposes.
Declaration
IEnumerable<IGeneratedLayerLogger> GetLayerLoggers()
Returns
Type Description
System.Collections.Generic.IEnumerable<IGeneratedLayerLogger> Returns an enumerator for all serializer which have direct access to an entity.
| Improve this Doc View Source

GetTypeLoggers()

Simpler form to access each IGeneratedTypeLogger serializer without any extra output group. This can be used for test purposes.
Declaration
IEnumerable<IGeneratedTypeLogger> GetTypeLoggers()
Returns
Type Description
System.Collections.Generic.IEnumerable<IGeneratedTypeLogger> Returns an enumerator for all type-based serializer where only on proxy exists for each registered entity type.
| 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)
Parameters
Type Name Description
IEntity entity The simulation entity to add to output queue.
TypeElement type The type description to which this entity belongs to.
TypeMapping mapping The type-specific configuration for the entity instance.
Returns
Type Description
IGeneratedEntityLogger
| Improve this Doc View Source

RegisterLayer(ILayer, LayerType, Int32)

Register a data layer for the output loop.
Declaration
IGeneratedLayerLogger RegisterLayer(ILayer layer, LayerType type, int outputGroup = 1)
Parameters
Type Name Description
ILayer layer The data layer to be logged.
LayerType type The corresponding type description for the layer instance.
System.Int32 outputGroup Layer output frequency.
Returns
Type Description
IGeneratedLayerLogger
| Improve this Doc View Source

RegisterType(TypeElement, Int32)

Register an agent type where the logger is used for all entities when an individual logger is not available.
Declaration
IGeneratedTypeLogger RegisterType(TypeElement type, int outputGroup = 1)
Parameters
Type Name Description
TypeElement type The AgentType description with the concrete type name.
System.Int32 outputGroup Agent output group. After which ticks the agent attributes shall be persisted. Default is each tick.
Returns
Type Description
IGeneratedTypeLogger

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