|
||||||||||
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.Function
org.mars_sim.msp.simulation.structure.building.function.Cooking
public class Cooking
The Cooking class is a building function for cooking meals.
Field Summary | |
---|---|
static double |
COOKED_MEAL_WORK_REQUIRED
|
static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
Cooking(Building building)
Constructor |
Method Summary | |
---|---|
void |
addWork(double workTime)
Adds cooking work to this facility. |
void |
cleanup()
Cleanup kitchen after mealtime. |
int |
getBestCookSkill()
Gets the skill level of the best cook using this facility. |
int |
getBestMealQuality()
Gets the quality of the best quality meal at the facility. |
int |
getCookCapacity()
Get the maximum number of cooks supported by this facility. |
CookedMeal |
getCookedMeal()
Gets a cooked meal from this facility. |
double |
getFullPowerRequired()
Gets the amount of power required when function is at full power. |
int |
getNumberOfCookedMeals()
Gets the number of cooked meals in this facility. |
int |
getNumCooks()
Get the current number of cooks using this facility. |
double |
getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level. |
boolean |
hasCookedMeal()
Checks if there are any cooked meals in this facility. |
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 |
---|
public static final java.lang.String NAME
public static final double COOKED_MEAL_WORK_REQUIRED
Constructor Detail |
---|
public Cooking(Building building) throws BuildingException
building
- the building this function is for.
BuildingException
- if error in constructing function.Method Detail |
---|
public int getCookCapacity()
public int getNumCooks()
public int getBestCookSkill()
public boolean hasCookedMeal()
public int getNumberOfCookedMeals()
public CookedMeal getCookedMeal()
public int getBestMealQuality()
public void cleanup()
public void addWork(double workTime) throws BuildingException
workTime
- work time (millisols)
BuildingException
public void timePassing(double time) throws BuildingException
timePassing
in class Function
time
- amount of time passing (in millisols)
BuildingException
- if error occurs.public double getFullPowerRequired()
getFullPowerRequired
in class Function
public double getPowerDownPowerRequired()
getPowerDownPowerRequired
in class Function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |