Struct NodeData
Assembly: Mars.Common.dll
Syntax
public struct NodeData : IComparer<NodeData>, IEquatable<NodeData>, IEqualityComparer<NodeData>
Constructors
NodeData(Int32, IDictionary<String, Object>, Position, Boolean)
Initializes the node.
Declaration
public NodeData(int key, IDictionary<string, object> data, Position position, bool isHelperNode = false)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
Internal and SpatialGraph specific identifier. |
IDictionary<System.String, System.Object> |
data |
Any data that is associated with the node. |
Position |
position |
Geo-locational reference. |
System.Boolean |
isHelperNode |
A flag indicating whether the node was created by the system automatically |
Properties
Data
Holds additional information.
Declaration
public IDictionary<string, object> Data { get; set; }
Property Value
Type |
Description |
IDictionary<System.String, System.Object> |
|
IncomingEdges
The keys of all incoming edges. These keys are internal,
SpatialGraph specific.
Declaration
public ISet<int> IncomingEdges { get; set; }
Property Value
Type |
Description |
ISet<System.Int32> |
|
IsHelperNode
Gets or sets the flag, that this
NodeData was created by the spatial graph itself.
Declaration
public bool IsHelperNode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Key
Identifies this
GraphData object within the same graph.
Declaration
public int Key { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
NodeOrder
The order within with contraction hierarchy
Declaration
public int NodeOrder { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
OutgoingEdges
The keys of all outgoing edges. These keys are internal,
SpatialGraph specific.
Declaration
public ISet<int> OutgoingEdges { get; set; }
Property Value
Type |
Description |
ISet<System.Int32> |
|
Position
Holds the geolocation of this object.
Declaration
public Position Position { get; set; }
Property Value
Shortcuts
Gets or sets the shortcuts to reach a node->
EdgeData route.
Declaration
public IDictionary<int, IList<int>> Shortcuts { get; set; }
Property Value
Type |
Description |
IDictionary<System.Int32, IList<System.Int32>> |
|
Methods
Compare(NodeData, NodeData)
Declaration
public int Compare(NodeData x, NodeData y)
Parameters
Returns
Type |
Description |
System.Int32 |
|
CompareTo(NodeData)
Declaration
public int CompareTo(NodeData other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Equals(NodeData)
Declaration
public bool Equals(NodeData other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(NodeData, NodeData)
Declaration
public bool Equals(NodeData x, NodeData y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
A hash code for the current object. |
GetHashCode(NodeData)
Declaration
public int GetHashCode(NodeData obj)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Implements
IComparer<>
IEquatable<>
IEqualityComparer<>
Extension Methods