JSHOP2
Class PreconditionCall

java.lang.Object
  extended by JSHOP2.Precondition
      extended by JSHOP2.PreconditionCall

public class PreconditionCall
extends Precondition

This class represents an iterator over all the possible bindings that can satisfy a call logical expression at run time. Note that in this case there is at most one such binding.

Version:
1.0.3
Author:
Okhtay Ilghami, http://www.cs.umd.edu/~okhtay

Field Summary
private  Term boundT
          The term this call logical expression represents, after all the bindings are applied.
private  Term[] retVal
          The array this object will return as its next binding.
private  Term term
          The term this call logical expression represents, without any subsequent bindings applied to it.
 
Fields inherited from class JSHOP2.Precondition
bindings, bindingsIdx
 
Constructor Summary
PreconditionCall(TermCall termIn, Term[] unifier)
          To initialize this call logical expression.
 
Method Summary
 void bind(Term[] binding)
          To bind the call logical expression to some binding.
protected  Term[] nextBindingHelper()
          To return the next satisfier for this call logical expression.
protected  void resetHelper()
          To reset this call logical expression.
 
Methods inherited from class JSHOP2.Precondition
nextBinding, reset, setComparator, setFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boundT

private Term boundT
The term this call logical expression represents, after all the bindings are applied.


retVal

private Term[] retVal
The array this object will return as its next binding.


term

private Term term
The term this call logical expression represents, without any subsequent bindings applied to it.

Constructor Detail

PreconditionCall

public PreconditionCall(TermCall termIn,
                        Term[] unifier)
To initialize this call logical expression.

Parameters:
termIn - the term this call logical expression represents.
unifier - the current unifier.
Method Detail

bind

public void bind(Term[] binding)
To bind the call logical expression to some binding.

Specified by:
bind in class Precondition
Parameters:
binding - the given binding.

nextBindingHelper

protected Term[] nextBindingHelper()
To return the next satisfier for this call logical expression.

Specified by:
nextBindingHelper in class Precondition

resetHelper

protected void resetHelper()
To reset this call logical expression.

Specified by:
resetHelper in class Precondition