Search for Free 150,000+ Essays

Find more results for this search now!
CLICK the BUTTON to the RIGHT!

Need a Brand New Custom Essay Now?  click here

Set of Classes that Simulate a Doctor's Office using Queues

Uploaded by bigD on Feb 27, 2004

[code:1:c9fd6c6175]
/* keep in mind this is from multiple files */
import sdsu.io.*;
import java.util.Random;

class Driver1{
public static void main(String [] args){
Patient test = new Patient();
int time = 0;
int hoursOpen = 5;
int minutesOpen = hoursOpen * 60;
int checkInWait = 5;
int doctorMax = 25;
int checkOutWait = 2;
int patientFreq = 10;
int patientsWaiting = 5;
boolean clinicOpen = true;
int maxPatients = patientsWaiting + (minutesOpen / patientFreq);
int counter = 0;
Queue donePatients = new Queue(maxPatients);
Queue checkInLine = new Queue(maxPatients);
Patient checkInNurse = new Patient();
Queue doctorLine = new Queue(maxPatients);
Patient doctor = new Patient();
Queue checkOutLine = new Queue(maxPatients);
Patient checkOutNurse = new...

Sign In Now to Read Entire Essay

Not a Member?   Create Your FREE Account »

Comments / Reviews

read full essay >>

Already a Member?   Login Now >

This essay and THOUSANDS of
other essays are FREE at eCheat.

Uploaded by:   bigD

Date:   02/27/2004

Category:   Java

Length:   7 pages (1,521 words)

Views:   5134

Report this Essay Save Essay
Professionally written essays on this topic:

Set of Classes that Simulate a Doctor's Office using Queues

View more professionally written essays on this topic »