C# Класс HPASharp.Search.AStarNode

An A* node embeds the status of a processed node, containing information like the cost it's taken to reach it (Cost So far, G), the expected cost to reach the goal (The heuristic, H), the parent where this node came from (which will serve later to reconstruct best paths) the current Status of the node (Open, Closed, Unexplored, see CellStatus documentation for more information) and the F-score that serves to compare which nodes are the best
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
F int
G int
H int
Parent int
Status CellStatus

Открытые методы

Метод Описание
AStarNode ( int parent, int g, int h, CellStatus status ) : System

Описание методов

AStarNode() публичный Метод

public AStarNode ( int parent, int g, int h, CellStatus status ) : System
parent int
g int
h int
status CellStatus
Результат System

Описание свойств

F публичное свойство

public int F
Результат int

G публичное свойство

public int G
Результат int

H публичное свойство

public int H
Результат int

Parent публичное свойство

public int Parent
Результат int

Status публичное свойство

public CellStatus Status
Результат CellStatus