T - the type of the belief set values.public class TransientBeliefSet<T> extends AbstractBeliefSet<T> implements BeliefSet<T>
AbstractBeliefSet class and implements
BeliefSet interface, representing a transient belief set, which is
not persisted in a permanent memory.metadata| Modifier | Constructor and Description |
|---|---|
protected |
TransientBeliefSet()
The default constructor.
|
|
TransientBeliefSet(java.lang.String name)
Initializes a belief set with its name.
|
|
TransientBeliefSet(java.lang.String name,
java.util.Set<T> values)
Initializes a belief set with its name and an initial set of values.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSetValue(T value)
Adds a value of this belief set.
|
java.util.Set<T> |
getValue()
Gets the current value of the belief.
|
boolean |
hasValue(T value)
Checks whether this belief set has the provided value.
|
java.util.Iterator<T> |
iterator()
Returns an iterator for this belief set.
|
protected boolean |
removeSetValue(T value)
Removes a value of this belief set.
|
protected void |
updateValue(java.util.Set<T> value)
Sets the value of this belief.
|
addValue, removeValueaddBeliefBase, equals, getBeliefBases, getName, hashCode, notifyBeliefBases, removeBeliefBase, setName, setValue, toStringgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddValue, removeValueaddBeliefBase, getBeliefBases, getName, removeBeliefBase, setValuegetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadataprotected TransientBeliefSet()
public TransientBeliefSet(java.lang.String name)
name - the name of this belief set.public TransientBeliefSet(java.lang.String name,
java.util.Set<T> values)
name - the name of the belief set.values - the initial values of this belief set.protected void addSetValue(T value)
AbstractBeliefSetAbstractBeliefSet.addValue(Object) method.addSetValue in class AbstractBeliefSet<T>value - the value to be added.AbstractBeliefSet.addSetValue(Object)public java.util.Set<T> getValue()
BeliefgetValue in interface Belief<java.util.Set<T>>Belief.getValue()public boolean hasValue(T value)
BeliefSethasValue in interface BeliefSet<T>value - the value to be checked.BeliefSet.hasValue(java.lang.Object)public java.util.Iterator<T> iterator()
BeliefSetiterator in interface BeliefSet<T>BeliefSet.iterator()protected boolean removeSetValue(T value)
AbstractBeliefSetAbstractBeliefSet.removeValue(Object) method.removeSetValue in class AbstractBeliefSet<T>value - the value to be added.AbstractBeliefSet.removeSetValue(Object)protected void updateValue(java.util.Set<T> value)
AbstractBeliefAbstractBelief.setValue(Object) method.updateValue in class AbstractBelief<java.util.Set<T>>value - the value to set.AbstractBelief.updateValue(java.lang.Object)