T - The type of the beliefs in this belief set.public abstract class BeliefSet<T extends Formula> extends Object implements BeliefBase, Collection<T>
| Constructor and Description |
|---|
BeliefSet()
Creates a new (empty) belief set.
|
BeliefSet(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(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
abstract Signature |
getSignature()
Returns the signature of the language of this knowledge base.
|
int |
hashCode() |
protected Set<T> |
instantiateSet()
instantiates the set which is used as data holder for the belief set.
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic BeliefSet()
public BeliefSet(Collection<? extends T> c)
c - a collection of formulae.protected Set<T> instantiateSet()
public abstract Signature getSignature()
BeliefBasegetSignature in interface BeliefBasepublic boolean add(T f)
add in interface Collection<T extends Formula>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T extends Formula>public void clear()
clear in interface Collection<T extends Formula>public boolean contains(Object o)
contains in interface Collection<T extends Formula>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends Formula>public int hashCode()
public boolean equals(Object obj)
public boolean isEmpty()
isEmpty in interface Collection<T extends Formula>public boolean remove(Object o)
remove in interface Collection<T extends Formula>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T extends Formula>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T extends Formula>public int size()
size in interface Collection<T extends Formula>public Object[] toArray()
toArray in interface Collection<T extends Formula>public <S> S[] toArray(S[] a)
toArray in interface Collection<T extends Formula>public String toString()
toString in interface BeliefBasetoString in class ObjectCopyright © 2018. All rights reserved.