|
||||||||||
| 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.PerformMathematicalModeling
public class PerformMathematicalModeling
A task for performing mathematical modeling in a laboratory for a scientific study.
| Field Summary |
|---|
| 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 | |
|---|---|
PerformMathematicalModeling(Person person)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addExperience(double time)
Adds experience to the person's skills used in this task. |
void |
endTask()
Ends the task and performs any final actions. |
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 double |
getProbability(Person person)
Returns the weighted probability that a person might perform this task. |
Person |
getResearchAssistant()
Gets the research assistant. |
Person |
getResearcher()
Gets the researcher who is being assisted. |
Science |
getResearchScience()
Gets the scientific field that is being researched for the study. |
boolean |
hasResearchAssistant()
Checks if there is a research assistant. |
protected double |
performMappedPhase(double time)
Performs the method mapped to the task's current phase. |
void |
setResearchAssistant(Person researchAssistant)
Sets the research assistant. |
| Methods inherited from class org.mars_sim.msp.core.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 |
|---|
public PerformMathematicalModeling(Person person)
throws java.lang.Exception
person - the person performing the task.
java.lang.Exception - if error creating task.| Method Detail |
|---|
public static double getProbability(Person person)
person - the person to perform the task
protected void addExperience(double time)
Task
addExperience in class Tasktime - the amount of time (ms) the person performed this task.public java.util.List<java.lang.String> getAssociatedSkills()
Task
getAssociatedSkills in class Taskpublic int getEffectiveSkillLevel()
Task
getEffectiveSkillLevel in class Task
protected double performMappedPhase(double time)
throws java.lang.Exception
Task
performMappedPhase in class Tasktime - the amount of time (millisol) the phase is to be performed.
java.lang.Exception - if error in performing phase or if phase cannot be found.public void endTask()
endTask in class Taskpublic Science getResearchScience()
getResearchScience in interface ResearchScientificStudypublic Person getResearcher()
getResearcher in interface ResearchScientificStudypublic boolean hasResearchAssistant()
hasResearchAssistant in interface ResearchScientificStudypublic Person getResearchAssistant()
getResearchAssistant in interface ResearchScientificStudypublic void setResearchAssistant(Person researchAssistant)
setResearchAssistant in interface ResearchScientificStudyresearchAssistant - the research assistant.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||