Package openllet.core.rules.model
Class RuleAtomImpl<P>
- java.lang.Object
-
- openllet.core.rules.model.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 Summary
Constructors Constructor Description RuleAtomImpl(P predicate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaccept(RuleAtomVisitor visitor)booleanequals(java.lang.Object other)abstract java.util.List<? extends AtomObject>getAllArguments()PgetPredicate()inthashCode()
-
-
-
Constructor Detail
-
RuleAtomImpl
public RuleAtomImpl(P predicate)
-
-
Method Detail
-
accept
public abstract void accept(RuleAtomVisitor visitor)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAllArguments
public abstract java.util.List<? extends AtomObject> getAllArguments()
- Specified by:
getAllArgumentsin interfaceRuleAtom- Returns:
- all arguments (constants and variables) to the rule atom.
-
getPredicate
public P getPredicate()
- Specified by:
getPredicatein interfaceRuleAtom- 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:
hashCodein classjava.lang.Object
-
-