org.mars_sim.msp.simulation.structure.building.function
Class Dining
java.lang.Object
org.mars_sim.msp.simulation.structure.building.function.Function
org.mars_sim.msp.simulation.structure.building.function.Dining
- All Implemented Interfaces:
- java.io.Serializable
public class Dining
- extends Function
- implements java.io.Serializable
The Dining class is a building function for dining.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
NAME
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
Dining
public Dining(Building building)
- Constructor
- Parameters:
building
- the building this function is for.
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)