public abstract class Binary extends BinaryBase
Base implementation for binary atoms with single predicate.
atomPattern, varName| Modifier | Constructor and Description |
|---|---|
protected |
Binary(Binary a) |
protected |
Binary(VarAdmin pattern,
IdPredicate p,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
int |
equivalenceHashCode() |
protected abstract ConceptId |
extractTypeId() |
PatternAdmin |
getCombinedPattern() |
IdPredicate |
getPredicate() |
protected boolean |
predicatesEquivalent(BinaryBase atom) |
void |
setParentQuery(ReasonerQuery q) |
protected void |
setPredicate(IdPredicate p) |
void |
unify(Unifier unifier)
perform unification on the atom by applying unifiers
|
equals, extractValueVariableName, getLinkedAtoms, getUnifier, getValueVariable, getVarNames, hashCode, isBinary, isEquivalent, isRuleApplicable, requiresMaterialisation, setValueVariablegetApplicableRules, getIdPredicates, getMappedTypeConstraints, getNonSelectableConstraints, getPermutationUnifiers, getPredicates, getRoleVarTypeMap, getType, getTypeConstraints, getTypeId, getUnmappedIdPredicates, getUnmappedTypeConstraints, getValuePredicates, hasSubstitution, inferTypes, isAtom, isRecursive, isRelation, isResource, isRuleResolvable, isType, rewriteToUserDefined, rewriteToUserDefinedWithUnifierscontainsVar, copy, getParentQuery, getPattern, getVarName, graph, isUserDefinedName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisPredicate, isSelectableprotected Binary(VarAdmin pattern, IdPredicate p, ReasonerQuery par)
protected Binary(Binary a)
protected abstract ConceptId extractTypeId()
public PatternAdmin getCombinedPattern()
getCombinedPattern in interface AtomicgetCombinedPattern in class AtomBasepublic void setParentQuery(ReasonerQuery q)
setParentQuery in interface AtomicsetParentQuery in class AtomBaseq - query this atom is supposed to belong topublic IdPredicate getPredicate()
protected void setPredicate(IdPredicate p)
protected boolean predicatesEquivalent(BinaryBase atom)
predicatesEquivalent in class BinaryBasepublic int equivalenceHashCode()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.