br.pucrio.inf.les.bdijade.belief
Class PersistentBelief<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.PersistentBelief<T>
All Implemented Interfaces:
jade.content.Concept, jade.content.Term, java.io.Serializable

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

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
PersistentBelief(java.lang.String name)
          Initializes a belief with its name.
 
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

PersistentBelief

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

Parameters:
name - the belief name.
Method Detail

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)

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()