|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.SimulationConfig
public class SimulationConfig
Loads the simulation configuration XML files as DOM documents. Provides simulation configuration. Provides access to other simulation subset configuration classes.
Method Summary | |
---|---|
BuildingConfig |
getBuildingConfiguration()
Gets the building config subset. |
CropConfig |
getCropConfiguration()
Gets the crop config subset. |
java.lang.String |
getEarthStartDateTime()
Gets the Earth date/time for when the simulation starts. |
LandmarkConfig |
getLandmarkConfiguration()
Gets the landmark config subset. |
MalfunctionConfig |
getMalfunctionConfiguration()
Gets the malfunction config subset. |
ManufactureConfig |
getManufactureConfiguration()
Gets the manufacture config subset. |
java.lang.String |
getMarsStartDateTime()
Gets the Mars dat/time for when the simulation starts. |
MedicalConfig |
getMedicalConfiguration()
Gets the medical config subset. |
MineralMapConfig |
getMineralMapConfiguration()
Gets the mineral map config subset. |
PartConfig |
getPartConfig()
Gets the part config subset. |
PartPackageConfig |
getPartPackageConfig()
Gets the part package configuration. |
PersonConfig |
getPersonConfiguration()
Gets the person config subset. |
AmountResourceConfig |
getResourceConfig()
Gets the resource config subset. |
ResupplyConfig |
getResupplyConfiguration()
Gets the resupply configuration. |
SettlementConfig |
getSettlementConfiguration()
Gets the settlement config subset. |
double |
getSimulationTimeRatio()
Gets the simulation time to real time ratio. |
VehicleConfig |
getVehicleConfiguration()
Gets the vehicle config subset. |
static SimulationConfig |
instance()
Gets a singleton instance of the simulation config. |
static void |
reloadConfig()
Reloads all of the configuration files. |
static void |
setInstance(SimulationConfig instance)
Sets the singleton instance . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SimulationConfig instance()
public static void setInstance(SimulationConfig instance)
instance
- the singleton instance.public static void reloadConfig() throws java.lang.Exception
java.lang.Exception
- if error loading or parsing configuration files.public double getSimulationTimeRatio() throws java.lang.Exception
java.lang.Exception
- if ratio is not in configuration or is not valid.public java.lang.String getEarthStartDateTime() throws java.lang.Exception
java.lang.Exception
- if value is null or empty.public java.lang.String getMarsStartDateTime() throws java.lang.Exception
java.lang.Exception
- if value is null or empty.public PartConfig getPartConfig()
public PartPackageConfig getPartPackageConfig()
public AmountResourceConfig getResourceConfig()
public PersonConfig getPersonConfiguration()
public MedicalConfig getMedicalConfiguration()
public LandmarkConfig getLandmarkConfiguration()
public MineralMapConfig getMineralMapConfiguration()
public MalfunctionConfig getMalfunctionConfiguration()
public CropConfig getCropConfiguration()
public VehicleConfig getVehicleConfiguration()
public BuildingConfig getBuildingConfiguration()
public ResupplyConfig getResupplyConfiguration()
public SettlementConfig getSettlementConfiguration()
public ManufactureConfig getManufactureConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |