bdi4jade.goal

## Interface BeliefGoal<K>

- All Superinterfaces:
    jade.content.Concept, jade.content.ContentElement, Goal, java.io.Serializable, jade.content.Term
  All Known Implementing Classes:
    AbstractBeliefGoal, BeliefNotNullValueGoal, BeliefNotPresentGoal, BeliefPresentGoal, BeliefSetHasValueGoal, BeliefValueGoal, PredicateGoal

      public interface BeliefGoal<K>
      extends Goal

  This class represents the goal of an agent to believe in a certain belief, that is, the agent has a belief whose name is specified in this goal.
  Author:
    Ingrid Nunes

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `K` | `getBeliefName()` Returns the name of the belief associated with this goal.
    `Belief<K,?>` | `getOutputBelief()` Returns the belief which is the output of this goal achievement.
    `boolean` | `isAchieved(BeliefBase beliefBase)` Checks whether this goal is achieved by checking the provided belief base.
    `void` | `setOutputBelief(Belief<K,?> belief)` Sets the belief which is the output of this goal achievement.

- - ### Method Detail

    - #### getBeliefName

          K getBeliefName()

      Returns the name of the belief associated with this goal.
      Returns:
        the belief name.

    - #### getOutputBelief

          Belief<K,?> getOutputBelief()

      Returns the belief which is the output of this goal achievement.
      Returns:
        the belief.

    - #### isAchieved

          boolean isAchieved(BeliefBase beliefBase)

      Checks whether this goal is achieved by checking the provided belief base.
      Parameters:
        `beliefBase` - the belief base to be checked.
      Returns:
        true if goal was achieved, false otherwise.

    - #### setOutputBelief

          void setOutputBelief(Belief<K,?> belief)

      Sets the belief which is the output of this goal achievement.
      Parameters:
        `belief` - the belief.