public abstract class BinaryBase extends Atom
Base implementation for binary atoms of the type ($varName, $valueVariable), where value variable references predicates.
atomPattern, varName| Modifier | Constructor and Description |
|---|---|
protected |
BinaryBase(BinaryBase a) |
protected |
BinaryBase(VarPatternAdmin pattern,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected abstract Var |
extractValueVariableName(VarPatternAdmin var) |
Set<Atom> |
getLinkedAtoms() |
Unifier |
getUnifier(Atomic parentAtom)
find unifier with parent atom
|
Var |
getValueVariable() |
Set<Var> |
getVarNames() |
protected abstract boolean |
hasEquivalentPredicatesWith(BinaryBase atom) |
int |
hashCode() |
boolean |
isBinary() |
boolean |
isEquivalent(Object obj) |
protected void |
setValueVariable(Var var) |
Atomic |
unify(Unifier unifier)
perform unification on the atom by applying unifiers
|
getApplicableRules, getIdPredicates, getMappedTypeConstraints, getNonSelectableConstraints, getPartialSubstitutions, getPermutationUnifiers, getPredicates, getRoleVarTypeMap, getType, getTypeConstraints, getTypeId, getUnmappedIdPredicates, getUnmappedTypeConstraints, getValuePredicates, inferTypes, isAllowedToFormRuleHead, isAtom, isRecursive, isRelation, isResource, isRuleApplicable, isRuleResolvable, isType, requiresMaterialisation, resolutionPriority, rewriteToUserDefinedcontainsVar, copy, getCombinedPattern, getParentQuery, getPattern, getVarName, graph, isUserDefinedName, setParentQuery, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequivalenceHashCode, isPredicate, isSelectableprotected BinaryBase(VarPatternAdmin pattern, ReasonerQuery par)
protected BinaryBase(BinaryBase a)
protected abstract Var extractValueVariableName(VarPatternAdmin var)
protected abstract boolean hasEquivalentPredicatesWith(BinaryBase atom)
public Var getValueVariable()
getValueVariable in class Atomprotected void setValueVariable(Var var)
public boolean isEquivalent(Object obj)
public Set<Atom> getLinkedAtoms()
public Set<Var> getVarNames()
getVarNames in interface AtomicgetVarNames in class AtomicBasepublic Atomic unify(Unifier unifier)
AtomicBaseunify in interface Atomicunify in class AtomicBaseunifier - contain variable mappings to be appliedpublic Unifier getUnifier(Atomic parentAtom)
AtomgetUnifier in class AtomparentAtom - atom to be unified withCopyright © 2017 Grakn Labs Ltd. All rights reserved.