Java Program to Simulate for a Hospital

Download Solution: Click to Download Solution
Solution File Name: SimulateHospital.docx
Unzip Password: prestobear.com

Problem:
Java Program to Simulate for a Hospital


1. PatientEvent.java
import java.util.LinkedList;
import java.util.Random;

/*
 * The class to simulate the arrival and the departure event
 */
public class PatientEvent {

}

2. PatientQueue.java
import java.util.LinkedList;
import java.util.PriorityQueue;


/*
 * The class to implement the PriorityQueue with the LinkedList
 * The LinkedList will play as the Queue withe the first in first out patient
 */
public class PatientQueue extends PriorityQueue{

}

3. PatientVisit.java

/**
 * A class to describe the visit of a patient, defined by the arrival time, the
 * urgency of the visit, and the length of the visit.
 */
public class PatientVisit {

}

4. PatientVisitGenerator.java

/**
 * A class to generate patient visits.
 * 
 */

public class PatientVisitGenerator {

}

5. TestSimulator.java
/*
 * The main class to test the simulator with the arrival and the departure event
 */
public class TestSimulator {

}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.