bdi4jade.preference

## Class SoftgoalPreferences

- java.lang.Object
- - bdi4jade.util.MetadataElement
  - - bdi4jade.belief.Belief<T>
    - - bdi4jade.belief.TransientBelief<java.util.Map<Softgoal,java.lang.Double>>
      - - bdi4jade.preference.SoftgoalPreferences

- All Implemented Interfaces:
    jade.content.Concept, jade.content.Term, java.io.Serializable

      public class SoftgoalPreferences
      extends TransientBelief<java.util.Map<Softgoal,java.lang.Double>>

  This is an agent transient belief (@see `TransientBelief`) that stores the preferences for softgoals.
  Author:
    ingrid
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SoftgoalPreferences()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Double` | `getPreferenceForSoftgoal(Softgoal softgoal)` Returns the preference for a softgoal.
    `void` | `setPreferenceForSoftgoal(Softgoal softgoal, java.lang.Double preference)` Sets the preference for a softgoal.

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

      `getValue, setValue`

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

- - ### Field Detail

    - #### NAME

          public static final java.lang.String NAME

  - ### Constructor Detail

    - #### SoftgoalPreferences

          public SoftgoalPreferences()

  - ### Method Detail

    - #### getPreferenceForSoftgoal

          public java.lang.Double getPreferenceForSoftgoal(Softgoal softgoal)

      Returns the preference for a softgoal.
      Parameters:
        `softgoal` - the softgoal
      Returns:
        the preference for the softgoal

    - #### setPreferenceForSoftgoal

          public void setPreferenceForSoftgoal(Softgoal softgoal,
                                      java.lang.Double preference)

      Sets the preference for a softgoal.
      Parameters:
        `softgoal` - the softgoal to which the preference is set.
        `preference` - the preference value.