Class PropertyLesserEqual

All Implemented Interfaces:
IGroundable, Serializable, Cloneable

public class PropertyLesserEqual extends PropertyCondition
Test that compares if a property is smaller than a given value. Only works with numeric values.
Author:
Joao Dias
See Also:
  • Constructor Details

    • PropertyLesserEqual

      public PropertyLesserEqual(Name name, Name value, Symbol ToM)
      Creates a new PropertyTest of Type LesserEqual
      Parameters:
      name - - the PropertyTest's name
      value - - the PropertyTest's value
      ToM -
    • PropertyLesserEqual

      protected PropertyLesserEqual(PropertyLesserEqual pLE)
      Parameters:
      pLE -
  • Method Details

    • clone

      public Object clone()
      Clones this PropertyTest, returning an equal copy. If this clone is changed afterwards, the original object remains the same.
      Overrides:
      clone in class PropertyCondition
      Returns:
      The PropertyTest's copy.
    • CheckCondition

      public boolean CheckCondition(AgentModel am)
      Checks if the Property Condition is verified in the agent's Memory (KB + AM)
      Overrides:
      CheckCondition in class PropertyCondition
      Returns:
      true if the condition is verified, false otherwise
      See Also:
    • Print

      public void Print()
      Prints the PropertyTest to the Standard Output
      Overrides:
      Print in class PropertyCondition
    • toString

      public String toString()
      Converts the PropertyTest to a String
      Overrides:
      toString in class Object
      Returns:
      the Converted String