Class LayerInitData
Will be passed to each Layer in its InitLayer(...) method.
Contains all relevant information to properly initialize this layer.
Inheritance
System.Object
LayerInitData
Namespace: Mars.Interfaces.Data
Assembly: Mars.Interfaces.dll
Syntax
public class LayerInitData : object
Constructors
LayerInitData()
Declaration
public LayerInitData()
LayerInitData(ISimulationContext)
Creates a new LayerInitData object holding the overall valid ISimulationContext
Declaration
public LayerInitData(ISimulationContext simulationContext)
Parameters
Type | Name | Description |
---|---|---|
ISimulationContext | simulationContext | Holds all time and progress referenced simulation information. |
Properties
AgentInitConfigs
A list of configurations for each agent type on the layer
Declaration
public IEnumerable<AgentMapping> AgentInitConfigs { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<AgentMapping> |
Container
Gets or sets the global application container, used to
resolve each available service or component.
Declaration
public ISimulationContainer Container { get; set; }
Property Value
Type | Description |
---|---|
ISimulationContainer |
Context
Gets the overall simulation context with all simulation execution related information,
which is valid and shared among all layers, agents and objects.
Declaration
public ISimulationContext Context { get; }
Property Value
Type | Description |
---|---|
ISimulationContext |
IsTimeReferenced
Determines whether the simulation is executed with a reference to time or not
Declaration
public bool IsTimeReferenced { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LayerInitConfig
The inputConfiguration for the layer (input file + field mappings)
Declaration
public LayerMapping LayerInitConfig { get; set; }
Property Value
Type | Description |
---|---|
LayerMapping |
OneTickTimeSpan
The amount of real-time which passes during one tick
Declaration
public TimeSpan? OneTickTimeSpan { get; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
SimulationStartPointDateTime
The wall clock date which marks the start of the simulation.
Declaration
public DateTime? SimulationStartPointDateTime { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |