public class PossibleWorld extends InterpretationSet<Proposition,PlBeliefSet,PropositionalFormula> implements java.lang.Comparable<PossibleWorld>
| Constructor and Description |
|---|
PossibleWorld()
Creates a new empty possible world.
|
PossibleWorld(java.util.Collection<? extends Proposition> propositions)
Creates a new possible world with the given set of propositions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PossibleWorld arg0) |
static java.util.Set<PossibleWorld> |
getAllPossibleWorlds(java.util.Collection<Proposition> signature)
Returns the set of all possible worlds for the
given propositional signature.
|
PropositionalFormula |
getCompleteConjunction(PropositionalSignature sig)
Returns the complete conjunction representing this possible world wrt.
|
boolean |
satisfies(java.util.Collection<PropositionalFormula> formulas)
Checks whether this interpretation satisfies all given formulas.
|
boolean |
satisfies(PlBeliefSet beliefBase)
Checks whether this interpretation satisfies the given knowledge base.
|
boolean |
satisfies(PropositionalFormula formula)
Checks whether this interpretation satisfies the given formula.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringpublic PossibleWorld()
public PossibleWorld(java.util.Collection<? extends Proposition> propositions)
propositions - the propositions that are true in this possible worldpublic boolean satisfies(PropositionalFormula formula) throws java.lang.IllegalArgumentException
Interpretationsatisfies in interface Interpretation<PlBeliefSet,PropositionalFormula>formula - a formula .java.lang.IllegalArgumentException - if the formula does not correspond
to the expected language.public boolean satisfies(java.util.Collection<PropositionalFormula> formulas) throws java.lang.IllegalArgumentException
AbstractInterpretationsatisfies in interface Interpretation<PlBeliefSet,PropositionalFormula>satisfies in class AbstractInterpretation<PlBeliefSet,PropositionalFormula>formulas - a collection of formulas.java.lang.IllegalArgumentException - if at least one formula does not correspond
to the expected language.public boolean satisfies(PlBeliefSet beliefBase) throws java.lang.IllegalArgumentException
Interpretationsatisfies in interface Interpretation<PlBeliefSet,PropositionalFormula>beliefBase - a knowledge base.java.lang.IllegalArgumentException - IllegalArgumentException if the knowledgebase does not correspond
to the expected language.public static java.util.Set<PossibleWorld> getAllPossibleWorlds(java.util.Collection<Proposition> signature)
signature - a propositional signature.public PropositionalFormula getCompleteConjunction(PropositionalSignature sig)
a - propositional signaturepublic int compareTo(PossibleWorld arg0)
compareTo in interface java.lang.Comparable<PossibleWorld>