|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.Airlock
org.mars_sim.msp.simulation.structure.building.function.BuildingAirlock
public class BuildingAirlock
The BuildingAirlock class represents an airlock for a building.
Field Summary |
---|
Fields inherited from class org.mars_sim.msp.simulation.Airlock |
---|
pressurized |
Constructor Summary | |
---|---|
BuildingAirlock(Building building,
int capacity)
Constructor |
Method Summary | |
---|---|
boolean |
enterAirlock(Person person,
boolean inside)
Enters a person into the airlock from either the inside or the outside. |
protected void |
exitAirlock(Person person)
Causes a person within the airlock to exit either inside or outside. |
Inventory |
getEntityInventory()
Gets the inventory of the entity this airlock is attached to. |
java.lang.String |
getEntityName()
Gets the name of the entity this airlock is attached to. |
Methods inherited from class org.mars_sim.msp.simulation.Airlock |
---|
activateAirlock, addActivationTime, inAirlock, isInnerDoorOpen, isOuterDoorOpen, timePassing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildingAirlock(Building building, int capacity)
building
- the building this airlock of for.capacity
- number of people airlock can hold.
java.lang.IllegalArgumentException
- if building is not valid or if
capacity is less than one.Method Detail |
---|
public boolean enterAirlock(Person person, boolean inside)
enterAirlock
in class Airlock
person
- the person to enter the airlockinside
- true if person is entering from inside
false if person is entering from outside
protected void exitAirlock(Person person) throws java.lang.Exception
exitAirlock
in class Airlock
person
- the person to exit.
java.lang.Exception
- if person is not in the airlock.public java.lang.String getEntityName()
getEntityName
in class Airlock
public Inventory getEntityInventory()
getEntityInventory
in class Airlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |