C# 클래스 VacuumCleaner.Agents.ModelAgent.DataPool

Used for A* to produce less garbage
파일 보기 프로젝트 열기: Troilk/VacuumCleaner

공개 메소드들

메소드 설명
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