|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.person.ai.task.Task
org.mars_sim.msp.simulation.person.ai.task.ExitAirlock
public class ExitAirlock
The ExitAirlock class is a task for exiting a airlock from an EVA operation.
Field Summary |
---|
Fields inherited from class org.mars_sim.msp.simulation.person.ai.task.Task |
---|
effortDriven, hasDuration, person, phaseTimeCompleted, phaseTimeRequired, stressModifier, subTask, TASK_DESC_EVENT, TASK_ENDED_EVENT, TASK_NAME_EVENT, TASK_PHASE_EVENT, TASK_SUBTASK_EVENT |
Constructor Summary | |
---|---|
ExitAirlock(Person person,
Airlock airlock)
Constructs an ExitAirlock object |
Method Summary | |
---|---|
protected void |
addExperience(double time)
Adds experience to the person's skills used in this task. |
static boolean |
canExitAirlock(Person person,
Airlock airlock)
Checks if a person can exit an airlock on an EVA. |
java.util.List<java.lang.String> |
getAssociatedSkills()
Gets a list of the skills associated with this task. |
int |
getEffectiveSkillLevel()
Gets the effective skill level a person has at this task. |
static EVASuit |
getGoodEVASuit(Inventory inv)
Gets a good EVA suit from an inventory. |
static boolean |
goodEVASuitAvailable(Inventory inv)
Checks if a good EVA suit is in entity inventory. |
protected double |
performMappedPhase(double time)
Performs the method mapped to the task's current phase. |
Methods inherited from class org.mars_sim.msp.simulation.person.ai.task.Task |
---|
addPhase, compareTo, endTask, getCreateEvents, getCrowdingProbabilityModifier, getDescription, getDuration, getName, getPhase, getProbability, getRelationshipModifier, getSubTask, getTeacher, getTeachingExperienceModifier, getTimeCompleted, getTopPhase, hasTeacher, isDone, isEffortDriven, setCreateEvents, setDescription, setDuration, setName, setPhase, setStressModifier, setTeacher, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExitAirlock(Person person, Airlock airlock) throws java.lang.Exception
person
- the person to perform the taskairlock
- the airlock to use.
java.lang.Exception
- if error constructing task.Method Detail |
---|
protected double performMappedPhase(double time) throws java.lang.Exception
performMappedPhase
in class Task
time
- the amount of time (millisols) the phase is to be performed.
java.lang.Exception
- if error in performing phase or if phase cannot be found.protected void addExperience(double time)
addExperience
in class Task
time
- the amount of time (ms) the person performed this task.public static boolean canExitAirlock(Person person, Airlock airlock)
person
- the person exitingairlock
- the airlock to be used
public static boolean goodEVASuitAvailable(Inventory inv)
inv
- the inventory to check.
public static EVASuit getGoodEVASuit(Inventory inv)
inv
- the inventory to check.
public int getEffectiveSkillLevel()
getEffectiveSkillLevel
in class Task
public java.util.List<java.lang.String> getAssociatedSkills()
getAssociatedSkills
in class Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |