Methods Summary |
---|
public void | displayWardDetails()
System.out.println("Displaying ward details");
System.out.println("Ward name: " + wardName);
System.out.println("Number of beds: " + numberBeds);
System.out.println("Patient's name = "+patient.getName());
System.out.println("Patient's ID = "+patient.getID());
System.out.println("Patients last pulse = "+patient.getPulse());
|
public int | getNumberBeds()
return numberBeds;
|
public Patient | getPatient()
return patient;
|
public hospital.myprojects.Ward | getWard()
// To allow two-way message passing. Return a reference to
// 'this' Ward object
return this;
|
public java.lang.String | getWardName()
return wardName;
|
public void | setWardDetails(int numberBeds, java.lang.String wardName, Patient patient)
this.patient = patient;
this.numberBeds = numberBeds;
this.wardName = wardName;
|