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,Serializable
public class ReactiveComponent
extends Object
implements Serializable, FAtiMA.Core.componentTypes.IComponent, FAtiMA.Core.componentTypes.IBehaviourComponent, FAtiMA.Core.componentTypes.IModelOfOtherComponent, FAtiMA.Core.componentTypes.IAppraisalDerivationComponent
Implements FearNot's Agent Reactive Layer (appraisal and coping processes)
- Author:
- Joao Dias
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionSelectedForExecution(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.IComponentvoidEnforceCopingStrategy(String coping) Evaluate(FAtiMA.Core.AgentModel am, FAtiMA.Core.sensorEffector.Event event) Gets the agent's action tendenciesString[]Gets the agent's emotional reactionsvoidinitialize(FAtiMA.Core.AgentModel am) voidinverseAppraisal(FAtiMA.Core.AgentModel am, FAtiMA.Core.emotionalState.AppraisalFrame af) name()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 Details
-
IGNOREDURATION
public static final long IGNOREDURATION- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
ReactiveComponent
public ReactiveComponent()Creates a new ReactiveProcess
-
-
Method Details
-
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
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
-
Evaluate
-
getActionTendencies
Gets the agent's action tendencies- Returns:
- the agent's ActionTendencies
-
getComponentDependencies
- Specified by:
getComponentDependenciesin interfaceFAtiMA.Core.componentTypes.IComponent
-
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
- 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
-