|
||||||||||
| 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.PowerGeneration
public class PowerGeneration
The PowerGeneration class is a building function for generating power.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
PowerGeneration(Building building)
Constructor |
|
| Method Summary | |
|---|---|
double |
getFullPowerRequired()
Gets the amount of power required when function is at full power. |
double |
getGeneratedPower()
Gets the amount of electrical power generated. |
double |
getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level. |
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 PowerGeneration(Building building)
throws BuildingException
building - the building this function is for.
BuildingException - if error in constructing function.| Method Detail |
|---|
public double getGeneratedPower()
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 | |||||||||