public abstract class AbstractDataAtomImpl<P extends AtomPredicate> extends Object implements DataAtom<P>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataAtomImpl(P predicate,
com.google.common.collect.ImmutableList<? extends VariableOrGroundTerm> variableOrGroundTerms) |
protected |
AbstractDataAtomImpl(P predicate,
VariableOrGroundTerm... variableOrGroundTerms) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsGroundTerms() |
boolean |
equals(Object other)
TODO: improve
|
com.google.common.collect.ImmutableList<? extends VariableOrGroundTerm> |
getArguments() |
int |
getArity() |
int |
getEffectiveArity()
Effective arity (number of sub-terms).
|
P |
getPredicate() |
VariableOrGroundTerm |
getTerm(int index) |
com.google.common.collect.ImmutableSet<Variable> |
getVariables() |
protected static boolean |
hasDuplicates(DataAtom atom) |
int |
hashCode() |
String |
toString()
Cached toString()
|
protected AbstractDataAtomImpl(P predicate, com.google.common.collect.ImmutableList<? extends VariableOrGroundTerm> variableOrGroundTerms)
protected AbstractDataAtomImpl(P predicate, VariableOrGroundTerm... variableOrGroundTerms)
public P getPredicate()
getPredicate in interface DataAtom<P extends AtomPredicate>public int getArity()
getArity in interface DataAtom<P extends AtomPredicate>public int getEffectiveArity()
DataAtomgetEffectiveArity in interface DataAtom<P extends AtomPredicate>public com.google.common.collect.ImmutableList<? extends VariableOrGroundTerm> getArguments()
getArguments in interface DataAtom<P extends AtomPredicate>public boolean containsGroundTerms()
containsGroundTerms in interface DataAtom<P extends AtomPredicate>public VariableOrGroundTerm getTerm(int index)
getTerm in interface DataAtom<P extends AtomPredicate>public com.google.common.collect.ImmutableSet<Variable> getVariables()
getVariables in interface DataAtom<P extends AtomPredicate>protected static boolean hasDuplicates(DataAtom atom)
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.