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

This class contains helper function to interact or transform the common ISpatialEdge object.
Inheritance
System.Object
SpatialGraphHelper
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.Components.Environments
Assembly: Mars.Components.dll
Syntax
public static class SpatialGraphHelper

Methods

| Improve this Doc View Source

DeserializeGraph(Stream, out IDictionary<Int32, SpatialNode>, out IDictionary<Int32, SpatialEdge>, out BoundingBox, out KeyContainer, out SpatialGraphOptions)

Deserialize a ISpatialGraphEnvironment for a given stream.
Declaration
public static SpatialGraph DeserializeGraph(Stream stream, out IDictionary<int, SpatialNode> nodes, out IDictionary<int, SpatialEdge> edges, out BoundingBox boundingBox, out KeyContainer keyContainer, out SpatialGraphOptions sgeOptions)
Parameters
Type Name Description
System.IO.Stream stream
System.Collections.Generic.IDictionary<System.Int32, SpatialNode> nodes
System.Collections.Generic.IDictionary<System.Int32, SpatialEdge> edges
BoundingBox boundingBox
KeyContainer keyContainer
SpatialGraphOptions sgeOptions
Returns
Type Description
SpatialGraph
Exceptions
Type Condition
System.ArgumentNullException
| Improve this Doc View Source

ToFeature(ISpatialEdge)

This class contains helper function to interact or transform the common ISpatialEdge object.
Declaration
public static IFeature ToFeature(this ISpatialEdge edge)
Parameters
Type Name Description
ISpatialEdge edge
Returns
Type Description
NetTopologySuite.Features.IFeature
| Improve this Doc View Source

ToFeature(ISpatialNode)

This class contains helper function to interact or transform the common ISpatialEdge object.
Declaration
public static IFeature ToFeature(this ISpatialNode node)
Parameters
Type Name Description
ISpatialNode node
Returns
Type Description
NetTopologySuite.Features.IFeature
| Improve this Doc View Source

ToFeature(Route)

Transforms the specified route into a NetTopologySuite.Features.IFeature object .
Declaration
public static IFeature ToFeature(this Route route)
Parameters
Type Name Description
Route route The route to transform.
Returns
Type Description
NetTopologySuite.Features.IFeature Returns a new NetTopologySuite.Features.IFeature object containing the path as geometry and the properties as attribute table entries.
Exceptions
Type Condition
System.ArgumentNullException Route is null.
| Improve this Doc View Source

ToGeoJson(ISpatialGraphEnvironment)

Transforms the specified environment in to valid GeoJson string.
Declaration
public static string ToGeoJson(this ISpatialGraphEnvironment environment)
Parameters
Type Name Description
ISpatialGraphEnvironment environment The environment and to transform.
Returns
Type Description
System.String Returns the GeoJson string
Exceptions
Type Condition
System.ArgumentNullException Environment is null.
| Improve this Doc View Source

ToGeoJson(Route)

Transforms the specified route in to valid GeoJson string.
Declaration
public static string ToGeoJson(this Route route)
Parameters
Type Name Description
Route route The route to transform.
Returns
Type Description
System.String Returns the GeoJson string
Exceptions
Type Condition
System.ArgumentNullException Route is null.
| Improve this Doc View Source

ToGeometry(ISpatialEdge)

Transforms the passed edge into an NetTopologySuite.Geometries.Geometry object as point, a line string or line ring.
Declaration
public static Geometry ToGeometry(this ISpatialEdge edge)
Parameters
Type Name Description
ISpatialEdge edge The edge to transform
Returns
Type Description
NetTopologySuite.Geometries.Geometry Returns a new NetTopologySuite.Geometries.Geometry object which can be a NetTopologySuite.Geometries.Point, NetTopologySuite.Geometries.LineString or a NetTopologySuite.Geometries.LinearRing.
Exceptions
Type Condition
System.ArgumentException The edge doesn't have any coordinates.
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg