|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.interplanetary.transport.resupply.Resupply
public class Resupply
Resupply mission from Earth for a settlement.
| Field Summary |
|---|
| Fields inherited from interface org.mars_sim.msp.core.interplanetary.transport.Transportable |
|---|
ARRIVED, CANCELED, EARTH, IN_TRANSIT, MARS, PLANNED |
| Constructor Summary | |
|---|---|
Resupply(MarsClock arrivalDate,
Settlement settlement)
Constructor |
|
| Method Summary | |
|---|---|
void |
commitModification()
Commits a set of modifications for the resupply mission. |
int |
compareTo(Transportable o)
|
void |
destroy()
Prepare object for garbage collection. |
MarsClock |
getArrivalDate()
Gets the arrival date at the destination. |
MarsClock |
getLaunchDate()
Gets the launch date from the launching location. |
String |
getName()
Gets the name of the transportable. |
List<String> |
getNewBuildings()
Gets a list of the resupply buildings. |
Map<String,Integer> |
getNewEquipment()
Gets a map of the resupply equipment. |
int |
getNewImmigrantNum()
Gets the number of immigrants in the resupply mission. |
Map<Part,Integer> |
getNewParts()
Gets a map of resupply parts. |
Map<AmountResource,Double> |
getNewResources()
Gets a map of the resupply resources. |
List<String> |
getNewVehicles()
Gets a list of the resupply vehicles. |
Settlement |
getSettlement()
Gets the destination settlement. |
String |
getTransitState()
Gets the current transit state. |
void |
performArrival()
Perform the arrival of the transportable. |
void |
setArrivalDate(MarsClock arrivalDate)
Sets the arrival date of the resupply mission. |
void |
setLaunchDate(MarsClock launchDate)
Sets the launch date of the resupply mission. |
void |
setNewBuildings(List<String> newBuildings)
Sets the list of resupply buildings. |
void |
setNewEquipment(Map<String,Integer> newEquipment)
Sets the map of resupply equipment. |
void |
setNewImmigrantNum(int newImmigrantNum)
Sets the number of immigrants in the resupply mission. |
void |
setNewParts(Map<Part,Integer> newParts)
Sets the map of resupply parts. |
void |
setNewResources(Map<AmountResource,Double> newResources)
Sets the map of resupply resources. |
void |
setNewVehicles(List<String> newVehicles)
Sets the list of resupply vehicles. |
void |
setSettlement(Settlement settlement)
Sets the destination settlement. |
void |
setTransitState(String transitState)
Sets the current transit state. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Resupply(MarsClock arrivalDate,
Settlement settlement)
arrivalDate - the arrival date of the supplies.settlement - the settlement receiving the supplies.| Method Detail |
|---|
public MarsClock getLaunchDate()
Transportable
getLaunchDate in interface Transportablepublic void setLaunchDate(MarsClock launchDate)
launchDate - the launch date.public List<String> getNewBuildings()
public void setNewBuildings(List<String> newBuildings)
newBuildings - list of building types.public List<String> getNewVehicles()
public void setNewVehicles(List<String> newVehicles)
newVehicles - list of vehicle types.public Map<String,Integer> getNewEquipment()
public void setNewEquipment(Map<String,Integer> newEquipment)
newEquipment - map of equipment type and number.public int getNewImmigrantNum()
public void setNewImmigrantNum(int newImmigrantNum)
newImmigrantNum - the number of immigrants.public Map<AmountResource,Double> getNewResources()
public void setNewResources(Map<AmountResource,Double> newResources)
newResources - map of resource and amount (kg).public Map<Part,Integer> getNewParts()
public void setNewParts(Map<Part,Integer> newParts)
newParts - map of part and number.public MarsClock getArrivalDate()
Transportable
getArrivalDate in interface Transportablepublic void setArrivalDate(MarsClock arrivalDate)
arrivalDate - the arrival date.public Settlement getSettlement()
public void setSettlement(Settlement settlement)
settlement - the destination settlement.public void commitModification()
public void destroy()
Transportable
destroy in interface Transportablepublic String toString()
toString in class Objectpublic int compareTo(Transportable o)
compareTo in interface Comparable<Transportable>public String getName()
Transportable
getName in interface Transportablepublic String getTransitState()
Transportable
getTransitState in interface Transportablepublic void setTransitState(String transitState)
Transportable
setTransitState in interface TransportabletransitState - the transit state string.public void performArrival()
Transportable
performArrival in interface Transportable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||