Class InfoBase

java.lang.Object
  |
  +--InfoBase
Direct Known Subclasses:
DataBase, QuizBase

public class InfoBase
extends java.lang.Object

this class is the superclass of DataBase and QuizBase which stores information about the a map currently selected


Constructor Summary
InfoBase()
           
InfoBase(int numQuestions)
           
InfoBase(int numQuestions, int numLocations)
           
 
Method Summary
 void addLocation(java.lang.Object o)
          // method : addLocation // description : adds a Location to the InfoBase
 void addQuestion(Question q)
          // method : addquestion // description : adds information to the infoBase (a question)
 void addQuestion(Question q, int minvalue, int maxvalue)
          // method : addquestion // description : adds information to the infoBase (a question)
 void addQuestion(java.lang.String title, java.lang.String text, java.lang.String units, int min, int max)
          // method : addquestion // description : adds information to the infoBase (a question)
 void setNumLocations(int numLocations)
          // method : setNumLocations // description : sets the number of Locations available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoBase

public InfoBase()

InfoBase

public InfoBase(int numQuestions)

InfoBase

public InfoBase(int numQuestions,
                int numLocations)
Method Detail

addQuestion

public void addQuestion(java.lang.String title,
                        java.lang.String text,
                        java.lang.String units,
                        int min,
                        int max)
// method : addquestion // description : adds information to the infoBase (a question)

addQuestion

public void addQuestion(Question q)
// method : addquestion // description : adds information to the infoBase (a question)

addQuestion

public void addQuestion(Question q,
                        int minvalue,
                        int maxvalue)
// method : addquestion // description : adds information to the infoBase (a question)

setNumLocations

public void setNumLocations(int numLocations)
// method : setNumLocations // description : sets the number of Locations available

addLocation

public void addLocation(java.lang.Object o)
// method : addLocation // description : adds a Location to the InfoBase