|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectai.krr.propositions.Interpretation.InterpretationIterator
public static class Interpretation.InterpretationIterator
Constructor Summary | |
---|---|
Interpretation.InterpretationIterator(java.util.Set<NamedSymbol> sys)
This constructor creates and initializes a new Iterator that can be used to enumerate all possible Interpretations for a given Set of NamedSymbols. |
Method Summary | |
---|---|
boolean |
hasNext()
This function tests whether there are more, different Interpretations to be enumerated. |
Interpretation |
next()
This function modifies the Interpretation maintained by this Iterator to the next one and returns it. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Interpretation.InterpretationIterator(java.util.Set<NamedSymbol> sys)
This constructor creates and initializes a new Iterator that can be used to enumerate all possible Interpretations for a given Set of NamedSymbols. Note that this Iterator does not create new Interpretations for each iteration but modifies the one created by this constructor.
sys
- the Set of atomic symbols that must have a truth value
assignedMethod Detail |
---|
public boolean hasNext()
This function tests whether there are more, different Interpretations to be enumerated.
hasNext
in interface java.util.Iterator<Interpretation>
public Interpretation next()
This function modifies the Interpretation maintained by this Iterator to the next one and returns it. The first Interpretation assigns FALSE to every symbol, the last one assigns all true.
next
in interface java.util.Iterator<Interpretation>
public void remove()
remove
in interface java.util.Iterator<Interpretation>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |