|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Lab
The Lab interface represents a unit that can perform the function of a research laboratory.
| Method Summary | |
|---|---|
void |
addResearcher()
Adds a researcher to the laboratory. |
int |
getLaboratorySize()
Gets the laboratory size. |
int |
getResearcherNum()
Gets the number of people currently researching in the laboratory. |
int |
getTechnologyLevel()
Gets the technology level of laboratory (units defined later) |
java.lang.String[] |
getTechSpecialities()
Gets the lab's science specialities as an array of Strings |
boolean |
hasSpeciality(java.lang.String speciality)
Checks to see if the laboratory has a given tech speciality. |
void |
removeResearcher()
Removes a researcher from the laboratory. |
| Method Detail |
|---|
int getLaboratorySize()
int getTechnologyLevel()
java.lang.String[] getTechSpecialities()
boolean hasSpeciality(java.lang.String speciality)
int getResearcherNum()
void addResearcher()
throws java.lang.Exception
java.lang.Exception - if person cannot be added.
void removeResearcher()
throws java.lang.Exception
java.lang.Exception - if person cannot be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||