org.mars_sim.msp.core.person.medical
Class AntiStressMedication

java.lang.Object
  extended by org.mars_sim.msp.core.person.medical.Medication
      extended by org.mars_sim.msp.core.person.medical.AntiStressMedication
All Implemented Interfaces:
Serializable, Comparable<Medication>

public class AntiStressMedication
extends Medication
implements Serializable

A medication that reduces stress.

See Also:
Serialized Form

Field Summary
static 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

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

AntiStressMedication

public AntiStressMedication(Person person)
Constructor

Parameters:
person - the person taking the medication.
Method Detail

timePassing

public void timePassing(double time)
Description copied from class: Medication
Update the medication based on passing time. Child classes should override for other medical effects.

Overrides:
timePassing in class Medication
Parameters:
time - amount of time (millisols).


Copyright © 2009-2013. All Rights Reserved.