|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.vehicle.MobileLaboratory
public class MobileLaboratory
The MobileLaboratory class represents the research laboratory in a vehicle.
| 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 laboratory. |
int |
getTechnologyLevel()
Gets the technology level of the 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getLaboratorySize()
getLaboratorySize in interface Labpublic int getTechnologyLevel()
getTechnologyLevel in interface Labpublic java.lang.String[] getTechSpecialities()
getTechSpecialities in interface Labpublic boolean hasSpeciality(java.lang.String speciality)
hasSpeciality in interface Labpublic int getResearcherNum()
getResearcherNum in interface Lab
public void addResearcher()
throws java.lang.Exception
addResearcher in interface Labjava.lang.Exception - if person cannot be added.
public void removeResearcher()
throws java.lang.Exception
removeResearcher in interface Labjava.lang.Exception - if person cannot be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||