|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.Precondition
JSHOP2.PreconditionAtomic
public class PreconditionAtomic
This class represents an iterator over all the possible bindings that can satisfy an atomic logical expression at run time.
Field Summary | |
---|---|
private Predicate |
boundP
The predicate this atomic logical expression represents, after all the bindings are applied. |
private MyIterator |
e
The iterator this object will use to iterate over the atoms and/or axioms that can possibly unify with the predicate this object represents. |
private Predicate |
p
The predicate this atomic logical expression represents, without any subsequent bindings applied to it. |
Fields inherited from class JSHOP2.Precondition |
---|
bindings, bindingsIdx |
Constructor Summary | |
---|---|
PreconditionAtomic(Predicate pIn,
Term[] unifier)
To initialize this atomic logical expression. |
Method Summary | |
---|---|
void |
bind(Term[] binding)
To bind the assignment logical expression to some binding. |
protected Term[] |
nextBindingHelper()
To return the next satisfier for this atomic logical expression. |
protected void |
resetHelper()
To reset this atomic 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 |
---|
private Predicate boundP
private MyIterator e
private Predicate p
Constructor Detail |
---|
public PreconditionAtomic(Predicate pIn, Term[] unifier)
pIn
- the predicate this atomic logical expression represents.unifier
- the current unifier.Method Detail |
---|
public void bind(Term[] binding)
bind
in class Precondition
binding
- the given binding.protected Term[] nextBindingHelper()
nextBindingHelper
in class Precondition
protected void resetHelper()
resetHelper
in class Precondition
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |