|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectalice.tuprolog.SolveInfo
SolveInfo class represents the result of a solve request made to the engine, providing information about the solution
| Method Summary | |
Term |
getQuery()
Gets the query |
Term |
getSolution()
Gets the solution of the request |
Term |
getTerm(java.lang.String varName)
Gets the value of a variable in the substitution |
Term |
getVarValue(java.lang.String name)
Gets the term value bound to a variable |
boolean |
isSuccess()
Checks if the solve request was successful |
java.lang.String |
toString()
Returns the string representation of the result of the demonstration. |
Var[] |
toVarArray()
Gets the list of the variables in the solution. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public boolean isSuccess()
public Term getTerm(java.lang.String varName)
throws NoSolutionException,
UnknownVarException
NoSolutionException
UnknownVarExceptionpublic Term getQuery()
public Term getSolution()
throws NoSolutionException
NoSolutionException - if the solve request has not
solution
public Var[] toVarArray()
throws NoSolutionException
NoSolutionException - if current solve information
does not concern a successful
public Term getVarValue(java.lang.String name)
throws NoSolutionException
name - the variable name
NoSolutionException - if the solve request has no solutionpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||