|
||||||||||
| 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.Manufacture
public class Manufacture
A building function for manufacturing.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
Manufacture(Building building)
Constructor |
|
| Method Summary | |
|---|---|
void |
addProcess(ManufactureProcess process)
Adds a new manufacturing process to the building. |
void |
endManufacturingProcess(ManufactureProcess process)
Ends a manufacturing process. |
int |
getConcurrentProcesses()
Gets the maximum concurrent manufacturing processes supported by the building. |
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. |
java.util.List<ManufactureProcess> |
getProcesses()
Gets a list of the current manufacturing processes. |
int |
getTechLevel()
Gets the manufacturing tech level of the building. |
boolean |
requiresWork()
Checks if manufacturing function currently requires work. |
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
| Constructor Detail |
|---|
public Manufacture(Building building)
throws BuildingException
building - the building the function is for.
BuildingException - if error constructing function.| Method Detail |
|---|
public int getTechLevel()
public int getConcurrentProcesses()
public java.util.List<ManufactureProcess> getProcesses()
public void addProcess(ManufactureProcess process)
throws BuildingException
process - the new manufacturing process.
BuildingException - if error adding process.public double getFullPowerRequired()
Function
getFullPowerRequired in class Functionpublic double getPowerDownPowerRequired()
Function
getPowerDownPowerRequired in class Function
public void timePassing(double time)
throws BuildingException
Function
timePassing in class Functiontime - amount of time passing (in millisols)
BuildingException - if error occurs.public boolean requiresWork()
public void endManufacturingProcess(ManufactureProcess process)
throws BuildingException
process - the process to end.
BuildingException - if error ending process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||