|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.structure.SettlementTemplate
public class SettlementTemplate
A settlement template information.
| Constructor Summary | |
|---|---|
SettlementTemplate(String name,
int defaultPopulation)
Constructor |
|
| Method Summary | |
|---|---|
void |
addAmountResource(AmountResource resource,
double amount)
Adds an amount of a type of resource. |
void |
addBuildingTemplate(BuildingTemplate buildingTemplate)
Adds a building template. |
void |
addEquipment(String equipmentType,
int number)
Adds a number of equipment of a given type. |
void |
addPart(Part part,
int number)
Adds a number of a type of part. |
void |
addResupplyMissionTemplate(ResupplyMissionTemplate resupplyMissionTemplate)
Adds a resupply mission template. |
void |
addVehicles(String vehicleType,
int number)
Adds a number of vehicles of a given type. |
void |
destroy()
Prepare object for garbage collection. |
List<BuildingTemplate> |
getBuildingTemplates()
Gets the list of building templates. |
int |
getDefaultPopulation()
Gets the default population capacity of the template. |
Map<String,Integer> |
getEquipment()
Gets a map of equipment types and number. |
Map<Part,Integer> |
getParts()
Gets a map of parts and numbers. |
Map<AmountResource,Double> |
getResources()
Gets a map of resources and amounts. |
List<ResupplyMissionTemplate> |
getResupplyMissionTemplates()
Gets the list of resupply mission templates. |
String |
getTemplateName()
Gets the name of the template. |
Map<String,Integer> |
getVehicles()
Gets a map of vehicle types and number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SettlementTemplate(String name,
int defaultPopulation)
| Method Detail |
|---|
public String getTemplateName()
public int getDefaultPopulation()
public void addBuildingTemplate(BuildingTemplate buildingTemplate)
buildingTemplate - the building template.public List<BuildingTemplate> getBuildingTemplates()
public void addVehicles(String vehicleType,
int number)
vehicleType - the vehicle type.number - the number of vehicles to add.public Map<String,Integer> getVehicles()
public void addEquipment(String equipmentType,
int number)
equipmentType - the equipment type.number - the number of equipment to add.public Map<String,Integer> getEquipment()
public void addAmountResource(AmountResource resource,
double amount)
resource - the resource.amount - the amount (kg).public Map<AmountResource,Double> getResources()
public void addPart(Part part,
int number)
part - the part.number - the number of parts.public Map<Part,Integer> getParts()
public void addResupplyMissionTemplate(ResupplyMissionTemplate resupplyMissionTemplate)
resupplyMissionTemplate - the resupply mission template.public List<ResupplyMissionTemplate> getResupplyMissionTemplates()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||