public class Explanation extends Object implements AnswerExplanation
Base class for explanation classes.
| Constructor and Description |
|---|
Explanation() |
| Modifier and Type | Method and Description |
|---|---|
AnswerExplanation |
childOf(Answer ans) |
com.google.common.collect.ImmutableSet<Answer> |
getAnswers() |
ReasonerQuery |
getQuery() |
boolean |
isEmpty() |
boolean |
isJoinExplanation() |
boolean |
isLookupExplanation() |
boolean |
isRuleExplanation() |
AnswerExplanation |
setQuery(ReasonerQuery q) |
public AnswerExplanation setQuery(ReasonerQuery q)
setQuery in interface AnswerExplanationpublic AnswerExplanation childOf(Answer ans)
childOf in interface AnswerExplanationpublic com.google.common.collect.ImmutableSet<Answer> getAnswers()
getAnswers in interface AnswerExplanationpublic boolean isLookupExplanation()
isLookupExplanation in interface AnswerExplanationpublic boolean isRuleExplanation()
isRuleExplanation in interface AnswerExplanationpublic boolean isJoinExplanation()
isJoinExplanation in interface AnswerExplanationpublic boolean isEmpty()
isEmpty in interface AnswerExplanationpublic ReasonerQuery getQuery()
getQuery in interface AnswerExplanationCopyright © 2018 Grakn Labs Ltd. All rights reserved.