Class AbsPredicate

    • Constructor Detail

      • AbsPredicate

        public AbsPredicate​(String typeName)
        Construct an Abstract descriptor to hold a predicate of the proper type (e.g. FATHER_OF, WORKS_FOR...).
        Parameters:
        typeName - The name of the type of the predicate held by this abstract descriptor.
    • Method Detail

      • set

        public void set​(String name,
                        AbsObject value)
        Sets an attribute of the predicate held by this abstract descriptor.
        Overrides:
        set in class AbsPrimitiveSlotsHolder
        Parameters:
        name - The name of the attribute to be set.
        value - The new value of the attribute.
      • getAbsTerm

        public AbsTerm getAbsTerm​(String name)
        Gets the value (casted as an AbsTerm) of an attribute of the predicate held by this abstract descriptor. This method is here mainly for backward compatibility.
        Parameters:
        name - The name of the attribute.
        Returns:
        value The value of the attribute.
      • getJavaClass

        public static Class getJavaClass()
      • isAContentExpression

        public boolean isAContentExpression()
        Description copied from interface: AbsContentElement
        Return true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications).
        Specified by:
        isAContentExpression in interface AbsContentElement
        Returns:
        true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications), false otherwise
        See Also:
        AbsContentElement.isAContentExpression
      • setIsAContentExpression

        public void setIsAContentExpression​(boolean flag)
        Description copied from interface: AbsContentElement
        Set the isAContentExpression flag to the passed value. By default, if this method was not called, this value is intialized to false.
        Specified by:
        setIsAContentExpression in interface AbsContentElement
        Parameters:
        flag - true if this Abstract Content Element represents a ContentExpression of the SL Grammar (see also FIPA-SL specifications), false otherwise
      • isMetaFormula

        public final boolean isMetaFormula()
        Return true if this object represents a meta formula (symbol ??x) rather than a concrete formula. This method is currently used only by the semantics framework.
        Returns:
        true if this object represents a meta formula
        Since:
        JADE3.4
      • setIsMetaFormula

        public final void setIsMetaFormula​(boolean isMeta)
        Sets the value of isMetaFormula, where the default is false. This method is currently used only by the semantics framework.
        Since:
        JADE3.4