bdi4jade.reasoning

## Class AbstractAgentReasoningStrategy

- java.lang.Object
- - bdi4jade.reasoning.AbstractAgentReasoningStrategy

- All Implemented Interfaces:
    AgentReasoningStrategy
  Direct Known Subclasses:
    DefaultAgentBeliefRevisionStrategy, DefaultAgentDeliberationFunction, DefaultAgentOptionGenerationFunction, DefaultAgentPlanSelectionStrategy

      public abstract class AbstractAgentReasoningStrategy
      extends java.lang.Object
      implements AgentReasoningStrategy

  This class provides an abstract implementation of the `AgentReasoningStrategy` interface. It provides an implementation of common methods of reasoning strategies, which can be reused.
  Author:
    Ingrid Nunes

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected BDIAgent` | `agent`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractAgentReasoningStrategy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setAgent(BDIAgent agent)` Sets the agent with which this strategy is associated with.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### agent

          protected BDIAgent agent

  - ### Constructor Detail

    - #### AbstractAgentReasoningStrategy

          public AbstractAgentReasoningStrategy()

  - ### Method Detail

    - #### setAgent

          public void setAgent(BDIAgent agent)

      Description copied from interface: `AgentReasoningStrategy`
      Sets the agent with which this strategy is associated with. If this strategy was previously associated with another agent, this methods throws an `IllegalArgumentException`.
      Specified by:
        `setAgent` in interface `AgentReasoningStrategy`
      Parameters:
        `agent` - the agent to set.
      See Also:
        `AgentReasoningStrategy.setAgent(bdi4jade.core.BDIAgent)`