public abstract class BinaryBase extends Atom
Base implementationfor binary atoms of the type ($varName, $valueVariable), where value variable references predicates.
atomPattern, varName| Modifier | Constructor and Description |
|---|---|
protected |
BinaryBase(BinaryBase a) |
protected |
BinaryBase(VarAdmin pattern,
Query par) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected abstract VarName |
extractValueVariableName(VarAdmin var) |
Set<Predicate> |
getIdPredicates() |
Set<Atom> |
getLinkedAtoms() |
Set<Predicate> |
getPredicates() |
Set<VarName> |
getSelectedNames() |
Map<VarName,VarName> |
getUnifiers(Atomic parentAtom)
get unifiers by comparing this atom with parent
|
Set<Predicate> |
getValuePredicates() |
VarName |
getValueVariable() |
Set<VarName> |
getVarNames() |
int |
hashCode() |
boolean |
isBinary() |
boolean |
isEquivalent(Object obj) |
protected boolean |
isRuleApplicable(InferenceRule child) |
protected abstract boolean |
predicatesEquivalent(BinaryBase atom) |
boolean |
requiresMaterialisation() |
protected void |
setValueVariable(VarName var) |
void |
unify(Map<VarName,VarName> unifiers)
perform unification on the atom by applying unifiers
|
getApplicableRules, getRoleVarTypeMap, getType, getTypeConstraints, getTypeId, getVarTypeRoleMap, inferTypes, isAtom, isRecursive, isRelation, isResource, isRuleResolvable, isType, rewriteclone, containsVar, getCombinedPattern, getParentQuery, getPattern, getVarName, isUserDefinedName, isValueUserDefinedName, resetNames, setParentQuery, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitequivalenceHashCode, isPredicate, isSelectableprotected BinaryBase(BinaryBase a)
protected abstract boolean predicatesEquivalent(BinaryBase atom)
public VarName getValueVariable()
getValueVariable in class Atomprotected void setValueVariable(VarName var)
protected boolean isRuleApplicable(InferenceRule child)
isRuleApplicable in class Atompublic boolean requiresMaterialisation()
requiresMaterialisation in class Atompublic boolean isEquivalent(Object obj)
public Set<Predicate> getIdPredicates()
getIdPredicates in class Atompublic Set<Predicate> getValuePredicates()
getValuePredicates in class Atompublic Set<Predicate> getPredicates()
getPredicates in class Atompublic Set<Atom> getLinkedAtoms()
public Set<VarName> getVarNames()
getVarNames in interface AtomicgetVarNames in class AtomBasepublic Set<VarName> getSelectedNames()
getSelectedNames in class AtomBasepublic void unify(Map<VarName,VarName> unifiers)
AtomBasepublic Map<VarName,VarName> getUnifiers(Atomic parentAtom)
AtomBasegetUnifiers in interface AtomicgetUnifiers in class AtomBaseparentAtom - atom defining variable namesCopyright © 2017 Grakn Labs Ltd. All rights reserved.