public class HerbrandInterpretation extends net.sf.tweety.commons.InterpretationSet<FOLAtom>
| Constructor and Description |
|---|
HerbrandInterpretation()
Creates a new empty Herbrand interpretation
|
HerbrandInterpretation(Collection<? extends FOLAtom> atoms)
Creates a new Herbrand interpretation with the given
set of atoms
|
| Modifier and Type | Method and Description |
|---|---|
HerbrandInterpretation |
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
|
HerbrandInterpretation |
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(HerbrandInterpretation 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.commons.BeliefBase beliefBase) |
boolean |
satisfies(net.sf.tweety.commons.Formula formula)
Checks whether this Herbrand interpretation satisfies
the given formula.
|
boolean |
satisfies(Set<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 HerbrandInterpretation()
public HerbrandInterpretation(Collection<? extends FOLAtom> atoms)
atoms - the set of true atoms in this Herbrand interpretation.public boolean satisfies(net.sf.tweety.commons.Formula formula)
throws IllegalArgumentException
formula - a formula.IllegalArgumentException - if "f" is not closed.public boolean isSyntacticallyEquivalent(HerbrandInterpretation 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<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.commons.BeliefBase beliefBase)
throws IllegalArgumentException
IllegalArgumentExceptionpublic HerbrandInterpretation 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 HerbrandInterpretation exchange(Map<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> mapping)
mapping - a mapping of terms.Copyright © 2018. All rights reserved.