• MARS Website
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API
Show / Hide Table of Contents
  • Mars.Components
    • DependencyRegistrationModelling
  • Mars.Components.Agents
    • AbstractAgent
    • AbstractEntity
    • Agent
  • Mars.Components.Environments
    • AbstractEnvironment
    • AbstractGraphElement
    • AlwaysPassingNodeGuard
    • EntityLane<TEntity>
    • GeoEnvironment
    • GeoHashEnvironment<T>
    • IEnvironmentMediator
    • IModalChoiceResolver
    • PathHeuristics
    • SpatialEdge
    • SpatialGraphEntityExtensions
    • SpatialGraphEnvironment
    • SpatialGraphHelper
    • SpatialHashEnvironment<TEntity>
    • SpatialLane
    • SpatialNode
    • WorldIndexExtensions
  • Mars.Components.Environments.Cartesian
    • CartesianEnvironment<TEntity>
    • CollisionEnvironment<TCharacter, TObstacle>
    • CollisionKind
    • ConeExplorationView
    • ExplorationView
    • GeometryFactory
    • ICartesianEnvironment<TEntity>
    • ICharacter
    • ICollidable
    • ICollisionEnvironment<TCharacter, TObstacle>
    • IObstacle
    • IVisible
    • RayExplorationView
    • TrapezoidExploration
    • VisibilityKind
  • Mars.Components.Environments.Cartesian.Routing
    • CartesianRoutingService<TObstacle>
    • GeometryCoordinatesRoutingPointsGenerator
    • HomogenousRoutingPointsGenerator
    • IRoutingPointsGenerator
    • RandomRoutingPointsGenerator
    • SectionalRandomRoutingPointsGenerator
  • Mars.Components.Layers
    • AbstractActiveLayer
    • AbstractEnvelopedLayer
    • AbstractLayer
    • AbstractVectorFeature
    • AgentSchedulerLayer<TAgent, TLayer>
    • QuerySourceLoader
    • RasterLayer
    • SchedulerEntry
    • SchedulerLayer
    • VectorFeature
    • VectorLayer
    • VectorLayer<T>
    • VectorLayerHelper
  • Mars.Components.Layers.Temporal
    • IQueryFieldProvider
    • ITemporalObjectCatalog
    • ITemporalObjectIterator
    • TemporalCatalogFeature<TKey>
    • TemporalFeatureKind
    • TemporalMetadataLoader
  • Mars.Components.Services
    • AgentManager
  • Mars.Components.Services.Explorations
    • BoltzmannExploration
    • EpsilonGreedyExploration
    • IExplorationPolicy
    • RouletteWheelExploration
    • TabuSearchExploration
  • Mars.Components.Services.Learning
    • InfiniteQLearning
    • QLearning
    • Sarsa
  • Mars.Components.Services.Planning
    • ActionPlanResult
    • GoapAction
    • GoapAgentStates
    • GoapGoal
    • GoapPlanner
    • GoapStateKey<T>
    • GoapStateProperty
    • GoapStateProperty<TElement>
    • IGoapAction
    • IGoapAgentStates
    • IGoapGoal
    • IGoapPlanner
    • IGoapStateKey
    • StatesCommons
  • Mars.Components.Services.Planning.ActionCommons
    • AllGoalsSatisfiedAction
    • NoGoalReachableAction
  • Mars.Components.Starter
    • Command
    • CommandArgumentContainer
    • CommandParser
    • CommandSet
    • HelpCommand
    • Option
    • OptionContext
    • OptionException
    • OptionSet
    • OptionValueCollection
    • OptionValueType
    • SimulationStarter
  • Mars.Components.Starter.Exceptions
    • SimulationStartupException
  • Mars.Interfaces
    • IModelObject
    • ISimulationContainer
    • ISimulationContext
    • ISimulationModule
    • ISimulationState
    • IStepExecutionContext
    • SimulationContext
    • SimulationContext.WorkflowStateType
    • StepExecutionContext
  • Mars.Interfaces.Agents
    • IAgent
    • IAgent<TLayer>
    • IEntity
    • IMarsDslAgent
    • IModalCapabilitiesAgent
    • ISpatialGraphEntity
    • ITickClient
  • Mars.Interfaces.Annotations
    • ActiveConstructor
    • PropertyDescription
  • Mars.Interfaces.Data
    • AbstractDomainData
    • GeometryData
    • IDomainData
    • IGeometryData
    • IIdentifiableData
    • IMarsFeature
    • IRasterBandData
    • ISource
    • IStringData
    • IStringStructuredData
    • IStructuredData
    • IStructuredDataGeometry
    • IValueData
    • LayerInitData
    • RasterBandData
    • StringDataDto
    • StructuredData
    • VectorStructuredData
  • Mars.Interfaces.Environments
    • BoundingBox
    • DirectionType
    • EdgeExploreResult
    • EdgeStop
    • ExploreDirection
    • GeoPositionExtension
    • HighwayType
    • IEdge<TEdge, TNode>
    • IEntityLane<TEntity>
    • IEnvironment
    • IEnvironment<TEntity>
    • IGeoGridEnvironment<T>
    • IGraphEntity
    • IGraphEnvironment<TEdge, TNode>
    • INode<TEdge, TNode>
    • INodeGuard
    • IPositionable
    • IRoutePlanner
    • ISpatialEdge
    • ISpatialGraphEnvironment
    • ISpatialLane
    • ISpatialNode
    • LaneExploreResult
    • ModalChoice
    • MultimodalRoute
    • NodeIntegrationKind
    • Position
    • Route
    • RouteStop
    • Size
    • SpatialGraphExploreResult
    • SpatialModalityType
    • TrafficLightPhase
  • Mars.Interfaces.Layers
    • FinallySimulationStep
    • IChangingLayer
    • IDataContainer
    • IDataLayer
    • IDataSet
    • IEnvelopDataLayer
    • ILayer
    • IMarsDslLayer
    • IModalChoiceConsumer
    • InitSimulationStep
    • INotifyChangedSource<T>
    • IRaster<TValue>
    • IRasterLayer
    • ISteppedActiveLayer
    • IVectorFeature
    • IVectorLayer
    • IVectorLayer<T>
    • IVectorNode<TEntity>
    • RegisterAgent
    • UnregisterAgent
  • Mars.Interfaces.Model
    • ActiveTypeMapping
    • AgentMapping
    • AgentType
    • ConstructorType
    • ContainsOperator
    • DataContainer
    • DataType
    • EntityMapping
    • EntityType
    • Execution
    • FeatureType
    • Globals
    • IdentifiableElement
    • IndividualMapping
    • Input
    • InputConfiguration
    • LayerMapping
    • LayerType
    • ModelDescription
    • ModelElement
    • ObjectType
    • Output
    • OutputConfiguration
    • OutputFilter
    • OutputKind
    • OutputTargetType
    • ParameterMapping
    • Processing
    • ProcessingConfiguration
    • ProcessingTargetType
    • PropertyType
    • SimulationConfig
    • TimeSpanUnit
    • TimeSpanUnitExtensions
    • TypeElement
    • TypeMapping
  • Mars.Interfaces.Model.Converters
    • CultureConverter
    • SerializationTypeConverter
    • TimeSpanUnitConverter
  • Mars.Interfaces.Model.Exceptions
    • InvalidTypeException
    • MissingTypeException
  • Mars.Interfaces.Model.Options
    • AbstractEndpointOptions
    • AbstractFileOptions
    • AbstractOptions
    • AscOptions
    • CsvOptions
    • GeoJsonOptions
    • MongoOptions
    • MqttOptions
    • PostgresSqlOptions
    • RedisOptions
    • RelationalEndpointOptions
    • SerializationType
    • SocketOutputOptions
    • SpatialGraphOptions
    • SqLiteOptions
    • TripsOptions

Interface ISimulationContext

Inherited Members
ISimulationState.CurrentTimePoint
ISimulationState.CurrentStep
ISimulationState.CurrentTick
ISimulationState.ProgressInPercentage
ISimulationState.IsFinished
ISimulationState.IsInitialized
ISimulationState.IsPaused
ISimulationState.IsAborted
ISimulationState.Iterations
ISimulationState.LastDateTime
ISimulationState.LastStep
ISimulationState.LastTick
ISimulationState.LastPauseTick
ISimulationState.LastPauseStep
ISimulationState.LastPauseDateTime
System.IDisposable.Dispose()
Namespace: Mars.Interfaces
Assembly: Mars.Interfaces.dll
Syntax
public interface ISimulationContext : ISimulationState, IDisposable

Properties

| Improve this Doc View Source

Active

Indicates the active or inactive state of the simulation workflow loop
Declaration
[JsonIgnore]
bool Active { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

EndTimePoint

Gets the ending realtime for the last executed simulation tick.
Declaration
[JsonProperty("endTimePoint", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
DateTime? EndTimePoint { get; }
Property Value
Type Description
System.Nullable<System.DateTime>
| Improve this Doc View Source

InputWatch

Gets the stopwatch, used to measure the duration of the initialization phase, for each agent, entity and layer together.
Declaration
[JsonIgnore]
Stopwatch InputWatch { get; }
Property Value
Type Description
System.Diagnostics.Stopwatch
| Improve this Doc View Source

IsTimeReferenced

Determines whether the simulation is executed with a reference to time or not
Declaration
[JsonProperty("isTimeReferenced", DefaultValueHandling = DefaultValueHandling.Ignore)]
bool IsTimeReferenced { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

MaxTicks

Gets or sets the maximum amount of ticks, when a simulation time-range is specified.
Declaration
[JsonProperty("maxTicks")]
long MaxTicks { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

OneTickTimeSpan

Gets the global accessible time delta interval for realtime scenarios.
Declaration
[JsonProperty("oneTickTimeSpan", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
TimeSpan? OneTickTimeSpan { get; }
Property Value
Type Description
System.Nullable<System.TimeSpan>
| Improve this Doc View Source

OutputWatch

Gets the tick watch, used to perform tick-wise measure during the execution.
Declaration
[JsonIgnore]
Stopwatch OutputWatch { get; }
Property Value
Type Description
System.Diagnostics.Stopwatch
| Improve this Doc View Source

RestartFlag

Indicates a restart of the simulation workflow, the workflow itself is active furthermore
Declaration
[JsonIgnore]
bool RestartFlag { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ResumeFlag

Indicates that the simulation shall be resumed from the last paused simulation step
Declaration
[JsonIgnore]
bool ResumeFlag { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

StartStep

Gets or sets the optional start step for step-based execution.
Declaration
[JsonIgnore]
long StartStep { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

StartTimePoint

Gets the initializing realtime for simulation tick 0.
Declaration
[JsonProperty("startTimePoint", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
DateTime? StartTimePoint { get; }
Property Value
Type Description
System.Nullable<System.DateTime>
| Improve this Doc View Source

StepFlag

Indicates whether a simulation step shall be calculated
Declaration
[JsonIgnore]
bool StepFlag { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

TickWatch

Gets the tick watch, used to perform tick-wise measure during the execution.
Declaration
[JsonIgnore]
Stopwatch TickWatch { get; }
Property Value
Type Description
System.Diagnostics.Stopwatch

Methods

| Improve this Doc View Source

SetTick(Int32, Int32)

Sets the current step context to the specified one.
Declaration
void SetTick(int tick, int delta = 1)
Parameters
Type Name Description
System.Int32 tick The ticks to set for.
System.Int32 delta The delta timespan of the logical time.
| Improve this Doc View Source

UpdateStep(Int32, Int32)

Updates the clock with the system execution tick by the specified amount of steps or 1 as default with step size deltaT and the current realtime point by OneTickTimeSpan by one simulation tick.
Declaration
void UpdateStep(int delta = 1, int steps = 1)
Parameters
Type Name Description
System.Int32 delta The logical delta step for move forward in time
System.Int32 steps The amount of steps to update for.

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