|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.person.medical.Medication
org.mars_sim.msp.core.person.medical.AntiStressMedication
public class AntiStressMedication
A medication that reduces stress.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
AntiStressMedication(Person person)
Constructor |
|
| Method Summary | |
|---|---|
void |
timePassing(double time)
Update the medication based on passing time. |
| Methods inherited from class org.mars_sim.msp.core.person.medical.Medication |
|---|
compareTo, equals, getDuration, getName, getPerson, getTimeElapsed, hashCode, isMedicated |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public AntiStressMedication(Person person)
person - the person taking the medication.| Method Detail |
|---|
public void timePassing(double time)
Medication
timePassing in class Medicationtime - amount of time (millisols).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||