T
- The type of the beliefs in this belief set.public abstract class BeliefSet<T extends Formula> extends java.lang.Object implements BeliefBase, java.util.Collection<T>
Modifier and Type | Field and Description |
---|---|
private java.util.Set<T> |
formulas
The set of formulas of this belief base.
|
Constructor and Description |
---|
BeliefSet()
Creates a new (empty) belief set.
|
BeliefSet(java.util.Collection<? extends T> c)
Creates a new belief set with the given collection of
formulae.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T f) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
abstract Signature |
getSignature()
Returns the signature of the language of this knowledge base.
|
int |
hashCode() |
protected java.util.Set<T> |
instantiateSet()
instantiates the set which is used as data holder for the belief set.
|
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
java.lang.String |
toString() |
public BeliefSet()
public BeliefSet(java.util.Collection<? extends T> c)
c
- a collection of formulae.protected java.util.Set<T> instantiateSet()
public abstract Signature getSignature()
BeliefBase
getSignature
in interface BeliefBase
public boolean addAll(java.util.Collection<? extends T> c)
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public int hashCode()
public boolean equals(java.lang.Object obj)
public boolean isEmpty()
public java.util.Iterator<T> iterator()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public java.lang.Object[] toArray()
public <S> S[] toArray(S[] a)
public java.lang.String toString()
toString
in interface BeliefBase
toString
in class java.lang.Object