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

This sub-component implements some helper methods to resolve constructor und property related input of an object.
Inheritance
System.Object
ReflectiveMapping
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Core.Data.Mapping
Assembly: Mars.Core.dll
Syntax
public class ReflectiveMapping

Constructors

| Improve this Doc View Source

ReflectiveMapping()

This sub-component implements some helper methods to resolve constructor und property related input of an object.
Declaration
public ReflectiveMapping()

Methods

| Improve this Doc View Source

CustomParameterMapping(ParameterInfo, IReadOnlyCollection<IModelObject>, out Object)

This method provides a hook for (required) parameter mapping implementations e.g, for special Guid or un-/register handles passing resolved values for these kind of expected parameter.
Declaration
protected virtual bool CustomParameterMapping(ParameterInfo parameter, IReadOnlyCollection<IModelObject> runtimeDependencies, out object resolvedValue)
Parameters
Type Name Description
System.Reflection.ParameterInfo parameter The current considered parameter of a type.
System.Collections.Generic.IReadOnlyCollection<IModelObject> runtimeDependencies All optional IModelObjects passed and managed by the model/user itself and not by the framework (e.g., self created environments).
System.Object resolvedValue The resolved value used to pass them to the property instance of parameter
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CustomPropertyMapping(PropertyType, IReadOnlyCollection<IModelObject>, out Object)

This method provides a hook for mapping implementations e.g, for entity types or layers types, in order to pass suitable values for special required dependencies.
Declaration
protected virtual bool CustomPropertyMapping(PropertyType propertyType, IReadOnlyCollection<IModelObject> dependencies, out object resolvedValue)
Parameters
Type Name Description
PropertyType propertyType The property for which a mapping is concerned.
System.Collections.Generic.IReadOnlyCollection<IModelObject> dependencies All model objects passed and managed by the model itself not the framework (e.g., created environments).
System.Object resolvedValue The resolved value used to pass them to the property instance of propertyType
Returns
Type Description
System.Boolean
| Improve this Doc View Source

InitializeInstance<T>(TypeMapping, IEnumerable<PropertyType>, IDomainData, T, IReadOnlyCollection<IModelObject>)

Initialize an existing data object by the given TypeMapping and PropertyType infos.
Declaration
public void InitializeInstance<T>(TypeMapping typeMapping, IEnumerable<PropertyType> propertyInjection, IDomainData domainData, T instance, IReadOnlyCollection<IModelObject> dependencies)
Parameters
Type Name Description
TypeMapping typeMapping
System.Collections.Generic.IEnumerable<PropertyType> propertyInjection
IDomainData domainData
T instance
System.Collections.Generic.IReadOnlyCollection<IModelObject> dependencies
Type Parameters
Name Description
T
| Improve this Doc View Source

MapParameters<T>(TypeMapping, IReadOnlyList<ParameterInfo>, IReadOnlyList<Type>, IReadOnlyList<Object>, Guid, IDomainData)

This sub-component implements some helper methods to resolve constructor und property related input of an object.
Declaration
public object[] MapParameters<T>(TypeMapping typeMapping, IReadOnlyList<ParameterInfo> parameters, IReadOnlyList<Type> parameterTypeMapping, IReadOnlyList<object> staticArguments, Guid id, IDomainData domainData)
Parameters
Type Name Description
TypeMapping typeMapping
System.Collections.Generic.IReadOnlyList<System.Reflection.ParameterInfo> parameters
System.Collections.Generic.IReadOnlyList<System.Type> parameterTypeMapping
System.Collections.Generic.IReadOnlyList<System.Object> staticArguments
System.Guid id
IDomainData domainData
Returns
Type Description
System.Object[]
Type Parameters
Name Description
T
| Improve this Doc View Source

MapParameterTypes(IReadOnlyCollection<IModelObject>, IDictionary<String, IndividualMapping>, IReadOnlyCollection<ParameterInfo>, out Object[])

This sub-component implements some helper methods to resolve constructor und property related input of an object.
Declaration
public Type[] MapParameterTypes(IReadOnlyCollection<IModelObject> dependencies, IDictionary<string, IndividualMapping> parameterMapping, IReadOnlyCollection<ParameterInfo> parameters, out object[] staticArguments)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyCollection<IModelObject> dependencies
System.Collections.Generic.IDictionary<System.String, IndividualMapping> parameterMapping
System.Collections.Generic.IReadOnlyCollection<System.Reflection.ParameterInfo> parameters
System.Object[] staticArguments
Returns
Type Description
System.Type[]

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