Class AbsObjectImpl

    • Constructor Detail

      • AbsObjectImpl

        protected AbsObjectImpl​(String typeName)
        Construct an Abstract descriptor to hold an object of the proper type.
        Parameters:
        typeName - The name of the type of the object held by this abstract descriptor.
    • Method Detail

      • set

        protected void set​(String name,
                           AbsObject value)
        Sets an attribute of the object held by this abstract descriptor.
        Parameters:
        name - The name of the attribute to be set.
        value - The new value of the attribute. If value is null the current mapping with name (if any) is removed.
      • getAbsObject

        protected AbsObject getAbsObject​(int index)
        This method enables all order-based getter methods in AbsPredicate
      • getValues

        protected AbsObject[] getValues()
        This method enables the omonimous method in AbsPredicate
      • isGrounded

        public boolean isGrounded()
        Tests if the object is grounded, i.e., if no one of its attributes is associated with a variable
        Specified by:
        isGrounded in interface AbsObject
        Returns:
        true if the object is grounded.
        See Also:
        AbsObject.isGrounded()
      • toString

        public String toString()
        This method is here just for debugging. Notice that it is highly innefficient. The method StringCodec.encode() should be used instead.
        Overrides:
        toString in class Object
      • equals

        public boolean equals​(Object obj)
        Returns true if the attribute is equal to this abstract descriptor, based on the contents of both descriptors.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Returns an integer hashcode calculated from the contents of this abstract descriptor
        Overrides:
        hashCode in class Object