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

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

public class ResourceProcessing
extends Function
implements java.io.Serializable

The ResourceProcessing class is a building function indicating that the building has a set of resource processes.

See Also:
Serialized Form

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
ResourceProcessing(Building building)
          Constructor
 
Method Summary
 double getFullPowerRequired()
          Gets the amount of power required when function is at full power.
 double getPowerDownPowerRequired()
          Gets the amount of power required when function is at power down level.
 double getPowerDownResourceProcessingLevel()
          Gets the power down mode resource processing level.
 java.util.List<ResourceProcess> getProcesses()
          Gets the resource processes in this building.
 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

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

ResourceProcessing

public ResourceProcessing(Building building)
                   throws BuildingException
Constructor

Parameters:
building - the building the function is for.
Throws:
BuildingException - if function cannot be constructed.
Method Detail

getProcesses

public java.util.List<ResourceProcess> getProcesses()
Gets the resource processes in this building.

Returns:
list of processes.

getPowerDownResourceProcessingLevel

public double getPowerDownResourceProcessingLevel()
Gets the power down mode resource processing level.

Returns:
proportion of max processing rate (0D - 1D)

timePassing

public void timePassing(double time)
                 throws BuildingException
Time passing for the building.

Specified by:
timePassing in class Function
Parameters:
time - amount of time passing (in millisols)
Throws:
BuildingException - if error occurs.

getFullPowerRequired

public double getFullPowerRequired()
Gets the amount of power required when function is at full power.

Specified by:
getFullPowerRequired in class Function
Returns:
power (kW)

getPowerDownPowerRequired

public double getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level.

Specified by:
getPowerDownPowerRequired in class Function
Returns:
power (kW)