Class LikeCondition

java.lang.Object
FAtiMA.Core.conditions.Condition
FAtiMA.socialRelations.LikeCondition
All Implemented Interfaces:
FAtiMA.Core.wellFormedNames.IGroundable, Serializable, Cloneable

public class LikeCondition extends FAtiMA.Core.conditions.Condition
Represents a Like Relation that needs to be fullfiled in order to trigger the condition. The xml should be defined as , for example, by default: . A target must be a character; The value must be an integer in the range [-10;10]; Operator can be one of the following < <= = >= > !=
Author:
nafonso
See Also:
  • Constructor Details

    • LikeCondition

      protected LikeCondition(FAtiMA.Core.wellFormedNames.Symbol subject, FAtiMA.Core.wellFormedNames.Symbol target, FAtiMA.Core.wellFormedNames.Symbol value, FAtiMA.socialRelations.LikeCondition.Operator op)
    • LikeCondition

      protected LikeCondition(LikeCondition lC)
  • Method Details

    • ParseSocialCondition

      public static LikeCondition ParseSocialCondition(Attributes attributes) throws FAtiMA.Core.exceptions.InvalidEmotionTypeException, FAtiMA.Core.exceptions.ContextParsingException
      Throws:
      FAtiMA.Core.exceptions.InvalidEmotionTypeException
      FAtiMA.Core.exceptions.ContextParsingException
    • clone

      public Object clone()
      Specified by:
      clone in class FAtiMA.Core.conditions.Condition
    • CheckCondition

      public boolean CheckCondition(FAtiMA.Core.AgentModel am)
      Specified by:
      CheckCondition in class FAtiMA.Core.conditions.Condition
    • toString

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

      public FAtiMA.Core.wellFormedNames.Name GetValue()
      Specified by:
      GetValue in class FAtiMA.Core.conditions.Condition
    • GetValidBindings

      public ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am)
      Overrides:
      GetValidBindings in class FAtiMA.Core.conditions.Condition
    • MakeGround

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

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

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

      public boolean isGrounded()
      Specified by:
      isGrounded in interface FAtiMA.Core.wellFormedNames.IGroundable
      Overrides:
      isGrounded in class FAtiMA.Core.conditions.Condition
    • GetValueBindings

      protected ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am)
      Specified by:
      GetValueBindings in class FAtiMA.Core.conditions.Condition