|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--Patient
A patient in a hospital.
Field Summary | |
protected static String[] |
LAST_NAMES
Last names for patients. |
protected String |
name
Name of this. |
protected Need |
need
Need of this. |
protected double |
status
Status of this. |
Constructor Summary | |
Patient()
Constructs a patient. |
Method Summary | |
String |
getName()
Returns the name of this. |
Need |
getNeed()
Returns the need of this. |
double |
getStatus()
Returns the status of this. |
void |
healOneMinute()
Causes this patient to heal for one minute. |
boolean |
isCritical()
Returns whether or not this is in critical condition. |
boolean |
isHealed()
Returns whether or not this is totally healed. |
boolean |
isSerious()
Returns whether or not this is in serious condition. |
boolean |
isStable()
Returns whether or not this is in stable condition. |
void |
waitOneMinute()
Causes this patient to wait for one minute. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String[] LAST_NAMES
protected String name
protected Need need
protected double status
Constructor Detail |
public Patient()
Method Detail |
public String getName()
public double getStatus()
public Need getNeed()
public boolean isCritical()
public boolean isSerious()
public boolean isStable()
public boolean isHealed()
public void waitOneMinute()
public void healOneMinute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |