|
||||||||||
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.BuildingConfig
public class BuildingConfig
Provides configuration information about settlement buildings. Uses a DOM document to get the information.
Constructor Summary | |
---|---|
BuildingConfig(org.w3c.dom.Document buildingDoc)
Constructor |
Method Summary | |
---|---|
int |
getAirlockCapacity(java.lang.String buildingName)
Gets the number of people who can use the building's airlock at once. |
double |
getBasePowerDownPowerRequirement(java.lang.String buildingName)
Gets the base power-down power requirement for the building. |
double |
getBasePowerRequirement(java.lang.String buildingName)
Gets the base power requirement for the building. |
int |
getCookCapacity(java.lang.String buildingName)
Gets the capacity of the cooking facility in the building. |
double |
getCropGrowingArea(java.lang.String buildingName)
Gets the crop growing area in the building. |
int |
getCropNum(java.lang.String buildingName)
Gets the number of crops in the building. |
int |
getExerciseCapacity(java.lang.String buildingName)
Gets the capacity of the exercise facility in the building. |
java.util.Map<java.lang.String,java.lang.Double> |
getInitialStorage(java.lang.String buildingName)
Gets a map of the initial resources stored in this building. |
int |
getLifeSupportCapacity(java.lang.String buildingName)
Gets the number of inhabitants the building's life support can handle. |
double |
getLifeSupportPowerRequirement(java.lang.String buildingName)
Gets the power required for life support. |
int |
getLivingAccommodationBeds(java.lang.String buildingName)
Gets the number of beds in the building's living accommodations. |
int |
getManufactureConcurrentProcesses(java.lang.String buildingName)
Gets the concurrent process limit of the manufacture facility in the building. |
int |
getManufactureTechLevel(java.lang.String buildingName)
Gets the tech level of the manufacture facility in the building. |
int |
getMedicalCareBeds(java.lang.String buildingName)
Gets the number of beds in the building's medical care. |
int |
getMedicalCareTechLevel(java.lang.String buildingName)
Gets the tech level of the building's medical care. |
double |
getPowerForGrowingCrop(java.lang.String buildingName)
Gets the power required to grow a crop. |
double |
getPowerForSustainingCrop(java.lang.String buildingName)
Gets the power required to sustain a crop. |
java.util.List<PowerSource> |
getPowerSources(java.lang.String buildingName)
Gets a list of the building's power sources. |
int |
getResearchCapacity(java.lang.String buildingName)
Gets the number of researchers who can use the building's lab at once. |
java.util.List<java.lang.String> |
getResearchSpecialities(java.lang.String buildingName)
Gets a list of research specialities for the building's lab. |
int |
getResearchTechLevel(java.lang.String buildingName)
Gets the research tech level of the building. |
java.util.List<ResourceProcess> |
getResourceProcesses(java.lang.String buildingName)
Gets the building's resource processes. |
double |
getResourceProcessingPowerDown(java.lang.String buildingName)
Gets the level of resource processing when the building is in power down mode. |
java.util.Map<java.lang.String,java.lang.Double> |
getStorageCapacities(java.lang.String buildingName)
Gets a list of the building's resource capacities. |
int |
getVehicleCapacity(java.lang.String buildingName)
Gets the vehicle capacity of the building. |
boolean |
hasCommunication(java.lang.String buildingName)
Checks if the building has communication capabilities. |
boolean |
hasCooking(java.lang.String buildingName)
Checks if the building has the cooking function. |
boolean |
hasDining(java.lang.String buildingName)
Checks if the building has a dining facility. |
boolean |
hasEVA(java.lang.String buildingName)
Checks if the building has EVA capabilities. |
boolean |
hasExercise(java.lang.String buildingName)
Checks if the building has the exercise function. |
boolean |
hasFarming(java.lang.String buildingName)
Checks if building has the farming function. |
boolean |
hasGroundVehicleMaintenance(java.lang.String buildingName)
Checks if the building has the ground vehicle maintenance function. |
boolean |
hasLifeSupport(java.lang.String buildingName)
Checks if the building has life support. |
boolean |
hasLivingAccommodations(java.lang.String buildingName)
Checks if the building provides living accommodations. |
boolean |
hasManufacture(java.lang.String buildingName)
Checks if the building has the manufacture function. |
boolean |
hasMedicalCare(java.lang.String buildingName)
Checks if building has medical care capability. |
boolean |
hasPowerGeneration(java.lang.String buildingName)
Checks if building has power generation capability. |
boolean |
hasRecreation(java.lang.String buildingName)
Checks if the building has a recreation facility. |
boolean |
hasResearchLab(java.lang.String buildingName)
Checks if the building has a research lab. |
boolean |
hasResourceProcessing(java.lang.String buildingName)
Checks if the building has resource processing capability. |
boolean |
hasStorage(java.lang.String buildingName)
Checks if building has storage capability. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildingConfig(org.w3c.dom.Document buildingDoc)
buildingDoc
- DOM document with building configurationMethod Detail |
---|
public double getBasePowerRequirement(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public double getBasePowerDownPowerRequirement(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasLifeSupport(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found.public int getLifeSupportCapacity(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public double getLifeSupportPowerRequirement(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasLivingAccommodations(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public int getLivingAccommodationBeds(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasResearchLab(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public int getResearchTechLevel(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public int getResearchCapacity(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public java.util.List<java.lang.String> getResearchSpecialities(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasCommunication(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasEVA(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public int getAirlockCapacity(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasRecreation(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasDining(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasResourceProcessing(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public double getResourceProcessingPowerDown(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public java.util.List<ResourceProcess> getResourceProcesses(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasStorage(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public java.util.Map<java.lang.String,java.lang.Double> getStorageCapacities(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public java.util.Map<java.lang.String,java.lang.Double> getInitialStorage(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasPowerGeneration(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building
java.lang.Exception
- if building name can not be found or XML parsing error.public java.util.List<PowerSource> getPowerSources(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasMedicalCare(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getMedicalCareTechLevel(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getMedicalCareBeds(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasFarming(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getCropNum(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public double getPowerForGrowingCrop(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public double getPowerForSustainingCrop(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public double getCropGrowingArea(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasExercise(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getExerciseCapacity(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasGroundVehicleMaintenance(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getVehicleCapacity(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasCooking(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getCookCapacity(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public boolean hasManufacture(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getManufactureTechLevel(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.public int getManufactureConcurrentProcesses(java.lang.String buildingName) throws java.lang.Exception
buildingName
- the name of the building.
java.lang.Exception
- if building name can not be found or XML parsing error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |