|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.Unit
org.mars_sim.msp.simulation.equipment.Equipment
org.mars_sim.msp.simulation.equipment.EVASuit
public class EVASuit
The EVASuit class represents an EVA suit which provides life support for a person during a EVA operation.
| Field Summary | |
|---|---|
protected MalfunctionManager |
malfunctionManager
|
static java.lang.String |
TYPE
|
| Fields inherited from class org.mars_sim.msp.simulation.Unit |
|---|
CONTAINER_UNIT_EVENT, DESCRIPTION_EVENT, LOCATION_EVENT, MASS_EVENT, NAME_EVENT |
| Constructor Summary | |
|---|---|
EVASuit(Coordinates location)
Constructor |
|
| Method Summary | |
|---|---|
java.util.Collection<Person> |
getAffectedPeople()
Gets a collection of people affected by this entity. |
double |
getAirPressure()
Gets the air pressure of the life support system. |
int |
getLifeSupportCapacity()
Gets the number of people the life support can provide for. |
MalfunctionManager |
getMalfunctionManager()
Gets the unit's malfunction manager. |
double |
getTemperature()
Gets the temperature of the life support system. |
boolean |
isFullyLoaded()
Checks to see if the inventory is at full capacity with oxygen and water. |
boolean |
lifeSupportCheck()
Returns true if life support is working properly and is not out of oxygen or water. |
double |
provideOxygen(double amountRequested)
Gets oxygen from system. |
double |
provideWater(double amountRequested)
Gets water from the system. |
void |
timePassing(double time)
Time passing for EVA suit. |
| Methods inherited from class org.mars_sim.msp.simulation.Unit |
|---|
addUnitListener, fireUnitUpdate, fireUnitUpdate, getBaseMass, getContainerUnit, getCoordinates, getDescription, getInventory, getMass, getName, getTopContainerUnit, getUnitManager, removeUnitListener, setBaseMass, setContainerUnit, setCoordinates, setDescription, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mars_sim.msp.simulation.malfunction.Malfunctionable |
|---|
getInventory, getName |
| Field Detail |
|---|
public static final java.lang.String TYPE
protected MalfunctionManager malfunctionManager
| Constructor Detail |
|---|
public EVASuit(Coordinates location)
throws java.lang.Exception
location - the location of the EVA suit.
java.lang.Exception - if error creating EVASuit.| Method Detail |
|---|
public MalfunctionManager getMalfunctionManager()
getMalfunctionManager in interface Malfunctionable
public boolean lifeSupportCheck()
throws java.lang.Exception
lifeSupportCheck in interface LifeSupportjava.lang.Exception - if error checking life support.public int getLifeSupportCapacity()
getLifeSupportCapacity in interface LifeSupport
public double provideOxygen(double amountRequested)
throws java.lang.Exception
provideOxygen in interface LifeSupportamountRequested - the amount of oxygen requested from system (kg)
java.lang.Exception - if error providing oxygen.
public double provideWater(double amountRequested)
throws java.lang.Exception
provideWater in interface LifeSupportamountRequested - the amount of water requested from system (kg)
java.lang.Exception - if error providing water.public double getAirPressure()
getAirPressure in interface LifeSupportpublic double getTemperature()
getTemperature in interface LifeSupport
public boolean isFullyLoaded()
throws java.lang.Exception
java.lang.Exception - if error checking inventory.
public void timePassing(double time)
throws java.lang.Exception
timePassing in class Unittime - the amount of time passing (millisols)
java.lang.Exception - if error during time.public java.util.Collection<Person> getAffectedPeople()
Equipment
getAffectedPeople in interface MalfunctionablegetAffectedPeople in class Equipment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||