org.mars_sim.msp.simulation.person.ai.task
Class ResearchAreology

java.lang.Object
  extended by org.mars_sim.msp.simulation.person.ai.task.Task
      extended by org.mars_sim.msp.simulation.person.ai.task.ResearchScience
          extended by org.mars_sim.msp.simulation.person.ai.task.ResearchAreology
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ResearchAreology
extends ResearchScience
implements java.io.Serializable

The ResearchAreology class is a task for scientific research in the field of areology.

See Also:
Serialized Form

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
ResearchAreology(Person person)
          Constructor This is an effort driven task.
 
Method Summary
static double getProbability(Person person)
          Returns the weighted probability that a person might perform this task.
protected  double researchingPhase(double time)
          Performs the researching phase.
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.task.ResearchScience
addExperience, endTask, getAssociatedSkills, getEffectiveSkillLevel, getLocalLab, performMappedPhase
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.task.Task
addPhase, compareTo, getCreateEvents, getCrowdingProbabilityModifier, getDescription, getDuration, getName, getPhase, 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

ResearchAreology

public ResearchAreology(Person person)
                 throws java.lang.Exception
Constructor This is an effort driven task.

Parameters:
person - the person to perform the task
Throws:
java.lang.Exception - if error constructing task.
Method Detail

getProbability

public static double getProbability(Person person)
Returns the weighted probability that a person might perform this task.

Parameters:
person - the person to perform the task
Returns:
the weighted probability that a person might perform this task

researchingPhase

protected double researchingPhase(double time)
                           throws java.lang.Exception
Description copied from class: ResearchScience
Performs the researching phase.

Overrides:
researchingPhase in class ResearchScience
Parameters:
time - the amount of time (millisols) to perform the phase.
Returns:
the amount of time (millisols) left over after performing the phase.
Throws:
java.lang.Exception - if error performing the phase.