|
||||||||||
| 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.Exercise
public class Exercise
The Exercise class is a building function for exercise.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
Exercise(Building building)
Constructor |
|
| Method Summary | |
|---|---|
void |
addExerciser()
Adds a person to the exercise facility. |
int |
getExerciserCapacity()
Gets the number of people who can use the exercise facility at once. |
double |
getFullPowerRequired()
Gets the amount of power required when function is at full power. |
int |
getNumExercisers()
Gets the current number of people using the exercise facility. |
double |
getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level. |
void |
removeExerciser()
Removes a person from the exercise facility. |
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 Exercise(Building building)
throws BuildingException
building - the building this function is for.
BuildingException - if error in constructing function.| Method Detail |
|---|
public int getExerciserCapacity()
public int getNumExercisers()
public void addExerciser()
throws BuildingException
BuildingException - if person would exceed exercise facility capacity.
public void removeExerciser()
throws BuildingException
BuildingException - if nobody is using the exercise facility.
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 | |||||||||