bdi4jade.belief

## Class PersistentBelief<T>

- java.lang.Object
- - bdi4jade.util.MetadataElement
  - - bdi4jade.belief.Belief<T>
    - - bdi4jade.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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PersistentBelief(java.lang.String name)` Initializes a belief with its name.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `getValue()` Gets the current value of the Belief.
    `void` | `setValue(T value)` Sets a new value to the belief.

    - ### Methods inherited from class bdi4jade.belief.Belief

      `addBeliefBase, equals, getBeliefBases, getName, hashCode, removeBeliefBase, toString`

    - ### Methods inherited from class bdi4jade.util.MetadataElement

      `getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadata`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

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