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