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

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.ResearchMedicine
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ResearchMedicine
extends ResearchScience
implements java.io.Serializable

The ResearchBotany class is a task for researching medical science.

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
ResearchMedicine(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.
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.task.ResearchScience
addExperience, endTask, getAssociatedSkills, getEffectiveSkillLevel, getLocalLab, performMappedPhase, researchingPhase
 
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

ResearchMedicine

public ResearchMedicine(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