Hospital - import java.util import java.io import...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; import java.io.*; import java.lang.ClassNotFoundException; public class Hospital implements Serializable { private double currentPayroll; private MySortedSLL<Employable> employees; private int numEmployees; public Hospital() { currentPayroll = 0; employees = new MySortedSLL(); } public Hospital(File file) { try{ loadHospital(file); } catch( NullPointerException npe ){ currentPayroll = 0; employees = new MySortedSLL(); } catch( FileNotFoundException fnfe ){ currentPayroll = 0; employees = new MySortedSLL(); } catch(IOException ioe) { currentPayroll = 0.0D; employees = new MySortedSLL(); } } public Hospital(MySortedSLL employees) { setEmployees(employees); } public double getCurrentPayroll(){ return currentPayroll; } public MySortedSLL<Employable> getEmployees(){ return employees; } public int getNumEmployees(){ return numEmployees; } public void setCurrentPayroll(double currentPayroll){ this.currentPayroll = currentPayroll; } public void setEmployees(MySortedSLL<Employable> employees) { this.employees = new MySortedSLL(); Employable employ;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
currentPayroll = 0.0D;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/25/2010 for the course CIS CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Page1 / 4

Hospital - import java.util import java.io import...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online