FAtiMA.Core.IIntegrityTester, FAtiMA.Core.wellFormedNames.IGroundable, java.io.Serializable, java.lang.Cloneablepublic class Action
extends java.lang.Object
implements FAtiMA.Core.IIntegrityTester, java.io.Serializable, FAtiMA.Core.wellFormedNames.IGroundable, java.lang.Cloneable
| Constructor | Description |
|---|---|
Action(FAtiMA.Core.wellFormedNames.Name name) |
Creates a new Action (Action Tendency)
|
| Modifier and Type | Method | Description |
|---|---|---|
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)
|
void |
CheckIntegrity(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 exception
|
java.lang.Object |
clone() |
|
FAtiMA.Core.emotionalState.BaseEmotion |
GetElicitingEmotion() |
Get's the Action Tendency's eliciting emotion
|
FAtiMA.Core.wellFormedNames.Name |
getName() |
Gets the Action's name
|
java.util.ArrayList<FAtiMA.Core.conditions.Condition> |
GetPreconditions() |
|
boolean |
isGrounded() |
|
void |
MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) |
|
void |
MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) |
|
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
|
void |
ReplaceUnboundVariables(int variableID) |
|
void |
SetElicitingEmotion(FAtiMA.Core.emotionalState.BaseEmotion emotion) |
Sets the emotion that elicits this action tendency.
|
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
|
java.lang.String |
toString() |
|
FAtiMA.Core.ValuedAction |
TriggerAction(FAtiMA.Core.AgentModel am,
java.util.Iterator<FAtiMA.Core.emotionalState.ActiveEmotion> emotionsIterator) |
public Action(FAtiMA.Core.wellFormedNames.Name name)
name - - the name of the actionpublic FAtiMA.Core.wellFormedNames.Name getName()
public FAtiMA.Core.emotionalState.BaseEmotion GetElicitingEmotion()
public java.util.ArrayList<FAtiMA.Core.conditions.Condition> GetPreconditions()
public void AddPreCondition(FAtiMA.Core.conditions.Condition cond)
cond - - the Condition to add as preconditionpublic void CheckIntegrity(FAtiMA.Core.IntegrityValidator val)
throws FAtiMA.Core.exceptions.UnknownSpeechActException
CheckIntegrity in interface FAtiMA.Core.IIntegrityTesterFAtiMA.Core.exceptions.UnknownSpeechActExceptionpublic void SetElicitingEmotion(FAtiMA.Core.emotionalState.BaseEmotion emotion)
emotion - - the emotion that will elicit this actionpublic void ReinforceAction(int value)
value - - the ammount to lower the minimum intensitypublic void SuppressAction(int value)
value - - the ammount used to increase the minimum intensitypublic FAtiMA.Core.ValuedAction TriggerAction(FAtiMA.Core.AgentModel am,
java.util.Iterator<FAtiMA.Core.emotionalState.ActiveEmotion> emotionsIterator)
public java.lang.String toString()
toString in class java.lang.Objectpublic void MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundablepublic void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundablepublic void ReplaceUnboundVariables(int variableID)
ReplaceUnboundVariables in interface FAtiMA.Core.wellFormedNames.IGroundablepublic boolean isGrounded()
isGrounded in interface FAtiMA.Core.wellFormedNames.IGroundablepublic java.lang.Object clone()
clone in class java.lang.Object