Class LikeCondition

  • All Implemented Interfaces:
    FAtiMA.Core.wellFormedNames.IGroundable, java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LikeCondition​(FAtiMA.Core.wellFormedNames.Symbol subject, FAtiMA.Core.wellFormedNames.Symbol target, FAtiMA.Core.wellFormedNames.Symbol value, FAtiMA.socialRelations.LikeCondition.Operator op)  
      protected LikeCondition​(LikeCondition lC)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean CheckCondition​(FAtiMA.Core.AgentModel am)  
      java.lang.Object clone()  
      java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings​(FAtiMA.Core.AgentModel am)  
      FAtiMA.Core.wellFormedNames.Name GetValue()  
      protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings​(FAtiMA.Core.AgentModel am)  
      boolean isGrounded()  
      void MakeGround​(FAtiMA.Core.wellFormedNames.Substitution subst)  
      void MakeGround​(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)  
      static LikeCondition ParseSocialCondition​(org.xml.sax.Attributes attributes)  
      void ReplaceUnboundVariables​(int variableID)  
      java.lang.String toString()  
      • Methods inherited from class FAtiMA.Core.conditions.Condition

        CheckActivation, getName, getToM, hasChangedVerifiability, isVerifiable, setName, setToM, setVerifiable
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LikeCondition

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

      • ParseSocialCondition

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

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • GetValue

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

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

        public void MakeGround​(java.util.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 java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings​(FAtiMA.Core.AgentModel am)
        Specified by:
        GetValueBindings in class FAtiMA.Core.conditions.Condition