|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.aisearch.AISearchDomainStub<N>
public abstract class AISearchDomainStub<N>
This should be thread-safe, but we haven't tested it. Theoretically, you can put in several threads running through this search domain at the same time and it would not hurt.
Constructor Summary | |
---|---|
AISearchDomainStub()
|
Method Summary | |
---|---|
protected void |
clearAllSolutions()
Clear the cache and ready for the next set of solutions. |
protected abstract java.util.Comparator<Solution<N>> |
getBestSolutionComparator()
|
java.util.PriorityQueue<Solution<N>> |
getFinishedSolutions()
|
int |
getNumberOfUnexpandedSolutions()
For debugging only, really, if you want to see the status. |
protected abstract java.util.Comparator<Solution<N>> |
getQuickestSearchComparator()
|
protected N |
getRootNode()
|
boolean |
hasUnexpandedNodes()
|
Solution<N> |
popUnexpandedNode()
|
void |
pushFinalSolution(SolutionStub<N> solution)
|
void |
pushUnexpandedNode(SolutionStub<N> node)
|
protected void |
setRootNode(N firstNode)
Reinitializes the whole thing -- clears the cache, etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AISearchDomainStub()
Method Detail |
---|
protected N getRootNode()
protected void setRootNode(N firstNode)
firstNode
- protected void clearAllSolutions()
public java.util.PriorityQueue<Solution<N>> getFinishedSolutions()
getFinishedSolutions
in interface AISearchDomain<N>
public int getNumberOfUnexpandedSolutions()
public boolean hasUnexpandedNodes()
hasUnexpandedNodes
in interface AISearchDomain<N>
public void pushFinalSolution(SolutionStub<N> solution)
public Solution<N> popUnexpandedNode()
popUnexpandedNode
in interface AISearchDomain<N>
public void pushUnexpandedNode(SolutionStub<N> node)
protected abstract java.util.Comparator<Solution<N>> getBestSolutionComparator()
protected abstract java.util.Comparator<Solution<N>> getQuickestSearchComparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |