Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

alice.tuprolog
Class SolveResultInfo  view SolveResultInfo download SolveResultInfo.java

java.lang.Object
  extended byalice.tuprolog.SolveResultInfo
All Implemented Interfaces:
java.io.Serializable, SolveInfo

final class SolveResultInfo
extends java.lang.Object
implements SolveInfo

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.

Specified by:
success in interface SolveInfo

hasOpenAlternatives

public boolean hasOpenAlternatives()
Description copied from interface: SolveInfo
tests if there are open alternatives in the relative demonstration

Specified by:
hasOpenAlternatives in interface SolveInfo

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 interface SolveInfo

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 interface SolveInfo

halt

public boolean halt()
Description copied from interface: SolveInfo
tests if an haltquit predicate has been requested

Specified by:
halt in interface SolveInfo

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 interface SolveInfo