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