Class Need

java.lang.Object
  |
  +--Need

public class Need
extends Object

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

DESCRIPTIONS

protected static final String[][] DESCRIPTIONS
Descriptions for needs of different severities.


description

protected String description
Description of this.


severity

protected int severity
Severity of this.

Constructor Detail

Need

public Need()
Constructs a need.

Method Detail

getDescription

public String getDescription()
Returns the description of this.


initialStatus

public double initialStatus()
Returns an initial status corrsponding to this.


raise

public double raise(double aStatus)
Returns the raised status of the given patient's status.

Parameters:
aStatus - status to be raised

lower

public double lower(double aStatus)
Returns the lowered status of the given patient's status.

Parameters:
aStatus - status to be lowered