|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Need
A reason for a patient to go to the hospital.
Field Summary | |
protected String |
description
Description of this. |
protected static String[][] |
DESCRIPTIONS
Descriptions for needs of different severities. |
protected int |
severity
Severity of this. |
Constructor Summary | |
Need()
Constructs a need. |
Method Summary | |
String |
getDescription()
Returns the description of this. |
double |
initialStatus()
Returns an initial status corrsponding to this. |
double |
lower(double aStatus)
Returns the lowered status of the given patient's status. |
double |
raise(double aStatus)
Returns the raised status of the given patient's status. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String[][] DESCRIPTIONS
protected String description
protected int severity
Constructor Detail |
public Need()
Method Detail |
public String getDescription()
public double initialStatus()
public double raise(double aStatus)
aStatus
- status to be raisedpublic double lower(double aStatus)
aStatus
- status to be lowered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |