New to Telerik UI for WPFStart a free 30-day trial

Runtime data bucket for the A* algorithm.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

C#
public sealed class PathNode : IComparer<PathNode>, IPriorityObject

Inheritance: objectPathNode

Implements: IComparer<PathNode>IPriorityObject

Constructors

Initializes a new instance of the PathNode class.

C#
public PathNode()

Initializes a new instance of the PathNode class.

C#
public PathNode(Point point)
Parameters:pointPoint

Fields

C#
public static readonly PathNode Empty

Properties

Gets the current path length which is an estimate since the remains of the path to the target is a estimated to be a straight line.

C#
public double F { get; set; }

Gets the actual lattice distance from the start to the current point in the search.

C#
public double G { get; set; }

Gets the so-called heuristic distance which is usually the Euclidean distance to the endpoint or goal. The smaller the value the closer to the goal.

C#
public double H { get; set; }

Gets or sets whether this node is part of the open set of not estimated nodes in the search.

C#
public bool IsOpen { get; set; }
Property Value:

True if this instance is open; otherwise, false.

Gets or sets whether this node is accessible as part of the path searching.

C#
public bool IsWall { get; set; }
Property Value:

true if this instance is wall; otherwise, false.

Gets or sets the position in the lattice.

C#
public Point Position { get; set; }
Property Value:

The position.

Gets or sets the priority.

C#
public int Priority { get; set; }
Property Value:

The priority.

Implements: IPriorityObject.Priority

Methods

Compares the given nodes by comparing their estimated path length, i.e. the F values.

C#
public int Compare(PathNode x, PathNode y)
Parameters:xPathNode

A node on the lattice.

yPathNode

Another node on the lattice.

Returns:

int

Implements: IComparer<PathNode>.Compare(PathNode, PathNode)