|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.structure.ResupplyConfig
public class ResupplyConfig
Provides configuration information about settlement resupply missions. Uses a DOM document to get the information.
| Constructor Summary | |
|---|---|
ResupplyConfig(org.w3c.dom.Document resupplyDoc,
PartPackageConfig partPackageConfig)
Constructor |
|
| Method Summary | |
|---|---|
int |
getNumberOfResupplyImmigrants(java.lang.String resupplyName)
Gets the number of immigrants in a resupply mission. |
java.util.List<java.lang.String> |
getResupplyBuildingTypes(java.lang.String resupplyName)
Gets a list of building types in the resupply mission. |
java.util.Map<java.lang.String,java.lang.Integer> |
getResupplyEquipment(java.lang.String resupplyName)
Gets the equipment types in a resupply mission. |
java.util.Map<Part,java.lang.Integer> |
getResupplyParts(java.lang.String resupplyName)
Gets a map of parts and their number in a resupply mission. |
java.util.Map<AmountResource,java.lang.Double> |
getResupplyResources(java.lang.String resupplyName)
Gets a map of resources and their amounts in a resupply mission. |
java.util.List<java.lang.String> |
getResupplyVehicleTypes(java.lang.String resupplyName)
Gets a list of vehicle types in the resupply mission. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResupplyConfig(org.w3c.dom.Document resupplyDoc,
PartPackageConfig partPackageConfig)
throws java.lang.Exception
resupplyDoc - DOM document for resupply configuration.partPackageConfig - the part package configuration.
java.lang.Exception - if error parsing XML.| Method Detail |
|---|
public java.util.List<java.lang.String> getResupplyBuildingTypes(java.lang.String resupplyName)
resupplyName - name of the resupply mission.
public java.util.List<java.lang.String> getResupplyVehicleTypes(java.lang.String resupplyName)
throws java.lang.Exception
resupplyName - name of the resupply mission.
java.lang.Exceptionpublic java.util.Map<java.lang.String,java.lang.Integer> getResupplyEquipment(java.lang.String resupplyName)
resupplyName - the name of the resupply mission.
public int getNumberOfResupplyImmigrants(java.lang.String resupplyName)
resupplyName - name of the resupply mission.
public java.util.Map<Part,java.lang.Integer> getResupplyParts(java.lang.String resupplyName)
resupplyName - the name of the resupply mission.
public java.util.Map<AmountResource,java.lang.Double> getResupplyResources(java.lang.String resupplyName)
resupplyName - the name of the resupply mission.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||