|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.Unit
org.mars_sim.msp.core.equipment.Equipment
public abstract class Equipment
The Equipment class is an abstract class that represents a useful piece of equipment, such as a EVA suite or a medpack.
| Field Summary |
|---|
| Fields inherited from class org.mars_sim.msp.core.Unit |
|---|
CONTAINER_UNIT_EVENT, DESCRIPTION_EVENT, LOCATION_EVENT, MASS_EVENT, NAME_EVENT |
| Method Summary | |
|---|---|
void |
destroy()
Prepare object for garbage collection. |
Collection<Person> |
getAffectedPeople()
Gets a collection of people affected by this entity. |
SalvageInfo |
getSalvageInfo()
Gets the salvage info. |
boolean |
isSalvaged()
Checks if the item is salvaged. |
void |
startSalvage(SalvageProcessInfo info,
Settlement settlement)
Indicate the start of a salvage process on the item. |
| Methods inherited from class org.mars_sim.msp.core.Unit |
|---|
addUnitListener, compareTo, fireUnitUpdate, fireUnitUpdate, getBaseMass, getContainerUnit, getCoordinates, getDescription, getInventory, getMass, getName, getTopContainerUnit, getUnitManager, hasUnitListener, removeUnitListener, setBaseMass, setContainerUnit, setCoordinates, setDescription, setName, timePassing, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Collection<Person> getAffectedPeople()
public boolean isSalvaged()
isSalvaged in interface Salvagable
public void startSalvage(SalvageProcessInfo info,
Settlement settlement)
startSalvage in interface Salvagableinfo - the salvage process info.settlement - the settlement where the salvage is taking place.public SalvageInfo getSalvageInfo()
getSalvageInfo in interface Salvagablepublic void destroy()
Unit
destroy in class Unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||