Interface IEmotionState


public interface IEmotionState
A generic interface for representing the emotional state of an agent. Since this is only an interface, you need to provide a concrete implementation of it. To use it, attach it to an emotional-test-agent using EmotiveTestAgent.attachEmotionState(IEmotionState). Then, whenever the agent is updated (through a call to its EmotiveTestAgent.update() method), it will also update the emotion-state attached to it by calling the method updateEmotion(EmotiveTestAgent).
Author:
Wish
  • Method Summary

    Modifier and Type
    Method
    Description
    This will return all the current/latest emotions stored in the emotion state.
    void
    This should implement how the emotion state is updated.
  • Method Details

    • getCurrentEmotion

      List<IEmotion> getCurrentEmotion()
      This will return all the current/latest emotions stored in the emotion state. hy
    • updateEmotion

      void updateEmotion(EmotiveTestAgent agent)
      This should implement how the emotion state is updated. The method is called by the agent whenever the method EmotiveTestAgent.update() is called, passing to it a reference to the agent to which this emotion state is attached to. This allows this method to inspect the agent state to calculate what emotion that would induce.
      Parameters:
      agent - The EmotiveTestAgent to which this emotion-state is attached to.