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,
Query par) |
| Modifier and Type | Method and Description |
|---|---|
abstract Atomic |
clone() |
boolean |
containsVar(VarName name) |
PatternAdmin |
getCombinedPattern() |
Query |
getParentQuery() |
PatternAdmin |
getPattern() |
Set<VarName> |
getSelectedNames() |
Map<VarName,VarName> |
getUnifiers(Atomic parentAtom)
get unifiers by comparing this atom with parent
|
VarName |
getVarName() |
Set<VarName> |
getVarNames() |
boolean |
isUserDefinedName() |
boolean |
isValueUserDefinedName() |
void |
resetNames() |
void |
setParentQuery(Query q) |
String |
toString() |
void |
unify(Map<VarName,VarName> unifiers)
perform unification on the atom by applying unifiers
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequivalenceHashCode, isAtom, isEquivalent, isPredicate, isRecursive, isRuleResolvable, isSelectableprotected VarName varName
protected PatternAdmin atomPattern
protected AtomBase(AtomBase a)
public abstract Atomic clone()
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 void resetNames()
public boolean isValueUserDefinedName()
public PatternAdmin getPattern()
getPattern in interface Atomicpublic PatternAdmin getCombinedPattern()
getCombinedPattern in interface Atomicpublic Query getParentQuery()
getParentQuery in interface Atomicpublic void setParentQuery(Query q)
setParentQuery in interface Atomicq - query this atom is supposed to belong topublic void unify(Map<VarName,VarName> unifiers)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.