Package FAtiMA.OCCAffectDerivation
Class OCCAffectDerivationComponent
- java.lang.Object
-
- FAtiMA.OCCAffectDerivation.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
-
-
Field Summary
Fields Modifier and Type Field Description static intGOALCONFIRMEDstatic intGOALDISCONFIRMEDstatic intGOALUNCONFIRMEDstatic java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description OCCAffectDerivationComponent()
-
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 OCCBaseEmotionAppraiseGoalFailure(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 experiencingstatic OCCBaseEmotionAppraiseGoalFailureProbability(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e, float goalConduciveness, float prob)Appraises a Goal's likelihood of failurestatic OCCBaseEmotionAppraiseGoalSuccess(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 experiencingstatic OCCBaseEmotionAppraiseGoalSuccessProbability(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e, float goalConduciveness, float prob)Appraises a Goal's likelihood of succeedingFAtiMA.Core.Display.AgentDisplayPanelcreateDisplayPanel(FAtiMA.Core.AgentModel am)FAtiMA.Core.componentTypes.IComponentcreateModelOfOther()java.lang.String[]getComponentDependencies()voidinitialize(FAtiMA.Core.AgentModel am)voidinverseAffectDerivation(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.BaseEmotion em, FAtiMA.Core.emotionalState.AppraisalFrame af)java.lang.Stringname()voidreset()voidupdate(FAtiMA.Core.AgentModel am, long time)voidupdate(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e)
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
GOALCONFIRMED
public static final int GOALCONFIRMED
- See Also:
- Constant Field Values
-
GOALUNCONFIRMED
public static final int GOALUNCONFIRMED
- See Also:
- Constant Field Values
-
GOALDISCONFIRMED
public static final int GOALDISCONFIRMED
- See Also:
- Constant Field Values
-
-
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 feelsfearEmotion- - the emotion of Fear for not achieving the goal that the character feelsconduciveness-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 feelsfearEmotion- - the emotion of Fear for not achieving the goal that the character feelsconduciveness-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:
affectDerivationin interfaceFAtiMA.Core.componentTypes.IAffectDerivationComponent
-
createDisplayPanel
public FAtiMA.Core.Display.AgentDisplayPanel createDisplayPanel(FAtiMA.Core.AgentModel am)
- Specified by:
createDisplayPanelin interfaceFAtiMA.Core.componentTypes.IComponent
-
createModelOfOther
public FAtiMA.Core.componentTypes.IComponent createModelOfOther()
- Specified by:
createModelOfOtherin interfaceFAtiMA.Core.componentTypes.IModelOfOtherComponent
-
getComponentDependencies
public java.lang.String[] getComponentDependencies()
- Specified by:
getComponentDependenciesin interfaceFAtiMA.Core.componentTypes.IComponent
-
initialize
public void initialize(FAtiMA.Core.AgentModel am)
- Specified by:
initializein interfaceFAtiMA.Core.componentTypes.IComponent
-
inverseAffectDerivation
public void inverseAffectDerivation(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.BaseEmotion em, FAtiMA.Core.emotionalState.AppraisalFrame af)- Specified by:
inverseAffectDerivationin interfaceFAtiMA.Core.componentTypes.IAffectDerivationComponent
-
name
public java.lang.String name()
- Specified by:
namein interfaceFAtiMA.Core.componentTypes.IComponent
-
reset
public void reset()
- Specified by:
resetin interfaceFAtiMA.Core.componentTypes.IComponent
-
update
public void update(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e)- Specified by:
updatein interfaceFAtiMA.Core.componentTypes.IComponent
-
update
public void update(FAtiMA.Core.AgentModel am, long time)- Specified by:
updatein interfaceFAtiMA.Core.componentTypes.IComponent
-
-