org.troublescope.knowledgebase
Class Question

java.lang.Object
  |
  +--org.troublescope.knowledgebase.Question

public class Question
extends java.lang.Object

A question in the knowledge base.

Author:
Calvin Yu

Constructor Summary
Question()
           
 
Method Summary
 void addAnswer(Answer answer)
          Add a answer to this question.
 Answer getAnswer(int index)
          Returns an answer at an index.
 int getAnswerCount()
          Returns the number of answers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Question

public Question()
Method Detail

getAnswer

public Answer getAnswer(int index)
Returns an answer at an index.

addAnswer

public void addAnswer(Answer answer)
Add a answer to this question.

getAnswerCount

public int getAnswerCount()
Returns the number of answers.


Copyright © 2002-2002 TroubleScope. All Rights Reserved.