FileDocCategorySizeDatePackage
Ward.javaAPI DocExample1191Sun Oct 28 11:37:22 GMT 2001hospital.myprojects

Ward

public class Ward extends Object

Fields Summary
private int
numberBeds
private String
wardName
private Patient
patient
Constructors Summary
Methods Summary
public voiddisplayWardDetails()

		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 intgetNumberBeds()

		return numberBeds;
	
public PatientgetPatient()

		return patient;
	
public hospital.myprojects.WardgetWard()

		// To allow two-way message passing.  Return a reference to 
		// 'this' Ward object
		return this;
	
public java.lang.StringgetWardName()

		return wardName;
	
public voidsetWardDetails(int numberBeds, java.lang.String wardName, Patient patient)

		this.patient = patient;
		this.numberBeds = numberBeds;
		this.wardName = wardName;