C# Class VacuumCleaner.Agents.ModelAgent.DataPool

Used for A* to produce less garbage
Afficher le fichier Open project: Troilk/VacuumCleaner

Méthodes publiques

Méthode Description
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

Method Details

Add() public méthode

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
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

DataPool() public méthode

public DataPool ( int capacity ) : System.Collections.Generic
capacity int
Résultat System.Collections.Generic

GetBestNode() public méthode

public GetBestNode ( ) : Node
Résultat Node

RemoveFromFringe() public méthode

public RemoveFromFringe ( Node node ) : void
node Node
Résultat void