public class TransientBeliefSet<T> extends BeliefSet<T>
BeliefSet and represents a transient belief
set, which is not persisted in a permanent memory.| Constructor and Description |
|---|
TransientBeliefSet(java.lang.String name)
Creates a transient belief set.
|
TransientBeliefSet(java.lang.String name,
java.util.Set<T> values)
Creates a transient belief set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(T value)
Adds a new value to this belief set.
|
java.util.Set<T> |
getValue()
Gets the current value of the Belief.
|
boolean |
hasValue(T value)
Checks if this belief set has the provided value.
|
java.util.Iterator<T> |
iterator()
Returns an iterator for this belief set.
|
boolean |
removeValue(T value)
Removes a value from this belief set.
|
void |
setValue(java.util.Set<T> values)
Sets a new value to the belief.
|
java.lang.String |
toString() |
addBeliefBase, equals, getBeliefBases, getName, hashCode, removeBeliefBasegetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatapublic TransientBeliefSet(java.lang.String name)
name - the name of the 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.public void addValue(T value)
BeliefSetaddValue in class BeliefSet<T>value - the value to be added.BeliefSet.addValue(java.lang.Object)public java.util.Set<T> getValue()
BeliefgetValue in class Belief<java.util.Set<T>>Belief.getValue()public boolean hasValue(T value)
BeliefSethasValue in class BeliefSet<T>value - the value to be tested.BeliefSet.hasValue(java.lang.Object)public java.util.Iterator<T> iterator()
BeliefSetiterator in class BeliefSet<T>BeliefSet.iterator()public boolean removeValue(T value)
BeliefSetremoveValue in class BeliefSet<T>value - the value to be removed.BeliefSet.removeValue(java.lang.Object)public void setValue(java.util.Set<T> values)
BeliefsetValue in class Belief<java.util.Set<T>>values - the new value.Belief.setValue(java.lang.Object)