public class LinkTraverser extends Object
| Constructor and Description |
|---|
LinkTraverser() |
| Modifier and Type | Method and Description |
|---|---|
List<Proposition> |
traverseLinks(Link[] links,
Proposition proposition,
Map<Proposition,List<Proposition>> forwardDerivations,
Map<Proposition,List<Proposition>> backwardDerivations,
Map<UniqueId,Proposition> references,
KnowledgeSourceCache ksCache)
Traverses links from a proposition to a list of propositions.
|
public List<Proposition> traverseLinks(Link[] links, Proposition proposition, Map<Proposition,List<Proposition>> forwardDerivations, Map<Proposition,List<Proposition>> backwardDerivations, Map<UniqueId,Proposition> references, KnowledgeSourceCache ksCache)
links - the Links to traverse. If null or an
empty array, then the supplied proposition is returned.proposition - the Proposition from which to start.forwardDerivations - map of propositions from raw data toward
derived propositions.backwardDerivations - map of propositions from derived propositions
toward raw data.references - a map of unique id to the corresponding proposition for
propositions that are referred to by other propositions.knowledgeSource - the KnowledgeSource.Propositions at the end of the traversals.KnowledgeSourceReadException - if an error occurred reading from
the knowledge source.Copyright © 2012–2018 Emory University. All rights reserved.