gnu.prolog.vm.buildins.allsolutions
Class Predicate_bagof
java.lang.Object
gnu.prolog.vm.ExecuteOnlyCode
gnu.prolog.vm.buildins.allsolutions.Predicate_bagof
- All Implemented Interfaces:
- Installable, PrologCode
- Direct Known Subclasses:
- Predicate_setof
public class Predicate_bagof
- extends ExecuteOnlyCode
prolog code
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Predicate_bagof
public Predicate_bagof()
execute
public int execute(Interpreter interpreter,
boolean backtrackMode,
Term[] args)
throws PrologException
- Description copied from interface:
PrologCode
- this method is used for execution of code
- Specified by:
execute
in interface PrologCode
- Specified by:
execute
in class ExecuteOnlyCode
- Parameters:
interpreter
- interpreter in which context code is executedbacktrackMode
- true if predicate is called on backtracking and false otherwiseargs
- arguments of code
- Returns:
- either SUCCESS, SUCCESS_LAST, or FAIL.
- Throws:
PrologException
nextSolution
public int nextSolution(Interpreter interpreter,
gnu.prolog.vm.buildins.allsolutions.Predicate_bagof.BagOfBacktrackInfo bi)
throws PrologException
- Throws:
PrologException
processList
protected void processList(List<Term> curTList)