Class OCCAffectDerivationComponent

java.lang.Object
FAtiMA.OCCAffectDerivation.OCCAffectDerivationComponent
All Implemented Interfaces:
FAtiMA.Core.componentTypes.IAffectDerivationComponent, FAtiMA.Core.componentTypes.IComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent, Serializable

public class OCCAffectDerivationComponent extends Object implements Serializable, FAtiMA.Core.componentTypes.IAffectDerivationComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent
See Also:
  • Field Details

  • Constructor Details

    • OCCAffectDerivationComponent

      public OCCAffectDerivationComponent()
  • Method Details

    • AppraiseGoalFailure

      public static OCCBaseEmotion AppraiseGoalFailure(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.ActiveEmotion hopeEmotion, FAtiMA.Core.emotionalState.ActiveEmotion fearEmotion, float conduciveness, FAtiMA.Core.sensorEffector.Event e)
      Appraises a Goal's Failure according to the emotions that the agent is experiencing
      Parameters:
      am -
      hopeEmotion - - the emotion of Hope for achieving the goal that the character feels
      fearEmotion - - the emotion of Fear for not achieving the goal that the character feels
      conduciveness -
      e -
      Returns:
      the emotion created
    • AppraiseGoalFailureProbability

      public static OCCBaseEmotion AppraiseGoalFailureProbability(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e, float goalConduciveness, float prob)
      Appraises a Goal's likelihood of failure
      Parameters:
      am -
      e -
      goalConduciveness -
      prob -
      Returns:
      - the emotion created
    • AppraiseGoalSuccess

      public static OCCBaseEmotion AppraiseGoalSuccess(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.ActiveEmotion hopeEmotion, FAtiMA.Core.emotionalState.ActiveEmotion fearEmotion, float conduciveness, FAtiMA.Core.sensorEffector.Event e)
      Appraises a Goal's success according to the emotions that the agent is experiencing
      Parameters:
      am -
      hopeEmotion - - the emotion of Hope for achieving the goal that the character feels
      fearEmotion - - the emotion of Fear for not achieving the goal that the character feels
      conduciveness -
      e -
      Returns:
      - the emotion created
    • AppraiseGoalSuccessProbability

      public static OCCBaseEmotion AppraiseGoalSuccessProbability(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e, float goalConduciveness, float prob)
      Appraises a Goal's likelihood of succeeding
      Parameters:
      am -
      e -
      goalConduciveness -
      prob -
      Returns:
      - the BaseEmotion created
    • affectDerivation

      public ArrayList<FAtiMA.Core.emotionalState.BaseEmotion> affectDerivation(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.AppraisalFrame af)
      Specified by:
      affectDerivation in interface FAtiMA.Core.componentTypes.IAffectDerivationComponent
    • createDisplayPanel

      public FAtiMA.Core.Display.AgentDisplayPanel createDisplayPanel(FAtiMA.Core.AgentModel am)
      Specified by:
      createDisplayPanel in interface FAtiMA.Core.componentTypes.IComponent
    • createModelOfOther

      public FAtiMA.Core.componentTypes.IComponent createModelOfOther()
      Specified by:
      createModelOfOther in interface FAtiMA.Core.componentTypes.IModelOfOtherComponent
    • getComponentDependencies

      public String[] getComponentDependencies()
      Specified by:
      getComponentDependencies in interface FAtiMA.Core.componentTypes.IComponent
    • initialize

      public void initialize(FAtiMA.Core.AgentModel am)
      Specified by:
      initialize in interface FAtiMA.Core.componentTypes.IComponent
    • inverseAffectDerivation

      public void inverseAffectDerivation(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.BaseEmotion em, FAtiMA.Core.emotionalState.AppraisalFrame af)
      Specified by:
      inverseAffectDerivation in interface FAtiMA.Core.componentTypes.IAffectDerivationComponent
    • name

      public String name()
      Specified by:
      name in interface FAtiMA.Core.componentTypes.IComponent
    • reset

      public void reset()
      Specified by:
      reset in interface FAtiMA.Core.componentTypes.IComponent
    • update

      public void update(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e)
      Specified by:
      update in interface FAtiMA.Core.componentTypes.IComponent
    • update

      public void update(FAtiMA.Core.AgentModel am, long time)
      Specified by:
      update in interface FAtiMA.Core.componentTypes.IComponent