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(VarPatternAdmin pattern,
IdPredicate p,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
int |
equivalenceHashCode() |
protected abstract ConceptId |
extractTypeId() |
PatternAdmin |
getCombinedPattern() |
IdPredicate |
getPredicate() |
protected boolean |
hasEquivalentPredicatesWith(BinaryBase atom) |
void |
setParentQuery(ReasonerQuery q) |
protected void |
setPredicate(IdPredicate p) |
Atomic |
unify(Unifier unifier)
perform unification on the atom by applying unifiers
|
equals, extractValueVariableName, getLinkedAtoms, getUnifier, getValueVariable, getVarNames, hashCode, isBinary, isEquivalent, setValueVariablegetApplicableRules, 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, getParentQuery, getPattern, getVarName, graph, isUserDefinedName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisPredicate, isSelectableprotected Binary(VarPatternAdmin pattern, IdPredicate p, ReasonerQuery par)
protected Binary(Binary a)
protected abstract ConceptId extractTypeId()
public PatternAdmin getCombinedPattern()
getCombinedPattern in interface AtomicgetCombinedPattern in class AtomicBasepublic void setParentQuery(ReasonerQuery q)
setParentQuery in interface AtomicsetParentQuery in class AtomicBaseq - query this atom is supposed to belong topublic IdPredicate getPredicate()
protected void setPredicate(IdPredicate p)
protected boolean hasEquivalentPredicatesWith(BinaryBase atom)
hasEquivalentPredicatesWith in class BinaryBasepublic int equivalenceHashCode()
public Atomic unify(Unifier unifier)
AtomicBaseunify in interface Atomicunify in class BinaryBaseunifier - contain variable mappings to be appliedCopyright © 2017 Grakn Labs Ltd. All rights reserved.