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

This class implements the ISpatialNode for the ISpatialGraphEnvironment to represent the vertices within the environment.
Inheritance
System.Object
AbstractGraphElement
SpatialNode
Implements
System.IEquatable<AbstractGraphElement>
ISpatialNode
INode<ISpatialEdge, ISpatialNode>
IGraphEntity
System.Collections.Generic.IEqualityComparer<IGraphEntity>
IPositionable
Inherited Members
AbstractGraphElement.Equals(AbstractGraphElement)
AbstractGraphElement.Index
AbstractGraphElement.Attributes
AbstractGraphElement.Equals(IGraphEntity, IGraphEntity)
AbstractGraphElement.GetHashCode(IGraphEntity)
AbstractGraphElement.GetHashCode()
AbstractGraphElement.Equals(Object)
System.Object.Equals(System.Object, System.Object)
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
[MessagePackObject(true)]
public class SpatialNode : AbstractGraphElement, IEquatable<AbstractGraphElement>, ISpatialNode, INode<ISpatialEdge, ISpatialNode>, IGraphEntity, IEqualityComparer<IGraphEntity>, IPositionable

Constructors

| Improve this Doc View Source

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

Creates a new SpatialNode and assigns them the given .
Declaration
[SerializationConstructor]
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.
System.Collections.Generic.IDictionary<System.String, System.Object> attributes The data dictionary.
| Improve this Doc View Source

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

Properties

| Improve this Doc View Source

Directions

This class implements the ISpatialNode for the ISpatialGraphEnvironment to represent the vertices within the environment.
Declaration
public IDictionary<(int, int), DirectionType> Directions { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.ValueTuple<System.Int32, System.Int32>, DirectionType>
| Improve this Doc View Source

IncomingEdges

Gets the collection of all incoming edges, targeting into this node.
Declaration
[IgnoreMember]
public IDictionary<int, ISpatialEdge> IncomingEdges { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.Int32, ISpatialEdge>
| Improve this Doc View Source

IncomingModalities

Set of all SpatialModalityTypes that incoming edges support.
Declaration
[IgnoreMember]
public ISet<SpatialModalityType> IncomingModalities { get; }
Property Value
Type Description
System.Collections.Generic.ISet<SpatialModalityType>
| Improve this Doc View Source

NodeGuard

NodeGuard that controls the transition of agents between edges
Declaration
[IgnoreMember]
public INodeGuard NodeGuard { get; set; }
Property Value
Type Description
INodeGuard
| Improve this Doc View Source

OutgoingEdges

Set of all edges starting from the current edge (directed graph)
Declaration
[IgnoreMember]
public IDictionary<int, ISpatialEdge> OutgoingEdges { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.Int32, ISpatialEdge>
| Improve this Doc View Source

OutgoingModalities

Set of all SpatialModalityTypes that outgoing edges support.
Declaration
[IgnoreMember]
public ISet<SpatialModalityType> OutgoingModalities { get; }
Property Value
Type Description
System.Collections.Generic.ISet<SpatialModalityType>
| Improve this Doc View Source

Position

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

Methods

| Improve this Doc View Source

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.
| Improve this Doc View Source

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.
| Improve this Doc View Source

GetDirection(ISpatialEdge, ISpatialEdge)

This class implements the ISpatialNode for the ISpatialGraphEnvironment to represent the vertices within the environment.
Declaration
public DirectionType GetDirection(ISpatialEdge incoming, ISpatialEdge outgoing)
Parameters
Type Name Description
ISpatialEdge incoming
ISpatialEdge outgoing
Returns
Type Description
DirectionType
| Improve this Doc View Source

Merge(NodeData)

This class implements the ISpatialNode for the ISpatialGraphEnvironment to represent the vertices within the environment.
Declaration
public void Merge(NodeData nodeData)
Parameters
Type Name Description
NodeData nodeData

Implements

System.IEquatable<T>
ISpatialNode
INode<TEdge, TNode>
IGraphEntity
System.Collections.Generic.IEqualityComparer<T>
IPositionable

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)
SpatialGraphHelper.ToFeature(ISpatialNode)
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