org.troublescope.knowledgebase
Class Category

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

public class Category
extends java.lang.Object

A category of questions in the knowledge base.

Author:
Calvin Yu

Constructor Summary
Category()
           
 
Method Summary
 void addQuestion(Question question)
          Add a question.
 void addSubCategory(Category category)
          Add a sub-category.
 Question getQuestion(int index)
          Returns a question.
 int getQuestionCount()
          Returns the number of questions under this category.
 Category getSubCategory(int index)
          Returns a sub-category.
 int getSubCategoryCount()
          Returns the number of sub-categories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Category

public Category()
Method Detail

getQuestion

public Question getQuestion(int index)
Returns a question.

addQuestion

public void addQuestion(Question question)
Add a question.

getQuestionCount

public int getQuestionCount()
Returns the number of questions under this category.

getSubCategory

public Category getSubCategory(int index)
Returns a sub-category.

addSubCategory

public void addSubCategory(Category category)
Add a sub-category.

getSubCategoryCount

public int getSubCategoryCount()
Returns the number of sub-categories.


Copyright © 2002-2002 TroubleScope. All Rights Reserved.