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

    Constructors
    Constructor
    Description
    Action(FAtiMA.Core.wellFormedNames.Name name)
    Creates a new Action (Action Tendency)
  • Method Summary

    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
     
    FAtiMA.Core.emotionalState.BaseEmotion
    Get's the Action Tendency's eliciting emotion
    FAtiMA.Core.wellFormedNames.Name
    Gets the Action's name
    ArrayList<FAtiMA.Core.conditions.Condition>
     
    boolean
     
    void
    MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
     
    void
    MakeGround(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
     
    FAtiMA.Core.ValuedAction
    TriggerAction(FAtiMA.Core.AgentModel am, Iterator<FAtiMA.Core.emotionalState.ActiveEmotion> emotionsIterator)
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public ArrayList<FAtiMA.Core.conditions.Condition> 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:
      CheckIntegrity in interface FAtiMA.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

      public String toString()
      Overrides:
      toString in class Object
    • MakeGround

      public void MakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
      Specified by:
      MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundable
    • MakeGround

      public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
      Specified by:
      MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundable
    • ReplaceUnboundVariables

      public void ReplaceUnboundVariables(int variableID)
      Specified by:
      ReplaceUnboundVariables in interface FAtiMA.Core.wellFormedNames.IGroundable
    • isGrounded

      public boolean isGrounded()
      Specified by:
      isGrounded in interface FAtiMA.Core.wellFormedNames.IGroundable
    • clone

      public Object clone()
      Overrides:
      clone in class Object