public CachedEdge(final Role role, final ATermAppl neighbor, final DependencySet ds) { _role = role; _neighbor = neighbor; _depends = ds.cache(); }
public CachedEdge(final Role role, final ATermAppl neighbor, final DependencySet ds) { _role = role; _neighbor = neighbor; _depends = ds.cache(); }
/** * @param name * @param nodeParam */ public CachedConceptNode(final ATermAppl name, final Individual nodeParam) { _name = name; Individual node = nodeParam; // if the _node is merged, get the representative _node and check // also if the merge depends on a _branch _isIndependent = node.getMergeDependency(true).isIndependent(); node = node.getSame(); _outEdges = copyEdgeList(node, true); _inEdges = copyEdgeList(node, false); // collect all transitive property values if (node.getABox().getKB().getExpressivity().hasNominal()) collectComplexPropertyValues(node); _types = CollectionUtils.makeIdentityMap(node.getDepends()); for (final Map.Entry<ATermAppl, DependencySet> e : _types.entrySet()) e.setValue(e.getValue().cache()); }
/** * @param name * @param nodeParam */ public CachedConceptNode(final ATermAppl name, final Individual nodeParam) { _name = name; Individual node = nodeParam; // if the _node is merged, get the representative _node and check // also if the merge depends on a _branch _isIndependent = node.getMergeDependency(true).isIndependent(); node = node.getSame(); _outEdges = copyEdgeList(node, true); _inEdges = copyEdgeList(node, false); // collect all transitive property values if (node.getABox().getKB().getExpressivity().hasNominal()) collectComplexPropertyValues(node); _types = CollectionUtils.makeIdentityMap(node.getDepends()); for (final Map.Entry<ATermAppl, DependencySet> e : _types.entrySet()) e.setValue(e.getValue().cache()); }
final DependencySet ds = edgeDepends.union(entry.getValue(), false).cache(); final Edge e = out ? new CachedOutEdge(r, n, ds) : new CachedInEdge(r, n, ds); cachedEdges.add(e);
final DependencySet ds = edgeDepends.union(entry.getValue(), false).cache(); final Edge e = out ? new CachedOutEdge(r, n, ds) : new CachedInEdge(r, n, ds); cachedEdges.add(e);