atomPattern, varName| Constructor and Description |
|---|
Relation(String id,
Map<String,String> roleMap,
Query par) |
Relation(VarAdmin pattern) |
Relation(VarAdmin pattern,
Query par) |
| Modifier and Type | Method and Description |
|---|---|
Atomic |
clone() |
static VarAdmin |
constructRelation(String id,
Map<String,String> roleMap) |
boolean |
containsVar(String name) |
boolean |
equals(Object obj) |
int |
equivalenceHashCode() |
Map<RoleType,javafx.util.Pair<String,Type>> |
getRoleVarTypeMap() |
Set<String> |
getVarNames() |
Map<String,javafx.util.Pair<Type,RoleType>> |
getVarTypeRoleMap() |
boolean |
hasExplicitRoleTypes() |
int |
hashCode() |
boolean |
isEquivalent(Object obj) |
boolean |
isRelation() |
boolean |
isRuleResolvable() |
void |
unify(Map<String,String> mappings)
change each variable occurrence according to provided mappings (apply unifiers {[from, to]_i})
if capture occurs it is marked with a "capture->
|
void |
unify(String from,
String to)
change each variable occurrence in the atom (apply unifier [from/to])
if capture occurs it is marked with a "capture->
|
getApplicableRules, getIdPredicates, getRoleConceptIdMap, getType, getTypeConstraints, getTypeId, getUnifiers, getValuePredicates, getValueVariable, getVarSubMap, isAtom, isBinary, isRecursive, isResource, isTypegetParentQuery, getPattern, getPredicates, getVarName, setParentQuery, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitisPredicatepublic Relation(VarAdmin pattern)
public Atomic clone()
public boolean isEquivalent(Object obj)
public int equivalenceHashCode()
public boolean isRelation()
isRelation in class Atompublic boolean isRuleResolvable()
isRuleResolvable in interface AtomicisRuleResolvable in class Atompublic boolean hasExplicitRoleTypes()
public boolean containsVar(String name)
containsVar in interface AtomiccontainsVar in class AtomBasename - variable namepublic void unify(String from, String to)
Atomicpublic void unify(Map<String,String> mappings)
Atomicpublic Set<String> getVarNames()
getVarNames in interface AtomicgetVarNames in class AtomBasepublic Map<String,javafx.util.Pair<Type,RoleType>> getVarTypeRoleMap()
getVarTypeRoleMap in class AtomCopyright © 2016 Grakn Labs Ltd. All rights reserved.