|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.person.medical.Treatment
public class Treatment
This class represents a Medical treatment that can be applied to a Person to cure a complaint.
Constructor Summary | |
---|---|
Treatment(java.lang.String name,
int skill,
double duration,
boolean selfAdmin,
boolean retainAid,
int facilityLevel)
Create a Treatment. |
Method Summary | |
---|---|
int |
compareTo(Treatment otherTreatment)
Compare this object with another |
boolean |
equals(java.lang.Object other)
Check this object with another object. |
double |
getAdjustedDuration(int skill)
Get the time required to perform this treatment by a Person with the appropriate skill rating. |
double |
getDuration()
Return the theoritical duration of this treatment. |
int |
getFacilityLevel()
Get the required facility level |
java.lang.String |
getName()
Return the name of the treatment |
boolean |
getRetainAid()
Does this Treatment require the sufferer to continue to use any MedicalAids. |
boolean |
getSelfAdminister()
Can the treatment be self administered. |
int |
getSkill()
Return the Medical skill requried for this treatment |
int |
hashCode()
Hash code vlaue for this object. |
java.lang.String |
toString()
Return string representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Treatment(java.lang.String name, int skill, double duration, boolean selfAdmin, boolean retainAid, int facilityLevel)
name
- The unique name.skill
- Required Medical skill.duration
- The duration of treatment in millisols.retainAid
- Does the recovery after treatment require the medical aidMethod Detail |
---|
public int compareTo(Treatment otherTreatment)
compareTo
in interface java.lang.Comparable<Treatment>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- Object to compare.
public double getAdjustedDuration(int skill)
skill
- The skill rating that will apply the treatment.
public double getDuration()
public int getFacilityLevel()
public java.lang.String getName()
public boolean getRetainAid()
public int getSkill()
public boolean getSelfAdminister()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |