Interface IEmotion


public interface IEmotion
An interface for generically represent emotion and its intensity.
Author:
Wish
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the (last) time when this emotion was activated/triggered.
    The id of the person who has the emotion.
    Return the type of the emotion.
    float
    Return the intensity of this emotion.
    The id of the target of the emotion, which can be a person (if someone is angry towards another person), or some goal (e.g.
    Return the time when this emotion is sampled; if this information is available.
  • Method Details

    • getEmotionType

      String getEmotionType()
      Return the type of the emotion. E.g. "fear".
    • getAgentId

      String getAgentId()
      The id of the person who has the emotion.
    • getTargetId

      String getTargetId()
      The id of the target of the emotion, which can be a person (if someone is angry towards another person), or some goal (e.g. "to win a game", and the emotion could be "joy" towards this goal e.g. when its prospect because quite certain)
    • getIntensity

      float getIntensity()
      Return the intensity of this emotion.
    • getTime

      Long getTime()
      Return the time when this emotion is sampled; if this information is available. The value of getIntensity() is the intensity sampled at that time. If no timing information is available, the methos returns null.
    • getActivationTime

      Long getActivationTime()
      Return the (last) time when this emotion was activated/triggered. After the activation, the emotion might decay, until it is reactivated again. The method getTime() returns the time when this emotion is being sampled, which would be at the time it was activated, or later. If no timing information is available, the methos returns null.