public class Extension extends AbstractInterpretation<DefaultTheory,FolFormula> implements java.util.Collection<FolFormula>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<FolFormula> |
formulas
The formulas
|
| Constructor and Description |
|---|
Extension()
Default constructor
|
Extension(java.util.Collection<FolFormula> formulas)
Creates a new extension with the given set of formulas.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(FolFormula e) |
boolean |
addAll(java.util.Collection<? extends FolFormula> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<FolFormula> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
satisfies(DefaultTheory beliefBase)
Checks whether this interpretation satisfies the given knowledge base.
|
boolean |
satisfies(FolFormula formula)
Checks whether this interpretation satisfies the given formula.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
satisfiesprivate java.util.Collection<FolFormula> formulas
public Extension()
public Extension(java.util.Collection<FolFormula> formulas)
formulas - some formulas.public boolean satisfies(FolFormula formula) throws java.lang.IllegalArgumentException
Interpretationsatisfies in interface Interpretation<DefaultTheory,FolFormula>formula - a formula .java.lang.IllegalArgumentException - if the formula does not correspond
to the expected language.public boolean satisfies(DefaultTheory beliefBase) throws java.lang.IllegalArgumentException
Interpretationsatisfies in interface Interpretation<DefaultTheory,FolFormula>beliefBase - a knowledge base.java.lang.IllegalArgumentException - IllegalArgumentException if the knowledgebase does not correspond
to the expected language.public int size()
size in interface java.util.Collection<FolFormula>public boolean isEmpty()
isEmpty in interface java.util.Collection<FolFormula>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<FolFormula>public java.util.Iterator<FolFormula> iterator()
iterator in interface java.lang.Iterable<FolFormula>iterator in interface java.util.Collection<FolFormula>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<FolFormula>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<FolFormula>public boolean add(FolFormula e)
add in interface java.util.Collection<FolFormula>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<FolFormula>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<FolFormula>public boolean addAll(java.util.Collection<? extends FolFormula> c)
addAll in interface java.util.Collection<FolFormula>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<FolFormula>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<FolFormula>public void clear()
clear in interface java.util.Collection<FolFormula>public int hashCode()
hashCode in interface java.util.Collection<FolFormula>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<FolFormula>equals in class java.lang.Object