K - the type of the belief name.V - the type of the belief value.public class TransientBelief<K,V> extends AbstractBelief<K,V>
AbstractBelief class and represents a
transient belief, which is not persisted in a permanent memory.| Modifier and Type | Field and Description |
|---|---|
protected V |
value |
metadata| Constructor and Description |
|---|
TransientBelief()
The default constructor.
|
TransientBelief(K name)
Initializes a transient belief with its name.
|
TransientBelief(K name,
V value)
Initializes a transient belief with its name and a initial value.
|
| Modifier and Type | Method and Description |
|---|---|
V |
getValue()
Gets the current value of the belief.
|
protected void |
updateValue(V value)
Sets the value of this belief.
|
addBeliefBase, clone, equals, getBeliefBases, getName, hashCode, notifyBeliefBases, removeBeliefBase, setName, setValue, toStringgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatafinalize, getClass, notify, notifyAll, wait, wait, waitgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadataprotected V value
public TransientBelief()
public TransientBelief(K name)
name - the belief name.public V getValue()
BeliefBelief.getValue()protected void updateValue(V value)
AbstractBeliefAbstractBelief.setValue(Object) method.updateValue in class AbstractBelief<K,V>value - the value to set.AbstractBelief.updateValue(java.lang.Object)