|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.Airlock
public abstract class Airlock
The Airlock class represents an airlock to a vehicle or structure.
| Field Summary | |
|---|---|
protected boolean |
pressurized
|
| Constructor Summary | |
|---|---|
Airlock(int capacity)
Constructs an airlock object for a unit. |
|
| Method Summary | |
|---|---|
boolean |
activateAirlock()
Activates the airlock if it is not already activated. |
double |
addActivationTime(double time)
Activate the airlock for a period of time. |
boolean |
enterAirlock(Person person,
boolean inside)
Enters a person into the airlock from either the inside or the outside. |
protected abstract void |
exitAirlock(Person person)
Causes a person within the airlock to exit either inside or outside. |
abstract Inventory |
getEntityInventory()
Gets the inventory of the entity this airlock is attached to. |
abstract java.lang.String |
getEntityName()
Gets the name of the entity this airlock is attached to. |
boolean |
inAirlock(Person person)
Checks if given person is currently in the airlock. |
boolean |
isInnerDoorOpen()
Checks if the airlock's inner door is open. |
boolean |
isOuterDoorOpen()
Checks if the airlock's outer door is open. |
void |
timePassing(double time)
Operates the airlock for the given amount of time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean pressurized
| Constructor Detail |
|---|
public Airlock(int capacity)
throws java.lang.IllegalArgumentException
capacity - number of people airlock can hold.
java.lang.IllegalArgumentException - if capacity is less than one.| Method Detail |
|---|
public boolean enterAirlock(Person person,
boolean inside)
person - the person to enter the airlockinside - true if person is entering from inside
false if person is entering from outside
public boolean activateAirlock()
public double addActivationTime(double time)
time - activation time (millisols)
protected abstract void exitAirlock(Person person)
throws java.lang.Exception
person - the person to exit.
java.lang.Exception - if person is not in the airlock.public boolean isOuterDoorOpen()
public boolean isInnerDoorOpen()
public void timePassing(double time)
time - amount of time (in millisols)public boolean inAirlock(Person person)
person - to be checked
public abstract java.lang.String getEntityName()
public abstract Inventory getEntityInventory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||