org.mars_sim.msp.core.structure.building.function
Class SolarPowerSource

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

public class SolarPowerSource
extends PowerSource
implements java.io.Serializable

A power source that gives a supply of power proportional to the level of sunlight it receives.

See Also:
Serialized Form

Constructor Summary
SolarPowerSource(double maxPower)
          Constructor
 
Method Summary
 double getCurrentPower(Building building)
          Gets the current power produced by the power source.
 
Methods inherited from class org.mars_sim.msp.core.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

SolarPowerSource

public SolarPowerSource(double maxPower)
Constructor

Parameters:
maxPower - the maximum generated power (kW).
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)