Click or drag to resize

AStarz Class

Class to search the best path between two nodes on a graph.
Inheritance Hierarchy
SystemObject
  PathfindingAStarz

Namespace:  Pathfinding
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public class AStarz

The AStarz type exposes the following members.

Constructors
  NameDescription
Public methodAStarz
AStar Constructor.
Top
Properties
  NameDescription
Public propertyChoosenHeuristic
Gets/Sets the heuristic that AStar will use. It must be homogeneous to arc's cost.
Public propertyClosed
Use for debug in a 'step by step' mode only. Returns all the tracks found in the 'Closed' list of the algorithm at a given time. A track is a list of the nodes visited to come to the current node.
Public propertyDijkstraHeuristicBalance
This value must belong to [0; 1] and it determines the influence of the heuristic on the algorithm. If this influence value is set to 0, then the search will behave in accordance with the Dijkstra algorithm. If this value is set to 1, then the cost to come to the current node will not be used whereas only the heuristic will be taken into account.
Public propertyStatic memberEuclidianHeuristic
Heuristic based on the euclidian distance : Sqrt(Dx²+Dy²+Dz²)
Public propertyInitialized
To know if the search has been initialized.
Public propertyStatic memberManhattanHeuristic
Heuristic based on the manhattan distance : |Dx|+|Dy|+|Dz|
Public propertyStatic memberMaxAlongAxisHeuristic
Heuristic based on the maximum distance : Max(|Dx|, |Dy|, |Dz|)
Public propertyOpen
Use for debug in 'step by step' mode only. Returns all the tracks found in the 'Open' list of the algorithm at a given time. A track is a list of the nodes visited to come to the current node.
Public propertyPathByCoordinates
Gets the array of points representing the found path.
Public propertyPathByNodes
Gets the array of nodes representing the found path.
Public propertyPathFound
To know if a path has been found.
Public propertySearchEnded
To know if the search has ended.
Public propertySearchStarted
To know if the search has been started.
Public propertyStepCounter
Use for a 'step by step' search only. Gets the number of the current step. -1 if the search has not been initialized. 0 if it has not been started.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Use for a 'step by step' search only. This method is alternate to SearchPath. Initializes AStar before performing search steps manually with NextStep.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNextStep
Use for a 'step by step' search only. This method is alternate to SearchPath. The algorithm must have been initialize before.
Public methodResultInformation
Returns information on the result.
Public methodSearchPath
Searches for the best path to reach the specified EndNode from the specified StartNode.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public field_Graph
Top
See Also