|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.structure.goods.GoodsUtil
public class GoodsUtil
Utility class for goods information.
| Method Summary | |
|---|---|
static boolean |
containsGood(Good good)
Checks if a good is valid in the simulation. |
static Good |
getEquipmentGood(java.lang.Class equipmentClass)
Gets a good object for a given equipment class. |
static double |
getGoodMassPerItem(Good good)
Gets the mass per item for a good. |
static java.util.List<Good> |
getGoodsList()
Gets a list of all goods in the simulation. |
static Good |
getResourceGood(Resource resource)
Gets a good object for a given resource. |
static Good |
getVehicleGood(java.lang.String vehicleType)
Gets a good object for the given vehicle type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<Good> getGoodsList()
public static Good getResourceGood(Resource resource)
resource - the resource.
public static Good getEquipmentGood(java.lang.Class equipmentClass)
equipmentClass - the equipment class.
public static Good getVehicleGood(java.lang.String vehicleType)
vehicleType - the vehicle type string.
public static boolean containsGood(Good good)
good - the good to check.
public static double getGoodMassPerItem(Good good)
throws java.lang.Exception
good - the good to check.
java.lang.Exception - if error getting mass per item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||