br.pucrio.inf.les.bdijade.belief
Class TransientBelief<T>

java.lang.Object
  extended by br.pucrio.inf.les.bdijade.util.MetadataElement
      extended by br.pucrio.inf.les.bdijade.belief.Belief<T>
          extended by br.pucrio.inf.les.bdijade.belief.TransientBelief<T>
All Implemented Interfaces:
jade.content.Concept, jade.content.Term, java.io.Serializable

public class TransientBelief<T>
extends Belief<T>
implements java.io.Serializable, jade.content.Concept

This class extends the Belief and represents a transient belief, which is not persisted in a permanent memory.

Author:
ingrid
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
protected  T value
           
 
Fields inherited from class br.pucrio.inf.les.bdijade.belief.Belief
name
 
Fields inherited from class br.pucrio.inf.les.bdijade.util.MetadataElement
metadata
 
Constructor Summary
TransientBelief(java.lang.String name)
          Initializes a belief with its name.
TransientBelief(java.lang.String name, T value)
          Initializes a belief with its name and a initial value.
 
Method Summary
 T getValue()
          Gets the current value of the Belief.
 void setValue(T value)
          Sets a new value to the belief.
 
Methods inherited from class br.pucrio.inf.les.bdijade.belief.Belief
addBeliefBase, equals, getBeliefBases, getName, hashCode, removeBeliefBase, toString
 
Methods inherited from class br.pucrio.inf.les.bdijade.util.MetadataElement
getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

value

protected T value
Constructor Detail

TransientBelief

public TransientBelief(java.lang.String name)
Initializes a belief with its name.

Parameters:
name - the belief name.

TransientBelief

public TransientBelief(java.lang.String name,
                       T value)
Initializes a belief with its name and a initial value.

Parameters:
name - the belief name.
value - the initial belief value.
Method Detail

getValue

public T getValue()
Description copied from class: Belief
Gets the current value of the Belief.

Specified by:
getValue in class Belief<T>
Returns:
the belief value.
See Also:
Belief.getValue()

setValue

public void setValue(T value)
Description copied from class: Belief
Sets a new value to the belief.

Specified by:
setValue in class Belief<T>
Parameters:
value - the new value.
See Also:
Belief.setValue(java.lang.Object)