org.mars_sim.msp.core.person.ai.task
Class Yoga
java.lang.Object
org.mars_sim.msp.core.person.ai.task.Task
org.mars_sim.msp.core.person.ai.task.Yoga
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class Yoga
- extends Task
- implements java.io.Serializable
- See Also:
- Serialized Form
| 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 |
| Methods inherited from class org.mars_sim.msp.core.person.ai.task.Task |
addPhase, compareTo, endTask, 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 |
Yoga
public Yoga(Person person)
throws java.lang.Exception
- Throws:
java.lang.Exception
getProbability
public static double getProbability(Person person)
addExperience
protected void addExperience(double time)
- Description copied from class:
Task
- Adds experience to the person's skills used in this task.
- Specified by:
addExperience in class Task
- Parameters:
time - the amount of time (ms) the person performed this task.
getAssociatedSkills
public java.util.List<java.lang.String> getAssociatedSkills()
- Description copied from class:
Task
- Gets a list of the skills associated with this task.
May be empty list if no associated skills.
- Specified by:
getAssociatedSkills in class Task
- Returns:
- list of skills as strings
getEffectiveSkillLevel
public int getEffectiveSkillLevel()
- Description copied from class:
Task
- Gets the effective skill level a person has at this task.
- Specified by:
getEffectiveSkillLevel in class Task
- Returns:
- effective skill level
performMappedPhase
protected double performMappedPhase(double time)
throws java.lang.Exception
- Description copied from class:
Task
- Performs the method mapped to the task's current phase.
- Specified by:
performMappedPhase in class Task
- Parameters:
time - the amount of time (millisol) the phase is to be performed.
- Returns:
- the remaining time (millisol) after the phase has been performed.
- Throws:
java.lang.Exception - if error in performing phase or if phase cannot be found.