Package FAtiMA.ReactiveComponent
Class Action
java.lang.Object
FAtiMA.ReactiveComponent.Action
- All Implemented Interfaces:
FAtiMA.Core.IIntegrityTester,FAtiMA.Core.wellFormedNames.IGroundable,Serializable,Cloneable
public class Action
extends Object
implements FAtiMA.Core.IIntegrityTester, Serializable, FAtiMA.Core.wellFormedNames.IGroundable, Cloneable
Represents a Reactive Action Tendency
- Author:
- Joao Dias
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAction(FAtiMA.Core.wellFormedNames.Name name) Creates a new Action (Action Tendency) -
Method Summary
Modifier and TypeMethodDescriptionvoidAddPreCondition(FAtiMA.Core.conditions.Condition cond) Adds a precondition to the ActionTendency (that must be verified in order for the action to be executed)voidCheckIntegrity(FAtiMA.Core.IntegrityValidator val) Checks the integrity of the Action Tendency, it checks if the action references a SpeechAct that is not defined, in that case it throws an exceptionclone()FAtiMA.Core.emotionalState.BaseEmotionGet's the Action Tendency's eliciting emotionFAtiMA.Core.wellFormedNames.NamegetName()Gets the Action's nameArrayList<FAtiMA.Core.conditions.Condition>booleanvoidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) voidMakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) voidReinforceAction(int value) Reinforces the likelihood of an action tendency to be activated, by lowering the minimum emotional intensity necessary to activate the AT by a given valuevoidReplaceUnboundVariables(int variableID) voidSetElicitingEmotion(FAtiMA.Core.emotionalState.BaseEmotion emotion) Sets the emotion that elicits this action tendency.voidSuppressAction(int value) Suppresses the likelihood of an action tendency to be activated, by increasing the minimum emotional intensity necessary to activate the AT by a given valuetoString()FAtiMA.Core.ValuedActionTriggerAction(FAtiMA.Core.AgentModel am, Iterator<FAtiMA.Core.emotionalState.ActiveEmotion> emotionsIterator)
-
Constructor Details
-
Action
public Action(FAtiMA.Core.wellFormedNames.Name name) Creates a new Action (Action Tendency)- Parameters:
name- - the name of the action
-
-
Method Details
-
getName
public FAtiMA.Core.wellFormedNames.Name getName()Gets the Action's name- Returns:
- - the Name of the ActionTendency
-
GetElicitingEmotion
public FAtiMA.Core.emotionalState.BaseEmotion GetElicitingEmotion()Get's the Action Tendency's eliciting emotion- Returns:
- the BaseEmotion that may trigger the Action Tendency
-
GetPreconditions
-
AddPreCondition
public void AddPreCondition(FAtiMA.Core.conditions.Condition cond) Adds a precondition to the ActionTendency (that must be verified in order for the action to be executed)- Parameters:
cond- - the Condition to add as precondition
-
CheckIntegrity
public void CheckIntegrity(FAtiMA.Core.IntegrityValidator val) throws FAtiMA.Core.exceptions.UnknownSpeechActException Checks the integrity of the Action Tendency, it checks if the action references a SpeechAct that is not defined, in that case it throws an exception- Specified by:
CheckIntegrityin interfaceFAtiMA.Core.IIntegrityTester- Throws:
FAtiMA.Core.exceptions.UnknownSpeechActException
-
SetElicitingEmotion
public void SetElicitingEmotion(FAtiMA.Core.emotionalState.BaseEmotion emotion) Sets the emotion that elicits this action tendency. For example, the victim's action tendency to cry is elicited by a strong distress emotion- Parameters:
emotion- - the emotion that will elicit this action
-
ReinforceAction
public void ReinforceAction(int value) Reinforces the likelihood of an action tendency to be activated, by lowering the minimum emotional intensity necessary to activate the AT by a given value- Parameters:
value- - the ammount to lower the minimum intensity
-
SuppressAction
public void SuppressAction(int value) Suppresses the likelihood of an action tendency to be activated, by increasing the minimum emotional intensity necessary to activate the AT by a given value- Parameters:
value- - the ammount used to increase the minimum intensity
-
TriggerAction
public FAtiMA.Core.ValuedAction TriggerAction(FAtiMA.Core.AgentModel am, Iterator<FAtiMA.Core.emotionalState.ActiveEmotion> emotionsIterator) -
toString
-
MakeGround
- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable
-
MakeGround
public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) - Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable
-
ReplaceUnboundVariables
public void ReplaceUnboundVariables(int variableID) - Specified by:
ReplaceUnboundVariablesin interfaceFAtiMA.Core.wellFormedNames.IGroundable
-
isGrounded
public boolean isGrounded()- Specified by:
isGroundedin interfaceFAtiMA.Core.wellFormedNames.IGroundable
-
clone
-