public interface Atomic extends Cloneable
| Modifier and Type | Method and Description |
|---|---|
Atomic |
clone() |
default boolean |
containsVar(String name) |
int |
equivalenceHashCode() |
Query |
getParentQuery() |
PatternAdmin |
getPattern() |
Map<String,String> |
getUnifiers(Atomic parentAtom) |
String |
getVarName() |
Set<String> |
getVarNames() |
default boolean |
isAtom() |
boolean |
isEquivalent(Object obj) |
default boolean |
isPredicate() |
default boolean |
isRecursive() |
default boolean |
isRuleResolvable() |
default boolean |
isSelectable() |
default boolean |
isUserDefinedName() |
void |
setParentQuery(Query q) |
void |
unify(Map<String,String> unifiers)
change each variable occurrence according to provided mappings (apply unifiers {[from, to]_i})
if capture occurs it is marked with a "capture->
|
void |
unify(String from,
String to)
change each variable occurrence in the atom (apply unifier [from/to])
if capture occurs it is marked with a "capture->
|
Atomic clone()
default boolean isAtom()
default boolean isPredicate()
boolean isEquivalent(Object obj)
int equivalenceHashCode()
default boolean isUserDefinedName()
default boolean isRuleResolvable()
default boolean isSelectable()
default boolean isRecursive()
default boolean containsVar(String name)
name - variable namePatternAdmin getPattern()
Query getParentQuery()
void setParentQuery(Query q)
q - query this atom is supposed to belong tovoid unify(String from, String to)
from - variable name to be changedto - new variable namevoid unify(Map<String,String> unifiers)
unifiers - contain variable mappings to be appliedString getVarName()
Copyright © 2016 Grakn Labs Ltd. All rights reserved.