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 void
accept(RuleAtomVisitor visitor)
boolean
equals(java.lang.Object other)
abstract java.util.List<? extends AtomObject>
getAllArguments()
P
getPredicate()
int
hashCode()
-
-
-
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:
equals
in classjava.lang.Object
-
getAllArguments
public abstract java.util.List<? extends AtomObject> getAllArguments()
- Specified by:
getAllArguments
in interfaceRuleAtom
- Returns:
- all arguments (constants and variables) to the rule atom.
-
getPredicate
public P getPredicate()
- Specified by:
getPredicate
in 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:
hashCode
in classjava.lang.Object
-
-