Class RuleAtomImpl<P>

  • Type Parameters:
    P - is a predicate
    All Implemented Interfaces:
    RuleAtom
    Direct Known Subclasses:
    BinaryAtom, BuiltInAtom, UnaryAtom

    public abstract class RuleAtomImpl<P>
    extends java.lang.Object
    implements RuleAtom

    Title: Rule Atom Implementation

    Copyright: Copyright (c) 2007

    Company: Clark & Parsia, LLC.

    Author:
    Ron Alford
    • Constructor Detail

      • RuleAtomImpl

        public RuleAtomImpl​(P predicate)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAllArguments

        public abstract java.util.List<? extends AtomObject> getAllArguments()
        Specified by:
        getAllArguments in interface RuleAtom
        Returns:
        all arguments (constants and variables) to the rule atom.
      • getPredicate

        public P getPredicate()
        Specified by:
        getPredicate in interface RuleAtom
        Returns:
        the predicate for the rule atom. The type of this predicate will depend on the implementation of this interface. Use the RuleAtomVisitor for type safety.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object