public class ModalHerbrandInterpretation
extends net.sf.tweety.commons.InterpretationSet<net.sf.tweety.logics.fol.syntax.FolAtom,net.sf.tweety.logics.fol.syntax.FolBeliefSet,net.sf.tweety.logics.fol.syntax.FolFormula>
HerbrandInterpretation| Constructor and Description |
|---|
ModalHerbrandInterpretation()
Creates a new empty Herbrand interpretation
|
ModalHerbrandInterpretation(Collection<? extends net.sf.tweety.logics.fol.syntax.FolAtom> atoms)
Creates a new Herbrand interpretation with the given
set of atoms
|
| Modifier and Type | Method and Description |
|---|---|
ModalHerbrandInterpretation |
exchange(Map<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> mapping)
For every mapping t1 -> t2, this method substitutes every
occurrence of "t1" by "t2" and vice versa and returns the new interpretation
|
ModalHerbrandInterpretation |
exchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t1,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t2)
Substitutes every occurrence of "t1" by "t2" and vice versa and returns the
new interpretation.
|
boolean |
isSyntacticallyEquivalent(ModalHerbrandInterpretation other,
Collection<? extends Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>> equivalenceClasses)
Checks whether this interpretation is syntactically equivalent to the given
interpretation and the given equivalence classes, i.e.
|
boolean |
satisfies(net.sf.tweety.logics.fol.syntax.FolBeliefSet beliefBase) |
boolean |
satisfies(net.sf.tweety.logics.fol.syntax.FolFormula formula) |
boolean |
satisfies(net.sf.tweety.commons.Formula formula,
Set<net.sf.tweety.commons.Interpretation<net.sf.tweety.logics.fol.syntax.FolBeliefSet,net.sf.tweety.logics.fol.syntax.FolFormula>> successors)
Checks whether this Herbrand interpretation satisfies
the given formula.
|
boolean |
satisfies(Set<net.sf.tweety.logics.fol.syntax.FolFormula> formulas)
Checks whether this Herbrand interpretation satisfies each of
the formulas in the given set of first-order formulas.
|
String |
toString() |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic ModalHerbrandInterpretation()
public ModalHerbrandInterpretation(Collection<? extends net.sf.tweety.logics.fol.syntax.FolAtom> atoms)
atoms - the set of true atoms in this Herbrand interpretation.public boolean satisfies(net.sf.tweety.logics.fol.syntax.FolFormula formula)
throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean satisfies(net.sf.tweety.commons.Formula formula,
Set<net.sf.tweety.commons.Interpretation<net.sf.tweety.logics.fol.syntax.FolBeliefSet,net.sf.tweety.logics.fol.syntax.FolFormula>> successors)
throws IllegalArgumentException
formula - a formula.IllegalArgumentException - if "f" is not closed.public boolean isSyntacticallyEquivalent(ModalHerbrandInterpretation other, Collection<? extends Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>> equivalenceClasses)
other - a Herbrand interpretation.equivalenceClasses - a set of sets of constants.public boolean satisfies(Set<net.sf.tweety.logics.fol.syntax.FolFormula> formulas) throws IllegalArgumentException
formulas - a set of first-order formulas.IllegalArgumentException - if at least one formula does not correspond
to the expected language.public boolean satisfies(net.sf.tweety.logics.fol.syntax.FolBeliefSet beliefBase)
throws IllegalArgumentException
IllegalArgumentExceptionpublic ModalHerbrandInterpretation exchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t1, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t2)
t1 - a term.t2 - a term.public ModalHerbrandInterpretation exchange(Map<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> mapping)
mapping - a mapping of terms.public String toString()
toString in class net.sf.tweety.commons.InterpretationSet<net.sf.tweety.logics.fol.syntax.FolAtom,net.sf.tweety.logics.fol.syntax.FolBeliefSet,net.sf.tweety.logics.fol.syntax.FolFormula>Copyright © 2019. All rights reserved.