public abstract class AtomBase extends Object implements Atomic
Base atom implementation providing basic functionalities.
| Modifier and Type | Field and Description |
|---|---|
protected PatternAdmin |
atomPattern |
protected VarName |
varName |
| Modifier | Constructor and Description |
|---|---|
protected |
AtomBase(AtomBase a) |
protected |
AtomBase(VarAdmin pattern,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVar(VarName name) |
abstract Atomic |
copy() |
PatternAdmin |
getCombinedPattern() |
ReasonerQuery |
getParentQuery() |
PatternAdmin |
getPattern() |
Unifier |
getUnifier(Atomic parentAtom)
get unifiers by comparing this atom with parent
|
VarName |
getVarName() |
Set<VarName> |
getVarNames() |
GraknGraph |
graph() |
boolean |
isUserDefinedName() |
void |
setParentQuery(ReasonerQuery q) |
String |
toString() |
void |
unify(Unifier unifier)
perform unification on the atom by applying unifiers
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequivalenceHashCode, isAtom, isEquivalent, isPredicate, isRecursive, isRuleResolvable, isSelectableprotected VarName varName
protected PatternAdmin atomPattern
protected AtomBase(VarAdmin pattern, ReasonerQuery par)
protected AtomBase(AtomBase a)
public boolean containsVar(VarName name)
containsVar in interface Atomicpublic boolean isUserDefinedName()
isUserDefinedName in interface Atomicpublic VarName getVarName()
getVarName in interface Atomicpublic Set<VarName> getVarNames()
getVarNames in interface Atomicpublic PatternAdmin getPattern()
getPattern in interface Atomicpublic PatternAdmin getCombinedPattern()
getCombinedPattern in interface Atomicpublic ReasonerQuery getParentQuery()
getParentQuery in interface Atomicpublic void setParentQuery(ReasonerQuery q)
setParentQuery in interface Atomicq - query this atom is supposed to belong topublic GraknGraph graph()
public void unify(Unifier unifier)
public Unifier getUnifier(Atomic parentAtom)
getUnifier in interface AtomicparentAtom - atom defining variable namesCopyright © 2017 Grakn Labs Ltd. All rights reserved.