public class PossibleWorld extends net.sf.tweety.commons.InterpretationSet<Proposition> implements Comparable<PossibleWorld>
| Constructor and Description |
|---|
PossibleWorld()
Creates a new empty possible world.
|
PossibleWorld(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 Set<PossibleWorld> |
getAllPossibleWorlds(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(net.sf.tweety.commons.BeliefBase beliefBase) |
boolean |
satisfies(net.sf.tweety.commons.Formula formula) |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic PossibleWorld()
public PossibleWorld(Collection<? extends Proposition> propositions)
propositions - the propositions that are true in this possible worldpublic boolean satisfies(net.sf.tweety.commons.Formula formula)
throws IllegalArgumentException
satisfies in interface net.sf.tweety.commons.InterpretationIllegalArgumentExceptionpublic boolean satisfies(net.sf.tweety.commons.BeliefBase beliefBase)
throws IllegalArgumentException
satisfies in interface net.sf.tweety.commons.InterpretationIllegalArgumentExceptionpublic static Set<PossibleWorld> getAllPossibleWorlds(Collection<Proposition> signature)
signature - a propositional signature.public PropositionalFormula getCompleteConjunction(PropositionalSignature sig)
a - propositional signaturepublic int compareTo(PossibleWorld arg0)
compareTo in interface Comparable<PossibleWorld>Copyright © 2018. All rights reserved.