|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.structure.building.function.Function
org.mars_sim.msp.simulation.structure.building.function.Research
public class Research
The Resource class is a building function for research.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
Research(Building building)
Constructor |
|
| Method Summary | |
|---|---|
void |
addResearcher()
Adds a researcher to the laboratory. |
double |
getFullPowerRequired()
Gets the amount of power required when function is at full power. |
int |
getLaboratorySize()
Gets the number of researchers who can use the laboratory at once. |
double |
getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level. |
int |
getResearcherNum()
Gets the number of people currently researching in the laboratory. |
int |
getTechnologyLevel()
Gets the research tech level of this building. |
java.lang.String[] |
getTechSpecialities()
Gets an array of the building's research tech specialities. |
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. |
void |
timePassing(double time)
Time passing for the building. |
| Methods inherited from class org.mars_sim.msp.simulation.structure.building.function.Function |
|---|
getBuilding, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public Research(Building building)
throws BuildingException
building - the building this function is for.
BuildingException - if function could not be constructed.| Method Detail |
|---|
public int getTechnologyLevel()
getTechnologyLevel in interface Labpublic int getLaboratorySize()
getLaboratorySize 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.
public void timePassing(double time)
throws BuildingException
timePassing in class Functiontime - amount of time passing (in millisols)
BuildingException - if error occurs.public double getFullPowerRequired()
getFullPowerRequired in class Functionpublic double getPowerDownPowerRequired()
getPowerDownPowerRequired in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||