Class OCCAffectDerivationComponent

  • All Implemented Interfaces:
    FAtiMA.Core.componentTypes.IAffectDerivationComponent, FAtiMA.Core.componentTypes.IComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent, java.io.Serializable

    public class OCCAffectDerivationComponent
    extends java.lang.Object
    implements java.io.Serializable, FAtiMA.Core.componentTypes.IAffectDerivationComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ArrayList<FAtiMA.Core.emotionalState.BaseEmotion> affectDerivation​(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.AppraisalFrame af)  
      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
      static OCCBaseEmotion AppraiseGoalFailureProbability​(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e, float goalConduciveness, float prob)
      Appraises a Goal's likelihood of failure
      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
      static OCCBaseEmotion AppraiseGoalSuccessProbability​(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e, float goalConduciveness, float prob)
      Appraises a Goal's likelihood of succeeding
      FAtiMA.Core.Display.AgentDisplayPanel createDisplayPanel​(FAtiMA.Core.AgentModel am)  
      FAtiMA.Core.componentTypes.IComponent createModelOfOther()  
      java.lang.String[] getComponentDependencies()  
      void initialize​(FAtiMA.Core.AgentModel am)  
      void inverseAffectDerivation​(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.BaseEmotion em, FAtiMA.Core.emotionalState.AppraisalFrame af)  
      java.lang.String name()  
      void reset()  
      void update​(FAtiMA.Core.AgentModel am, long time)  
      void update​(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OCCAffectDerivationComponent

        public OCCAffectDerivationComponent()
    • Method Detail

      • 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 java.util.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 java.lang.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 java.lang.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