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,Serializable
public class OCCAffectDerivationComponent
extends Object
implements Serializable, FAtiMA.Core.componentTypes.IAffectDerivationComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArrayList<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.IComponentString[]voidinitialize(FAtiMA.Core.AgentModel am) voidinverseAffectDerivation(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.BaseEmotion em, FAtiMA.Core.emotionalState.AppraisalFrame af) name()voidreset()voidupdate(FAtiMA.Core.AgentModel am, long time) voidupdate(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e)
-
Field Details
-
NAME
- See Also:
-
GOALCONFIRMED
public static final int GOALCONFIRMED- See Also:
-
GOALUNCONFIRMED
public static final int GOALUNCONFIRMED- See Also:
-
GOALDISCONFIRMED
public static final int GOALDISCONFIRMED- See Also:
-
-
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 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 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
- 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
- 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
-