|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ugos.JIProlog.engine.JIPQuery
JIPQuery wraps a single synchronous query.
By asyncronous call it is intended a call to prolog interpreter that runs in a
separate thread and notify for solutions all event listeners
.
By syncronous call it is intended a call to prolog interpreter that runs in the same
thread and exit when a solution is found
.
An asyncronous, more powerful, management of the prolog interpreter see JIPEngine.
For more information see the section "How to make a synchronous call to prolog interpreter"
JIPEngine,
Serialized Form| Method Summary | |
void |
close()
Closes the query |
boolean |
hasMoreChoicePoints()
Returns true if the query has more choice points on backtracking. |
boolean |
isClosed()
Returns true if the query is closed. |
JIPTerm |
nextSolution()
Searches for another solution. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public final JIPTerm nextSolution()
throws JIPQueryClosedException
JIPQueryClosedExceptionJIPTermpublic final boolean hasMoreChoicePoints()
public final boolean isClosed()
public final void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||