private void classifyConcept(DMIElem m, ISet<DMIElem> outNodes, ISet<DMIElem> outLinks) { if ((Tracing.gTraceSet & Tracing.TraceFrame) != 0) Tracing.gTraceFile.println("adding: " + m.itsIndex); setVisited(m); if (m.isStatement()) outLinks.add(m); else outNodes.add(m); }
private void accept( DMIElem m, BoundFork inPatterns, BoundFork outPatterns, ISet<DMIElem> outNodes, ISet<DMIElem> outLinks, ISet<BoundFork[]> updatedSubpatterns) { assert m.isStatement() : "WaveTraversal.accept: not a statement"; if (inPatterns.acceptCandidate(m, outPatterns, updatedSubpatterns)) stepFromLink(m, outNodes, outLinks); }
private void stepFromNode(DMIElem m, ISet<DMIElem> outLinks) { step(m.itsUsedAsObjectStmtSet, outLinks); if (m.instanceOf(itsBaseVocab.gProperty)) step(m.itsFullInstanceSet, outLinks); step(m.itsUsedAsSubjectStmtSet, outLinks); }
private void stepFromConcept(DMIElem m, ISet<DMIElem> outNodes, ISet<DMIElem> outLinks) { if (m.isStatement()) stepFromLink(m, outNodes, outLinks); else stepFromNode(m, outLinks); }