• 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

Class MultimodalRoute

Inheritance
System.Object
MultimodalRoute
Implements
System.Collections.Generic.IEnumerable<RouteStop>
System.Collections.IEnumerable
System.IEquatable<MultimodalRoute>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Interfaces.Environments
Assembly: Mars.Interfaces.dll
Syntax
public class MultimodalRoute : IEnumerable<RouteStop>, IEnumerable, IEquatable<MultimodalRoute>

Constructors

| Improve this Doc View Source

MultimodalRoute()

Creates an empty route without any stops.
Declaration
public MultimodalRoute()
| Improve this Doc View Source

MultimodalRoute(Route, ModalChoice)

Creates a multimodal route that contains given route with corresponding modal type.
Declaration
public MultimodalRoute(Route route, ModalChoice modalChoice)
Parameters
Type Name Description
Route route First element of the multimodal route.
ModalChoice modalChoice First modal type of the multimodal route
| Improve this Doc View Source

MultimodalRoute(IEnumerable<RouteStop>)

Creates a new planed route with an ordered collection of individual stops to take.
Declaration
public MultimodalRoute(IEnumerable<RouteStop> stops)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<RouteStop> stops An ordered collection of stops with references to the environment.

Fields

| Improve this Doc View Source

WalkingFilter

Declaration
protected static readonly Func<ISpatialEdge, bool> WalkingFilter
Field Value
Type Description
System.Func<ISpatialEdge, System.Boolean>

Properties

| Improve this Doc View Source

Count

Gets the amount of stops of this route.
Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

CurrentModalChoice

Declaration
public ModalChoice CurrentModalChoice { get; }
Property Value
Type Description
ModalChoice
| Improve this Doc View Source

CurrentRoute

Declaration
public Route CurrentRoute { get; }
Property Value
Type Description
Route
| Improve this Doc View Source

Goal

Declaration
public Position Goal { get; }
Property Value
Type Description
Position
| Improve this Doc View Source

GoalReached

Gets the flag indicating whether the goal of all routes that belong to the multimodal route are reached.
Declaration
public bool GoalReached { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[Int32]

Gets the RouteStop at the desired index. When moving actions was already be performed this access will give the current not passed stop.
Declaration
public RouteStop this[int index] { get; }
Parameters
Type Name Description
System.Int32 index The index of the rest route.
Property Value
Type Description
RouteStop
| Improve this Doc View Source

MainModalChoice

Declaration
public ModalChoice MainModalChoice { get; }
Property Value
Type Description
ModalChoice
| Improve this Doc View Source

PassedStops

Defines how many stops are already passed.
Declaration
public int PassedStops { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

RouteLength

Declaration
public double RouteLength { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Start

Declaration
public Position Start { get; }
Property Value
Type Description
Position
| Improve this Doc View Source

Stops

The ordered path of all stops, planed by the routing component.
Declaration
public IList<RouteStop> Stops { get; }
Property Value
Type Description
System.Collections.Generic.IList<RouteStop>

Methods

| Improve this Doc View Source

Add(Route, ModalChoice)

Adds a new route stop to the multimodal route
Declaration
public void Add(Route route, ModalChoice modalChoice)
Parameters
Type Name Description
Route route A route part
ModalChoice modalChoice The modal type that is used for given route
| Improve this Doc View Source

AppendAndDeleteTail(MultimodalRoute)

Appends a following multimodal route to the current multimodal route
Declaration
public void AppendAndDeleteTail(MultimodalRoute multimodalRoute)
Parameters
Type Name Description
MultimodalRoute multimodalRoute Appending multimodal route, that finishes the track.
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetEnumerator()

Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<RouteStop> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<RouteStop> An enumerator that can be used to iterate through the collection of RouteStop.
| Improve this Doc View Source

GetHashCode()

Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32 A hash code for the current route.
Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

InsertFirst(Route, ModalChoice)

Declaration
public void InsertFirst(Route route, ModalChoice modalChoice)
Parameters
Type Name Description
Route route
ModalChoice modalChoice
| Improve this Doc View Source

Next()

Sets the pointer to the next RouteStop if it is not the last stop.
Declaration
public void Next()
| Improve this Doc View Source

ToString()

Converts this multimodal route into appropriate string representation.
Declaration
public override string ToString()
Returns
Type Description
System.String Returns the string representation of the multimodal route.
Overrides
System.Object.ToString()

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator
| Improve this Doc View Source

IEquatable<MultimodalRoute>.Equals(MultimodalRoute)

Indicates whether the current object of type Route is equal to another object of the same type.
Declaration
bool IEquatable<MultimodalRoute>.Equals(MultimodalRoute other)
Parameters
Type Name Description
MultimodalRoute other An object to compare with this object.
Returns
Type Description
System.Boolean

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IEquatable<T>

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)
Combinatorics.Subsets<T>(IEnumerable<T>, Boolean)
Combinatorics.Subsets<T>(IEnumerable<T>, Int32, Boolean)
Matrix.SetEquals<T>(IEnumerable<T>, IEnumerable<T>)
DomainDataImporter.Import(IEnumerable<Object>, InputConfiguration)
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