Package nl.tue.astar.util
Interface FastLookupPriorityQueue
-
- All Known Implementing Classes:
AbstractFastLookupPriorityQueue,BreadthFirstFastLookupPriorityQueue,DepthFirstFastLookupPriorityQueue,RandomFastLookupPriorityQueue
public interface FastLookupPriorityQueue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(Record newE)Recordcontains(Record newRec)Checks if the queue contains a record pointing to the same state as the given record.intgetMaxCost()booleanisEmpty()Recordpeek()Recordpoll()voidsetMaxCost(int maxCost)intsize()
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
-
contains
Record contains(Record newRec)
Checks if the queue contains a record pointing to the same state as the given record. If so, it returns that record, if not, it returns null;- Parameters:
newRec-- Returns:
-
peek
Record peek()
-
size
int size()
-
poll
Record poll()
-
add
boolean add(Record newE)
-
setMaxCost
void setMaxCost(int maxCost)
-
getMaxCost
int getMaxCost()
-
-