• Documentation
  • 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>
      • 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
    • 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 SpatialNode

    This class implements the ISpatialNode for the ISpatialGraphEnvironment to represent the vertices within the environment.
    Inheritance
    System.Object
    AbstractGraphElement
    SpatialNode
    Implements
    IEquatable<AbstractGraphElement>
    ISpatialNode
    INode<ISpatialEdge, ISpatialNode>
    IGraphEntity
    IEqualityComparer<IGraphEntity>
    IPositionable
    Inherited Members
    AbstractGraphElement.Equals(AbstractGraphElement)
    AbstractGraphElement.Index
    AbstractGraphElement.Attributes
    AbstractGraphElement.Equals(IGraphEntity, IGraphEntity)
    AbstractGraphElement.GetHashCode(IGraphEntity)
    AbstractGraphElement.GetHashCode()
    AbstractGraphElement.Equals(Object)
    Namespace: Mars.Components.Environments
    Assembly: Mars.Components.dll
    Syntax
    public class SpatialNode : AbstractGraphElement, IEquatable<AbstractGraphElement>, ISpatialNode, INode<ISpatialEdge, ISpatialNode>, IGraphEntity, IEqualityComparer<IGraphEntity>, IPositionable

    Constructors

    SpatialNode(Int32)

    Creates a new ISpatialNode with a given as identifier and position (0,0) as source.
    Declaration
    public SpatialNode(int key)
    Parameters
    Type Name Description
    System.Int32 key The key used to identify

    SpatialNode(Int32, Position, IDictionary<String, Object>)

    Creates a new SpatialNode and assigns them the given .
    Declaration
    public SpatialNode(int index, Position position, IDictionary<string, object> attributes)
    Parameters
    Type Name Description
    System.Int32 index The key used to identify this object.
    Position position The coordinate where this node is located.
    IDictionary<System.String, System.Object> attributes The data dictionary.

    Properties

    Directions

    Declaration
    public IDictionary<, DirectionType> Directions { get; set; }
    Property Value
    Type Description
    IDictionary<System., DirectionType>

    IncomingEdges

    Gets the collection of all incoming edges, targeting into this node.
    Declaration
    public IDictionary<int, ISpatialEdge> IncomingEdges { get; }
    Property Value
    Type Description
    IDictionary<System.Int32, ISpatialEdge>

    IncomingModalities

    Set of all SpatialModalityTypes that incoming edges support.
    Declaration
    public ISet<SpatialModalityType> IncomingModalities { get; }
    Property Value
    Type Description
    ISet<SpatialModalityType>

    NodeGuard

    NodeGuard that controls the transition of agents between edges
    Declaration
    public INodeGuard NodeGuard { get; set; }
    Property Value
    Type Description
    INodeGuard

    OutgoingEdges

    Set of all edges starting from the current edge (directed graph)
    Declaration
    public IDictionary<int, ISpatialEdge> OutgoingEdges { get; }
    Property Value
    Type Description
    IDictionary<System.Int32, ISpatialEdge>

    OutgoingModalities

    Set of all SpatialModalityTypes that outgoing edges support.
    Declaration
    public ISet<SpatialModalityType> OutgoingModalities { get; }
    Property Value
    Type Description
    ISet<SpatialModalityType>

    Position

    Gets or sets the contained spatial position of an object.
    Declaration
    public Position Position { get; set; }
    Property Value
    Type Description
    Position

    Methods

    AddIncomingEdge(ISpatialEdge)

    Adds an edge to the incoming set of this node.
    Declaration
    public void AddIncomingEdge(ISpatialEdge edge)
    Parameters
    Type Name Description
    ISpatialEdge edge The edge to add with incoming direction.

    AddOutgoingEdge(ISpatialEdge)

    Adds an edge to the outgoing set of this node.
    Declaration
    public void AddOutgoingEdge(ISpatialEdge edge)
    Parameters
    Type Name Description
    ISpatialEdge edge The edge to add with outgoing direction.

    GetDirection(ISpatialEdge, ISpatialEdge)

    Declaration
    public DirectionType GetDirection(ISpatialEdge incoming, ISpatialEdge outgoing)
    Parameters
    Type Name Description
    ISpatialEdge incoming
    ISpatialEdge outgoing
    Returns
    Type Description
    DirectionType

    Merge(NodeData)

    Declaration
    public void Merge(NodeData nodeData)
    Parameters
    Type Name Description
    NodeData nodeData

    Implements

    IEquatable<>
    ISpatialNode
    INode<TEdge, TNode>
    IGraphEntity
    IEqualityComparer<>
    IPositionable
    Back to top Copyright © MARS GROUP.
    HAW Hamburg