|
||||||||||
| 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.PowerSource
org.mars_sim.msp.simulation.structure.building.function.SolarPowerSource
public class SolarPowerSource
A power source that gives a supply of power proportional to the level of sunlight it receives.
| Constructor Summary | |
|---|---|
SolarPowerSource(double maxPower)
|
|
| Method Summary | |
|---|---|
double |
getCurrentPower(Building building)
Gets the current power produced by the power source. |
| Methods inherited from class org.mars_sim.msp.simulation.structure.building.function.PowerSource |
|---|
getMaxPower, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SolarPowerSource(double maxPower)
| Method Detail |
|---|
public double getCurrentPower(Building building)
getCurrentPower in class PowerSourcebuilding - the building this power source is for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||