C# Класс VacuumCleaner.Agents.ModelAgentNoIdle.DataPool

Used for A* to produce less garbage
Показать файл Открыть проект

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

Метод Описание
Add ( Point point, Node parent, int realCost, int heuristicCost ) : void

Adds node to fringe only if it is not already in fringe or it's cheaper (then old node is rewritten)

Clear ( ) : void
DataPool ( int capacity ) : System.Collections.Generic
GetBestNode ( ) : Node
RemoveFromFringe ( Node node ) : void

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

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

Adds node to fringe only if it is not already in fringe or it's cheaper (then old node is rewritten)
public Add ( Point point, Node parent, int realCost, int heuristicCost ) : void
point Point point of the path
parent Node parent node
realCost int real cost to this node
heuristicCost int heuristic cost to target node
Результат void

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

public Clear ( ) : void
Результат void

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

public DataPool ( int capacity ) : System.Collections.Generic
capacity int
Результат System.Collections.Generic

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

public GetBestNode ( ) : Node
Результат Node

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

public RemoveFromFringe ( Node node ) : void
node Node
Результат void