|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.model.Patient
public class Patient
Represents a single patient with a necessary medication schedule and a device maintained by periodic schedule updates.
Constructor Summary | |
---|---|
Patient(java.lang.String patientName)
Creates a new patient representation with the specified name, a blank schedule for four bins, and a lastUpdate set to the zero time (Dec 31, 1969). |
Method Summary | |
---|---|
java.util.Date |
getLastUpdate()
Returns a Date instance representing the last update data and time. |
java.lang.String |
getPatientName()
Returns a String representation of the patient's name. |
Schedule |
getSchedule()
Returns the schedule instance pertaining to this patient. |
void |
setLastUpdate(java.util.Date lastUpdate)
Sets the last device update time and date. |
void |
setPatientName(java.lang.String patientName)
Sets the patient's name to the specified argument. |
void |
setSchedule(Schedule schedule)
Sets the patients schedules to a new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Patient(java.lang.String patientName)
patientName
- the name given to the new patient instanceMethod Detail |
---|
public void setPatientName(java.lang.String patientName)
patientName
- the new name for this patient instancepublic void setLastUpdate(java.util.Date lastUpdate)
lastUpdate
- the new update Date instancepublic void setSchedule(Schedule schedule)
schedule
- the new schedule for this patientpublic java.lang.String getPatientName()
public java.util.Date getLastUpdate()
Date
public Schedule getSchedule()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |