org.mars_sim.msp.simulation.structure.building.function
Class StandardPowerSource

java.lang.Object
  extended by org.mars_sim.msp.simulation.structure.building.function.PowerSource
      extended by org.mars_sim.msp.simulation.structure.building.function.StandardPowerSource
All Implemented Interfaces:
java.io.Serializable

public class StandardPowerSource
extends PowerSource
implements java.io.Serializable

A power source that gives a constant supply of power.

See Also:
Serialized Form

Constructor Summary
StandardPowerSource(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

StandardPowerSource

public StandardPowerSource(double maxPower)
Method Detail

getCurrentPower

public double getCurrentPower(Building building)
Gets the current power produced by the power source.

Specified by:
getCurrentPower in class PowerSource
Parameters:
building - the building this power source is for.
Returns:
power (kW)