public abstract class JIPXCall extends Object
Constructor and Description |
---|
JIPXCall() |
Modifier and Type | Method and Description |
---|---|
JIPEngine |
getJIPEngine()
Returns the current running JIPEngine object
|
JIPFunctor |
getPredicate()
Returns the functor of the predicate invoking this instance of JIPXCall class
|
int |
getQueryHandle()
Returns the handle of the current running query
|
abstract boolean |
hasMoreChoicePoints()
Invoked by xcall/2 to check if the custom predicate has more choice points on backtracking.
|
protected void |
init()
Called by xcall/2 to initialize this JIPXCall object
|
abstract boolean |
unify(JIPCons params,
Hashtable<JIPVariable,JIPVariable> varsTbl)
Invoked by xcall/2 to check if the custom predicate unify with the passed parameters
For more information see the section "How to write a custom built-in predicate" in the Reference Manual.
|
protected void init()
public final JIPEngine getJIPEngine()
JIPEngine
public final int getQueryHandle()
public final JIPFunctor getPredicate()
JIPFunctor
public abstract boolean unify(JIPCons params, Hashtable<JIPVariable,JIPVariable> varsTbl)
params
- the parameters passed to the predicate.JIPCons
public abstract boolean hasMoreChoicePoints()