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,
Query par) |
| Modifier and Type | Method and Description |
|---|---|
int |
equivalenceHashCode() |
protected abstract ConceptId |
extractTypeId(VarAdmin var) |
PatternAdmin |
getCombinedPattern() |
IdPredicate |
getPredicate() |
boolean |
isValueUserDefinedName() |
protected boolean |
predicatesEquivalent(BinaryBase atom) |
void |
setParentQuery(Query q) |
protected void |
setPredicate(IdPredicate p) |
void |
unify(Map<VarName,VarName> unifiers)
perform unification on the atom by applying unifiers
|
equals, extractValueVariableName, getIdPredicates, getLinkedAtoms, getPredicates, getSelectedNames, getUnifiers, getValuePredicates, getValueVariable, getVarNames, hashCode, isBinary, isEquivalent, isRuleApplicable, requiresMaterialisation, setValueVariablegetApplicableRules, getRoleVarTypeMap, getType, getTypeConstraints, getTypeId, getVarTypeRoleMap, inferTypes, isAtom, isRecursive, isRelation, isResource, isRuleResolvable, isType, rewriteclone, containsVar, getParentQuery, getPattern, getVarName, isUserDefinedName, resetNames, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitisPredicate, isSelectableprotected Binary(VarAdmin pattern, IdPredicate p, Query par)
protected Binary(Binary a)
public PatternAdmin getCombinedPattern()
getCombinedPattern in interface AtomicgetCombinedPattern in class AtomBasepublic void setParentQuery(Query 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()
public boolean isValueUserDefinedName()
isValueUserDefinedName in class AtomBaseCopyright © 2017 Grakn Labs Ltd. All rights reserved.