|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.manufacture.ManufactureUtil
public final class ManufactureUtil
Utility class for getting manufacturing processes.
| Method Summary | |
|---|---|
static boolean |
canProcessBeStarted(ManufactureProcessInfo process,
Manufacture workshop)
Checks to see if a manufacturing process can be started at a given manufacturing building. |
static boolean |
doesSettlementHaveManufacturing(Settlement settlement)
Checks if settlement has buildings with manufacture function. |
static java.util.List<ManufactureProcessInfo> |
getAllManufactureProcesses()
Gets all manufacturing processes. |
static int |
getHighestManufacturingTechLevel(Settlement settlement)
Gets the highest manufacturing tech level in a settlement. |
static java.util.List<ManufactureProcessInfo> |
getManufactureProcessesForTechLevel(int techLevel)
Gets manufacturing processes within the capability of a tech level. |
static java.util.List<ManufactureProcessInfo> |
getManufactureProcessesForTechSkillLevel(int techLevel,
int skillLevel)
Gets manufacturing processes within the capability of a tech level and a skill level. |
static double |
getManufactureProcessItemValue(ManufactureProcessItem item,
Settlement settlement)
Gets the good value of a manufacturing process item for a settlement. |
static double |
getManufactureProcessValue(ManufactureProcessInfo process,
Settlement settlement)
Gets the goods value of a manufacturing process at a settlement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final java.util.List<ManufactureProcessInfo> getAllManufactureProcesses()
throws java.lang.Exception
java.lang.Exception - if error getting processes.
public static final java.util.List<ManufactureProcessInfo> getManufactureProcessesForTechLevel(int techLevel)
throws java.lang.Exception
techLevel - the tech level.
java.lang.Exception - if error getting processes.
public static final java.util.List<ManufactureProcessInfo> getManufactureProcessesForTechSkillLevel(int techLevel,
int skillLevel)
throws java.lang.Exception
techLevel - the tech level.skillLevel - the skill level.
java.lang.Exception - if error getting processes.
public static final double getManufactureProcessValue(ManufactureProcessInfo process,
Settlement settlement)
throws java.lang.Exception
process - the manufacturing process.settlement - the settlement.
java.lang.Exception - if error determining good values.
public static final double getManufactureProcessItemValue(ManufactureProcessItem item,
Settlement settlement)
throws java.lang.Exception
item - the manufacturing process item.settlement - the settlement.
java.lang.Exception - if error getting good value.
public static final boolean canProcessBeStarted(ManufactureProcessInfo process,
Manufacture workshop)
throws java.lang.Exception
process - the manufacturing process to start.workshop - the manufacturing building.
java.lang.Exception - if error determining if process can be started.
public static final boolean doesSettlementHaveManufacturing(Settlement settlement)
throws BuildingException
settlement - the settlement.
BuildingException - if error checking for manufacturing buildings.
public static final int getHighestManufacturingTechLevel(Settlement settlement)
throws BuildingException
settlement - the settlement.
BuildingException - if error determining highest tech level.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||