|
||||||||||
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.EVAOperation
public abstract class EVAOperation
The EVAOperation class is an abstract task that involves an extra vehicular activity.
Field Summary | |
---|---|
static double |
BASE_ACCIDENT_CHANCE
|
protected Unit |
containerUnit
|
protected static java.lang.String |
ENTER_AIRLOCK
|
protected boolean |
enteredAirlock
|
protected static java.lang.String |
EXIT_AIRLOCK
|
protected boolean |
exitedAirlock
|
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 | |
---|---|
EVAOperation(java.lang.String name,
Person person)
Constructor |
Method Summary | |
---|---|
protected void |
checkForAccident(double time)
Check for accident with EVA suit. |
void |
endEVA()
|
protected double |
enterAirlock(double time,
Airlock airlock)
Perform the enter airlock phase of the task. |
protected double |
exitAirlock(double time,
Airlock airlock)
Perform the exit airlock phase of the task. |
static Airlock |
getAvailableAirlock(Person person)
Gets an available airlock for a person. |
protected boolean |
shouldEndEVAOperation()
Checks if situation requires the EVA operation to end prematurely and the person should return to the airlock. |
Methods inherited from class org.mars_sim.msp.simulation.person.ai.task.Task |
---|
addExperience, addPhase, compareTo, endTask, getAssociatedSkills, getCreateEvents, getCrowdingProbabilityModifier, getDescription, getDuration, getEffectiveSkillLevel, getName, getPhase, getProbability, getRelationshipModifier, getSubTask, getTeacher, getTeachingExperienceModifier, getTimeCompleted, getTopPhase, hasTeacher, isDone, isEffortDriven, performMappedPhase, 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 |
Field Detail |
---|
protected static final java.lang.String EXIT_AIRLOCK
protected static final java.lang.String ENTER_AIRLOCK
public static final double BASE_ACCIDENT_CHANCE
protected boolean exitedAirlock
protected boolean enteredAirlock
protected Unit containerUnit
Constructor Detail |
---|
public EVAOperation(java.lang.String name, Person person) throws java.lang.Exception
name
- the name of the taskperson
- the person to perform the task
java.lang.Exception
- if task could not be constructed.Method Detail |
---|
public void endEVA()
protected double exitAirlock(double time, Airlock airlock) throws java.lang.Exception
time
- the time to perform this phase (in millisols)airlock
- the airlock
java.lang.Exception
- if person cannot exit through the airlock.protected double enterAirlock(double time, Airlock airlock) throws java.lang.Exception
time
- the time to perform this phase (in millisols)airlock
- the airlock
java.lang.Exception
- if person cannot enter the airlock.protected boolean shouldEndEVAOperation()
protected void checkForAccident(double time)
time
- the amount of time on EVA (in millisols)public static Airlock getAvailableAirlock(Person person)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |