|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.structure.building.BuildingConfig
public class BuildingConfig
Provides configuration information about settlement buildings. Uses a DOM document to get the information.
| Constructor Summary | |
|---|---|
BuildingConfig(org.jdom.Document buildingDoc)
Constructor |
|
| Method Summary | |
|---|---|
void |
destroy()
Prepare object for garbage collection. |
int |
getAirlockCapacity(String buildingName)
Gets the number of people who can use the building's airlock at once. |
int |
getAstronomicalObservationCapacity(String buildingName)
Gets capacity of the astronomy facility in the building. |
double |
getAstronomicalObservationPowerRequirement(String buildingName)
Gets the power required by the astronomical observation function. |
int |
getAstronomicalObservationTechLevel(String buildingName)
Gets the tech level of the astronomy facility in the building. |
double |
getBasePowerDownPowerRequirement(String buildingName)
Gets the base power-down power requirement for the building. |
double |
getBasePowerRequirement(String buildingName)
Gets the base power requirement for the building. |
Set<String> |
getBuildingNames()
Gets a set of all building names. |
int |
getCookCapacity(String buildingName)
Gets the capacity of the cooking facility in the building. |
double |
getCropGrowingArea(String buildingName)
Gets the crop growing area in the building. |
int |
getCropNum(String buildingName)
Gets the number of crops in the building. |
int |
getDiningCapacity(String buildingName)
Gets the capacity for dining at the building. |
int |
getEarthReturnCrewCapacity(String buildingName)
Gets the Earth return crew capacity of a building. |
int |
getExerciseCapacity(String buildingName)
Gets the capacity of the exercise facility in the building. |
Map<AmountResource,Double> |
getInitialStorage(String buildingName)
Gets a map of the initial resources stored in this building. |
double |
getLength(String buildingName)
Gets the building length. |
int |
getLifeSupportCapacity(String buildingName)
Gets the number of inhabitants the building's life support can handle. |
double |
getLifeSupportPowerRequirement(String buildingName)
Gets the power required for life support. |
int |
getLivingAccommodationBeds(String buildingName)
Gets the number of beds in the building's living accommodations. |
int |
getManagementPopulationSupport(String buildingName)
Gets the management population support for a building. |
int |
getManufactureConcurrentProcesses(String buildingName)
Gets the concurrent process limit of the manufacture facility in the building. |
int |
getManufactureTechLevel(String buildingName)
Gets the tech level of the manufacture facility in the building. |
int |
getMedicalCareBeds(String buildingName)
Gets the number of beds in the building's medical care. |
int |
getMedicalCareTechLevel(String buildingName)
Gets the tech level of the building's medical care. |
Point2D.Double |
getParkingLocation(String buildingName,
int parkingIndex)
Gets the relative location in the building of a parking location. |
int |
getParkingLocationNumber(String buildingName)
Gets the number of parking locations in the building. |
double |
getPowerForGrowingCrop(String buildingName)
Gets the power required to grow a crop. |
double |
getPowerForSustainingCrop(String buildingName)
Gets the power required to sustain a crop. |
List<PowerSource> |
getPowerSources(String buildingName)
Gets a list of the building's power sources. |
double |
getPowerStorageCapacity(String buildingName)
Gets the power storage capacity of the building. |
int |
getRecreationPopulationSupport(String buildingName)
Gets the population number supported by the building's recreation function. |
int |
getResearchCapacity(String buildingName)
Gets the number of researchers who can use the building's lab at once. |
List<String> |
getResearchSpecialities(String buildingName)
Gets a list of research specialities for the building's lab. |
int |
getResearchTechLevel(String buildingName)
Gets the research tech level of the building. |
List<ResourceProcess> |
getResourceProcesses(String buildingName)
Gets the building's resource processes. |
double |
getResourceProcessingPowerDown(String buildingName)
Gets the level of resource processing when the building is in power down mode. |
Map<AmountResource,Double> |
getStorageCapacities(String buildingName)
Gets a list of the building's resource capacities. |
int |
getVehicleCapacity(String buildingName)
Gets the vehicle capacity of the building. |
double |
getWidth(String buildingName)
Gets the building width. |
boolean |
hasAstronomicalObservation(String buildingName)
Checks if the building has an astronomical observation function. |
boolean |
hasCommunication(String buildingName)
Checks if the building has communication capabilities. |
boolean |
hasCooking(String buildingName)
Checks if the building has the cooking function. |
boolean |
hasDining(String buildingName)
Checks if the building has a dining facility. |
boolean |
hasEarthReturn(String buildingName)
Checks if the building has an Earth return function. |
boolean |
hasEVA(String buildingName)
Checks if the building has EVA capabilities. |
boolean |
hasExercise(String buildingName)
Checks if the building has the exercise function. |
boolean |
hasFarming(String buildingName)
Checks if building has the farming function. |
boolean |
hasGroundVehicleMaintenance(String buildingName)
Checks if the building has the ground vehicle maintenance function. |
boolean |
hasLifeSupport(String buildingName)
Checks if the building has life support. |
boolean |
hasLivingAccommodations(String buildingName)
Checks if the building provides living accommodations. |
boolean |
hasManagement(String buildingName)
Checks if the building has the management function. |
boolean |
hasManufacture(String buildingName)
Checks if the building has the manufacture function. |
boolean |
hasMedicalCare(String buildingName)
Checks if building has medical care capability. |
boolean |
hasPowerGeneration(String buildingName)
Checks if building has power generation capability. |
boolean |
hasPowerStorage(String buildingName)
Checks if building has power storage capability. |
boolean |
hasRecreation(String buildingName)
Checks if the building has a recreation facility. |
boolean |
hasResearchLab(String buildingName)
Checks if the building has a research lab. |
boolean |
hasResourceProcessing(String buildingName)
Checks if the building has resource processing capability. |
boolean |
hasStorage(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.jdom.Document buildingDoc)
buildingDoc - DOM document with building configuration| Method Detail |
|---|
public Set<String> getBuildingNames()
public double getWidth(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public double getLength(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public double getBasePowerRequirement(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public double getBasePowerDownPowerRequirement(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public boolean hasLifeSupport(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found.public int getLifeSupportCapacity(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public double getLifeSupportPowerRequirement(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public boolean hasLivingAccommodations(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public int getLivingAccommodationBeds(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasResearchLab(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public int getResearchTechLevel(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public int getResearchCapacity(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public List<String> getResearchSpecialities(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public boolean hasCommunication(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public boolean hasEVA(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public int getAirlockCapacity(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public boolean hasRecreation(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public int getRecreationPopulationSupport(String buildingName)
buildingName - the name of the building.
public boolean hasDining(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public int getDiningCapacity(String buildingName)
buildingName - the name of the building.
public boolean hasResourceProcessing(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public double getResourceProcessingPowerDown(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public List<ResourceProcess> getResourceProcesses(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasStorage(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public Map<AmountResource,Double> getStorageCapacities(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public Map<AmountResource,Double> getInitialStorage(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public boolean hasPowerGeneration(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public List<PowerSource> getPowerSources(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasPowerStorage(String buildingName)
buildingName - the name of the building
Exception - if building name cannot be found or XML parsing error.public double getPowerStorageCapacity(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasMedicalCare(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getMedicalCareTechLevel(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getMedicalCareBeds(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasFarming(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getCropNum(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public double getPowerForGrowingCrop(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public double getPowerForSustainingCrop(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public double getCropGrowingArea(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasExercise(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getExerciseCapacity(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasGroundVehicleMaintenance(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getVehicleCapacity(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getParkingLocationNumber(String buildingName)
buildingName - the name of the building.
public Point2D.Double getParkingLocation(String buildingName,
int parkingIndex)
buildingName - the name of the building.parkingIndex - the parking location index.
public boolean hasCooking(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getCookCapacity(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasManufacture(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getManufactureTechLevel(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasAstronomicalObservation(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getAstronomicalObservationTechLevel(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getAstronomicalObservationCapacity(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public double getAstronomicalObservationPowerRequirement(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public int getManufactureConcurrentProcesses(String buildingName)
buildingName - the name of the building.
Exception - if building name cannot be found or XML parsing error.public boolean hasManagement(String buildingName)
buildingName - the name of the building.
public int getManagementPopulationSupport(String buildingName)
buildingName - the name of the building.
public boolean hasEarthReturn(String buildingName)
buildingName - the name of the building.
public int getEarthReturnCrewCapacity(String buildingName)
buildingName - the name of the building.
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||