public class Answer extends Object
| Constructor and Description |
|---|
Answer(BeliefBase beliefBase,
Formula query)
Creates an empty answer for the given query.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendText(String text)
Appends the given text to this answer's text.
|
boolean |
getAnswerBoolean()
Returns the boolean form of this answer.
|
Double |
getAnswerDouble()
Returns the double form of this answer.
|
BeliefBase |
getKnowledgeBase()
Returns the knowledge base this answer relates to.
|
Formula |
getQuery()
Returns the query this answer relates to.
|
String |
getText()
Returns the textual description of this answer.
|
void |
setAnswer(boolean answer)
The answer of the query in boolean form.
|
void |
setAnswer(Double answer)
The answer of the query in boolean form.
|
String |
toString() |
public Answer(BeliefBase beliefBase, Formula query)
query - a query.public void appendText(String text)
text - a string.public void setAnswer(boolean answer)
answer - a booleanpublic void setAnswer(Double answer)
answer - a booleanpublic boolean getAnswerBoolean()
public Double getAnswerDouble()
public String getText()
public Formula getQuery()
public BeliefBase getKnowledgeBase()
Copyright © 2018. All rights reserved.