|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.equipment.EquipmentFactory
public final class EquipmentFactory
A factory for equipment units.
Method Summary | |
---|---|
static Equipment |
getEquipment(java.lang.Class equipmentClass,
Coordinates location,
boolean temp)
Gets an equipment instance from an equipment class. |
static Equipment |
getEquipment(java.lang.String type,
Coordinates location,
boolean temp)
Gets an equipment instance from an equipment type string. |
static java.lang.Class |
getEquipmentClass(java.lang.String type)
Gets the class of equipment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Equipment getEquipment(java.lang.String type, Coordinates location, boolean temp) throws java.lang.Exception
type
- the equipment type string.location
- the location of the equipment.temp
- is this equipment only temporary?
java.lang.Exception
- if error creating equipment instance.public static Equipment getEquipment(java.lang.Class equipmentClass, Coordinates location, boolean temp) throws java.lang.Exception
equipmentClass
- the equipment class to use.location
- the location of the equipment.temp
- is this equipment only temporary?
java.lang.Exception
- if error creating equipment instance.public static java.lang.Class getEquipmentClass(java.lang.String type) throws java.lang.Exception
type
- the equipment type string.
java.lang.Exception
- if equipment class could not be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |