|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.person.ai.task.Task
org.mars_sim.msp.core.person.ai.task.EVAOperation
org.mars_sim.msp.core.person.ai.task.ConstructBuilding
public class ConstructBuilding
Task for constructing a building construction site stage.
| Field Summary | |
|---|---|
static double |
BASE_LUV_ACCIDENT_CHANCE
|
| Fields inherited from class org.mars_sim.msp.core.person.ai.task.EVAOperation |
|---|
BASE_ACCIDENT_CHANCE, containerUnit, ENTER_AIRLOCK, enteredAirlock, EXIT_AIRLOCK, exitedAirlock |
| Fields inherited from class org.mars_sim.msp.core.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 | |
|---|---|
ConstructBuilding(Person person,
ConstructionStage stage,
ConstructionSite site,
List<GroundVehicle> vehicles)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addExperience(double time)
Adds experience to the person's skills used in this task. |
static boolean |
canConstruct(Person person)
Checks if a given person can work on construction at this time. |
protected void |
checkForAccident(double time)
Check for accident with EVA suit. |
void |
destroy()
Prepare object for garbage collection. |
List<String> |
getAssociatedSkills()
Gets a list of the skills associated with this task. |
ConstructionStage |
getConstructionStage()
Gets the construction stage that is being worked on. |
int |
getEffectiveSkillLevel()
Gets the effective skill level a person has at this task. |
protected double |
performMappedPhase(double time)
Performs the method mapped to the task's current phase. |
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.core.person.ai.task.EVAOperation |
|---|
endEVA, enterAirlock, exitAirlock, getAvailableAirlock |
| Methods inherited from class org.mars_sim.msp.core.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 |
| Field Detail |
|---|
public static final double BASE_LUV_ACCIDENT_CHANCE
| Constructor Detail |
|---|
public ConstructBuilding(Person person,
ConstructionStage stage,
ConstructionSite site,
List<GroundVehicle> vehicles)
person - the person performing the task.stage - the construction site stage.vehicles - the construction vehicles.
Exception - if error constructing task.| Method Detail |
|---|
public static boolean canConstruct(Person person)
person - the person.
protected double performMappedPhase(double time)
Task
performMappedPhase in class Tasktime - the amount of time (millisol) the phase is to be performed.
public int getEffectiveSkillLevel()
Task
getEffectiveSkillLevel in class Taskpublic List<String> getAssociatedSkills()
Task
getAssociatedSkills in class Taskprotected void addExperience(double time)
Task
addExperience in class Tasktime - the amount of time (ms) the person performed this task.protected void checkForAccident(double time)
EVAOperation
checkForAccident in class EVAOperationtime - the amount of time on EVA (in millisols)protected boolean shouldEndEVAOperation()
EVAOperation
shouldEndEVAOperation in class EVAOperationpublic ConstructionStage getConstructionStage()
public void destroy()
Task
destroy in class EVAOperation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||