Package FAtiMA.ReactiveComponent
Class ReactiveComponent
- java.lang.Object
-
- FAtiMA.ReactiveComponent.ReactiveComponent
-
- All Implemented Interfaces:
FAtiMA.Core.componentTypes.IAppraisalDerivationComponent,FAtiMA.Core.componentTypes.IBehaviourComponent,FAtiMA.Core.componentTypes.IComponent,FAtiMA.Core.componentTypes.IModelOfOtherComponent,java.io.Serializable
public class ReactiveComponent extends java.lang.Object implements java.io.Serializable, FAtiMA.Core.componentTypes.IComponent, FAtiMA.Core.componentTypes.IBehaviourComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent, FAtiMA.Core.componentTypes.IAppraisalDerivationComponentImplements FearNot's Agent Reactive Layer (appraisal and coping processes)- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longIGNOREDURATIONstatic java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description ReactiveComponent()Creates a new ReactiveProcess
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionSelectedForExecution(FAtiMA.Core.ValuedAction action)FAtiMA.Core.ValuedActionactionSelection(FAtiMA.Core.AgentModel am)Reactive Coping.voidAddEmotionalReaction(Reaction emotionalReaction)Adds an emotional Reaction to the agent's emotional reactionsvoidappraisal(FAtiMA.Core.AgentModel ag, FAtiMA.Core.sensorEffector.Event event, FAtiMA.Core.emotionalState.AppraisalFrame af)Reactive appraisal.FAtiMA.Core.Display.AgentDisplayPanelcreateDisplayPanel(FAtiMA.Core.AgentModel am)FAtiMA.Core.componentTypes.IComponentcreateModelOfOther()voidEnforceCopingStrategy(java.lang.String coping)ReactionEvaluate(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event event)ActionTendenciesgetActionTendencies()Gets the agent's action tendenciesjava.lang.String[]getComponentDependencies()EmotionalReactionTreeNodegetEmotionalReactions()Gets the agent's emotional reactionsvoidinitialize(FAtiMA.Core.AgentModel am)voidinverseAppraisal(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.AppraisalFrame af)java.lang.Stringname()FAtiMA.Core.emotionalState.AppraisalFramereappraisal(FAtiMA.Core.AgentModel am)voidreset()Resets the reactive layer, clearing all received events that were not appraised yetvoidshutDown()prepares the reactive layer for a shutdownvoidupdate(FAtiMA.Core.AgentModel am, long time)voidupdate(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event e)
-
-
-
Field Detail
-
IGNOREDURATION
public static final long IGNOREDURATION
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
actionSelectedForExecution
public void actionSelectedForExecution(FAtiMA.Core.ValuedAction action)
- Specified by:
actionSelectedForExecutionin interfaceFAtiMA.Core.componentTypes.IBehaviourComponent
-
actionSelection
public FAtiMA.Core.ValuedAction actionSelection(FAtiMA.Core.AgentModel am)
Reactive Coping. Consists in selecting the most relevant action (reaction) according to the emotional state.- Specified by:
actionSelectionin interfaceFAtiMA.Core.componentTypes.IBehaviourComponent
-
AddEmotionalReaction
public void AddEmotionalReaction(Reaction emotionalReaction)
Adds an emotional Reaction to the agent's emotional reactions- Parameters:
emotionalReaction- - the Reaction to add
-
appraisal
public void appraisal(FAtiMA.Core.AgentModel ag, FAtiMA.Core.sensorEffector.Event event, FAtiMA.Core.emotionalState.AppraisalFrame af)Reactive appraisal. Appraises received events according to the emotional reaction rules- Specified by:
appraisalin interfaceFAtiMA.Core.componentTypes.IAppraisalDerivationComponent
-
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
-
EnforceCopingStrategy
public void EnforceCopingStrategy(java.lang.String coping)
-
Evaluate
public Reaction Evaluate(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event event)
-
getActionTendencies
public ActionTendencies getActionTendencies()
Gets the agent's action tendencies- Returns:
- the agent's ActionTendencies
-
getComponentDependencies
public java.lang.String[] getComponentDependencies()
- Specified by:
getComponentDependenciesin interfaceFAtiMA.Core.componentTypes.IComponent
-
getEmotionalReactions
public EmotionalReactionTreeNode getEmotionalReactions()
Gets the agent's emotional reactions- Returns:
- the root EmotionalReactionTreeNode that stores the emotional reaction rules
-
initialize
public void initialize(FAtiMA.Core.AgentModel am)
- Specified by:
initializein interfaceFAtiMA.Core.componentTypes.IComponent
-
inverseAppraisal
public void inverseAppraisal(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.AppraisalFrame af)- Specified by:
inverseAppraisalin interfaceFAtiMA.Core.componentTypes.IAppraisalDerivationComponent
-
name
public java.lang.String name()
- Specified by:
namein interfaceFAtiMA.Core.componentTypes.IComponent
-
reappraisal
public FAtiMA.Core.emotionalState.AppraisalFrame reappraisal(FAtiMA.Core.AgentModel am)
- Specified by:
reappraisalin interfaceFAtiMA.Core.componentTypes.IAppraisalDerivationComponent
-
reset
public void reset()
Resets the reactive layer, clearing all received events that were not appraised yet- Specified by:
resetin interfaceFAtiMA.Core.componentTypes.IComponent
-
shutDown
public void shutDown()
prepares the reactive layer for a shutdown
-
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
-
-