Class AbstractJitMapper
Implements
Inherited Members
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
[MessagePackObject(false)]
public abstract class AbstractJitMapper : IOutputLogger
Properties
| Improve this Doc View SourceConfigLoader
Gets or sets the config loader to access the simulation configuration
and the model description.
Declaration
[NotMapped]
[BsonIgnore]
[JsonIgnore]
[IgnoreMember]
[Ignore]
public IConfigLoader ConfigLoader { get; set; }
Property Value
Type | Description |
---|---|
IConfigLoader |
Context
Gets or sets the simulation context of this just-in-time compiled mapper.
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public ISimulationContext Context { get; set; }
Property Value
Type | Description |
---|---|
ISimulationContext |
Culture
Gets or sets the culture used for serialization or deserialization purposes.
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
HasOutputProperties
Gets the flag indicating that this proxy type has any kind of output
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public bool HasOutputProperties { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Mapping
Gets the underlying configuration for this logger specifying individual or type-specific options
for serialization/deserialization
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public TypeMapping Mapping { get; }
Property Value
Type | Description |
---|---|
TypeMapping |
OutputFrequency
Gets or sets the output group valid for each individual proxy
Default is 1
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public virtual int OutputFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
OutputTicks
Gets or sets the output group valid for each individual proxy
Default is 1
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public virtual ISet<long> OutputTicks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ISet<System.Int64> |
ProxyKey
Gets or sets the unique integer type index.
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public int ProxyKey { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Gets the TypeElement describing the static semantics as properties, inherited types etc.
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public TypeElement Type { get; set; }
Property Value
Type | Description |
---|---|
TypeElement |
TypeLogger
Gets or sets the type logger responsible for this proxy
Declaration
[IgnoreMember]
[BsonIgnore]
[JsonIgnore]
[NotMapped]
[Ignore]
[JsonIgnore]
public virtual IGeneratedTypeLogger TypeLogger { get; set; }
Property Value
Type | Description |
---|---|
IGeneratedTypeLogger |
TypeName
Gets the type name for which this mapper is responsible for
Declaration
[Key(3)]
[JsonProperty(PropertyName = "type")]
[BsonElement("type")]
[NotMapped]
public virtual string TypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Initialize()
Performs a deferred initialization of this entity(-type) specific mapper.
This makes it possible to assign properties from outside an not during the
construction type of this JIT object (e.g., the concrete entity Type).
Declaration
public virtual void Initialize()
Remarks
This method should always be used when something have to be implemented within the constructor scope.
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()