public class NicePossibleWorld extends net.sf.tweety.commons.InterpretationSet<Proposition> implements Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>>
| Constructor and Description |
|---|
NicePossibleWorld(Collection<Proposition> trueInWorld,
Collection<Proposition> signature)
Ctor: Generates the possible world using the given set of true propositions and
generated a representation of the possible world using the given signature.
|
NicePossibleWorld(Collection<Proposition> trueInWorld,
Collection<Proposition> signature,
Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>> comparator)
Ctor: Generates the possible world using the given set of true propositions and
generated a representation of the possible world using the given signature.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(net.sf.tweety.commons.util.Pair<Proposition,Boolean> o1,
net.sf.tweety.commons.util.Pair<Proposition,Boolean> o2) |
boolean |
equals(Object other) |
static Set<NicePossibleWorld> |
getAllPossibleWorlds(Collection<Proposition> signature) |
PossibleWorld |
getOptimizedWorld() |
Set<net.sf.tweety.commons.util.Pair<Proposition,Boolean>> |
getRepresentationStructure() |
int |
hashCode() |
boolean |
satisfies(net.sf.tweety.commons.BeliefBase beliefBase) |
boolean |
satisfies(net.sf.tweety.commons.Formula formula) |
void |
setComparator(Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>> comparator)
Changes the used comparator to sort the representation structure and resorts
the representation.
|
boolean |
setSignature(Collection<Proposition> signature)
Changes the signature of the world.
|
String |
toString() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongparallelStream, removeIf, spliterator, streampublic NicePossibleWorld(Collection<Proposition> trueInWorld, Collection<Proposition> signature)
trueInWorld - A set of propositions describing those propositions that are
true in this possible world. It has to be a subset of
signature.signature - A set of propositions describing all know propositions by the
the problem, the signature. It has to be a super set of
trueInWorldpublic NicePossibleWorld(Collection<Proposition> trueInWorld, Collection<Proposition> signature, Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>> comparator)
trueInWorld - A set of propositions describing those propositions that are
true in this possible world. It has to be a subset of
signature.signature - A set of propositions describing all know propositions by the
the problem, the signature. It has to be a super set of
trueInWorldpublic boolean setSignature(Collection<Proposition> signature)
signature - A collection of propositions defining the new signature.public void setComparator(Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>> comparator)
comparator - The new comparator used to sort the representation. If
a null is given the default alphabetically ordering is
used.public PossibleWorld getOptimizedWorld()
public Set<net.sf.tweety.commons.util.Pair<Proposition,Boolean>> getRepresentationStructure()
public 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 boolean equals(Object other)
equals in interface Collection<Proposition>equals in interface Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>>equals in class net.sf.tweety.commons.InterpretationSet<Proposition>public int hashCode()
hashCode in interface Collection<Proposition>hashCode in class net.sf.tweety.commons.InterpretationSet<Proposition>public String toString()
toString in class net.sf.tweety.commons.InterpretationSet<Proposition>public int compare(net.sf.tweety.commons.util.Pair<Proposition,Boolean> o1, net.sf.tweety.commons.util.Pair<Proposition,Boolean> o2)
compare in interface Comparator<net.sf.tweety.commons.util.Pair<Proposition,Boolean>>public static Set<NicePossibleWorld> getAllPossibleWorlds(Collection<Proposition> signature)
Copyright © 2018. All rights reserved.