|
|||||||||
Home >> All >> alice >> [ tuprolog overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
alice.tuprolog
Class SolveResultInfo

java.lang.Objectalice.tuprolog.SolveResultInfo
- All Implemented Interfaces:
- java.io.Serializable, SolveInfo
- final class SolveResultInfo
- extends java.lang.Object
- implements SolveInfo
- extends java.lang.Object
implemntation of SolveInfo interface.
Contains information about an executed solving demo;
Field Summary | |
private Var[] |
bindings
goal variable state after demonstration |
private int |
flag
core flag after demonstration |
private Term |
goal
goal subject of demosntration |
private int |
haltCode
|
Constructor Summary | |
(package private) |
SolveResultInfo(int fl,
alice.util.LinkedList vars,
Term g,
int haltCode_)
|
Method Summary | |
int |
getHaltCode()
gets halt code for a demonstration that has been halted |
Term |
getSolution()
gets info about the (unified) goal of the relative successful demonstration |
Substitution |
getSubstitution()
gets info about (eventually present) bound variables of the relative successful demonstration |
boolean |
halt()
tests if an haltquit predicate has been requested |
boolean |
hasOpenAlternatives()
tests if there are open alternatives in the relative demonstration |
boolean |
success()
tests for demontration success. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
flag
private int flag
- core flag after demonstration
haltCode
private int haltCode
bindings
private Var[] bindings
- goal variable state after demonstration
goal
private Term goal
- goal subject of demosntration
Constructor Detail |
SolveResultInfo
SolveResultInfo(int fl, alice.util.LinkedList vars, Term g, int haltCode_)
Method Detail |
success
public boolean success()
- Description copied from interface:
SolveInfo
- tests for demontration success.
hasOpenAlternatives
public boolean hasOpenAlternatives()
- Description copied from interface:
SolveInfo
- tests if there are open alternatives in the relative demonstration
- Specified by:
hasOpenAlternatives
in interfaceSolveInfo
getSubstitution
public Substitution getSubstitution() throws NoSolutionException
- Description copied from interface:
SolveInfo
- gets info about (eventually present) bound variables of the relative successful demonstration
- Specified by:
getSubstitution
in interfaceSolveInfo
getSolution
public Term getSolution() throws NoSolutionException
- Description copied from interface:
SolveInfo
- gets info about the (unified) goal of the relative successful demonstration
- Specified by:
getSolution
in interfaceSolveInfo
halt
public boolean halt()
- Description copied from interface:
SolveInfo
- tests if an haltquit predicate has been requested
getHaltCode
public int getHaltCode() throws NoHaltException
- Description copied from interface:
SolveInfo
- gets halt code for a demonstration that has been halted
- Specified by:
getHaltCode
in interfaceSolveInfo
|
|||||||||
Home >> All >> alice >> [ tuprolog overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |