ubc.cs.JLog.Terms.Goals
Class jOrGoalWVars
java.lang.Object
ubc.cs.JLog.Foundation.jGoal
ubc.cs.JLog.Terms.Goals.jOrGoal
ubc.cs.JLog.Terms.Goals.jOrGoalWVars
- All Implemented Interfaces:
- iName, iNameArity
public class jOrGoalWVars
- extends jOrGoal
| Fields inherited from class ubc.cs.JLog.Foundation.jGoal |
next |
vars
protected jVariable[] vars
jOrGoalWVars
public jOrGoalWVars(jOrPredicate op,
jGoal g,
jVariable[] v,
jGoal end)
prove
public boolean prove(iGoalStack goals,
iGoalStack proved)
- Description copied from class:
jGoal
- Attempt to prove the goal represented by this
jGoal.
Goal must not be on either stack to prove (pop off goals stack before prove call).
Goal must place itself on the appropriate stack before returning.
proved stack if 'proved', goals stack otherwise.
Since proved doesn't pop the stack we don't need a try/catch block.
Must be called at least once before calling retry.
- Overrides:
prove in class jOrGoal
- Parameters:
goals - iGoalStack containing goals yet to be proved.proved - iGoalStack containing evaluated goals (goals
that may already be proved, or awaiting their child goals
to be proved).
- Returns:
boolean is true if this goal ended up on
proved, false otherwise.
Copyright © 2011. All Rights Reserved.