|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifeSupport
This interface represents a Life Support system that provides Oxygen, Water Temperature and Air Pressure to a Person. Implementations of this interface are used by the PhysicalCondition entity.
PhysicalCondition
Method Summary | |
---|---|
double |
getAirPressure()
Gets the air pressure of the life support system. |
int |
getLifeSupportCapacity()
Gets the number of people the life support system can provide for. |
double |
getTemperature()
Gets the temperature of the life support system. |
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 system. |
Method Detail |
---|
boolean lifeSupportCheck() throws java.lang.Exception
java.lang.Exception
- if error checking life support.int getLifeSupportCapacity()
double provideOxygen(double amountRequested) throws java.lang.Exception
amountRequested
- the amount of oxygen requested from system (kg)
java.lang.Exception
- if error providing oxygen.double provideWater(double amountRequested) throws java.lang.Exception
amountRequested
- the amount of water requested from system (kg)
java.lang.Exception
- if error providing water.double getAirPressure()
double getTemperature()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |