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() |
Map<VarName,VarName> |
getUnifiers(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(Map<VarName,VarName> unifiers)
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 Atomicname - variable namepublic 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(Map<VarName,VarName> unifiers)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.