|
||||||||||
| 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
public abstract class PowerSource
The PowerSource class represents a power generator for a building.
| Constructor Summary | |
|---|---|
PowerSource(java.lang.String type,
double maxPower)
Constructor |
|
| Method Summary | |
|---|---|
abstract double |
getCurrentPower(Building building)
Gets the current power produced by the power source. |
double |
getMaxPower()
Gets the max power generated. |
java.lang.String |
getType()
Gets the type of power source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PowerSource(java.lang.String type,
double maxPower)
type - the type of power source.maxPower - the max power generated.| Method Detail |
|---|
public java.lang.String getType()
public double getMaxPower()
public abstract double getCurrentPower(Building building)
building - the building this power source is for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||