SlideShare a Scribd company logo
Objective: Min-heap queue with customized comparator
Hospital emergency room assign patient priority base on symptom of the patient. Each patient
receives an identity number which prioritizes the order of emergency for the patient. The lower
the number is, the higher the emergency will be.
Use java.util.PriorityQueue to write a java program to create the emergency room registration
database. The patient.txt is the input file for patient record. Download patient.txt, Patient.java to
perform following specifications:
(a)Load all records from the input file.
(b)At the end, print the list in assigned priority order.
Given Code:
//*******************************************************************
// Patient.java
//*******************************************************************
public class Patient
{
private int id;
private String name;
private String emergencyCase;
//----------------------------------------------------------------
// Creates a customer with the specified id number.
//----------------------------------------------------------------
public Patient (int number, String custName,String er )
{
id = number;
name = custName;
emergencyCase = er;
}
//----------------------------------------------------------------
// Returns a string description of this customer.
//----------------------------------------------------------------
public String toString()
{
return "Patient priority id: " + id+" Patient name: "+name+" Symptom: "+emergencyCase;
}
public String getName()
{
return name;
}
public int getId()
{
return id;
}
public String getCase()
{
return emergencyCase;
}
}
/** Source code example for "A Practical Introduction to Data
Structures and Algorithm Analysis, 3rd Edition (Java)"
by Clifford A. Shaffer
Copyright 2008-2011 by Clifford A. Shaffer
*/
import java.util.*;
import java.math.*;
/** A bunch of utility functions. */
class DSutil {
/** Swap two Objects in an array
@param A The array
@param p1 Index of one Object in A
@param p2 Index of another Object A
*/
public static void swap(E[] A, int p1, int p2) {
E temp = A[p1];
A[p1] = A[p2];
A[p2] = temp;
}
/** Randomly permute the Objects in an array.
@param A The array
*/
// int version
// Randomly permute the values of array "A"
static void permute(int[] A) {
for (int i = A.length; i > 0; i--) // for each i
swap(A, i-1, DSutil.random(i)); // swap A[i-1] with
} // a random element
public static void swap(int[] A, int p1, int p2) {
int temp = A[p1];
A[p1] = A[p2];
A[p2] = temp;
}
/** Randomly permute the values in array A */
static void permute(E[] A) {
for (int i = A.length; i > 0; i--) // for each i
swap(A, i-1, DSutil.random(i)); // swap A[i-1] with
} // a random element
/** Initialize the random variable */
static private Random value = new Random(); // Hold the Random class object
/** Create a random number function from the standard Java Random
class. Turn it into a uniformly distributed value within the
range 0 to n-1 by taking the value mod n.
@param n The upper bound for the range.
@return A value in the range 0 to n-1.
*/
static int random(int n) {
return Math.abs(value.nextInt()) % n;
}
}
Text FIle:
10,Sam,Bleeding
02,Carla,Stroke
92,Woody,Flu
11,Diane,High-temperature
32,Norm,Stomach
55,Cliff,Broken-bone
06,Tom,Gun-wounds
22,Kristen,Pregnancy
Solution
Code:
//Include libraries
import java.util.Date;
import java.util.Random;
import java.util.Comparator;
import java.util.PriorityQueue;
//Define class Patient
class Patient
{
//Define variables
protected String name;
protected int lcategory;
protected Date ltimeArrived;
//Define method lgetName()
public String lgetName()
{
return name;
}
//Define method lsetName()
public void lsetName(String lnameIn)
{
this.name = lnameIn;
}
//Define lgetCategory()
public int lgetCategory()
{
return lcategory;
}
//Define lsetCategory()
public void lsetCategory(int lcategoryIn)
{
this.lcategory = lcategoryIn;
}
//Define getTimeArrived()
public java.util.Date getTimeArrived()
{
return ltimeArrived;
}
// Define default constructor
public Patient()
{
this.name = "Default Name"; this.lcategory = 5;
// Place to queue end
this.ltimeArrived = new Date();
}
//Define overloaded constructor
public Patient(String lnameIn, int lcategoryIn)
{
this.name = lnameIn;
this.lcategory = lcategoryIn;
this.ltimeArrived = new Date();
}
}
//Define class PatientComparator
class PatientComparator implements Comparator
{
//Define compare()
public int compare(Patient lp1, Patient lp2)
{
//Compare lcategory
if (lp1.lgetCategory() < lp2.lgetCategory())
return -1;
if (lp1.lgetCategory() > lp2.lgetCategory())
return 1;
else
{
if (lp1.getTimeArrived().before(lp2.getTimeArrived()))
return -1;
if (lp1.getTimeArrived().after(lp2.getTimeArrived()))
return 1;
}
return 0;
}
}
//Define class lPatientQueue
class lPatientQueue
{
PriorityQueue lpq;
//Define constructor
public lPatientQueue()
{
this.lpq = new PriorityQueue(1, new PatientComparator());
}
//Define lregisterPatient()
public void lregisterPatient(Patient p)
{
this.lpq.add(p);
}
//Define lgetNextPatient()
public Patient lgetNextPatient()
{
return (Patient) this.lpq.poll();
}
}
//Define class lEmergency
public class lEmergency
{
//Declare variables
private static final int lWAIT_LIMIT = 3000;
lPatientQueue lpq = new lPatientQueue();
private void lt()
{
try
{
Thread.sleep(new Random().nextInt(lWAIT_LIMIT));
} catch (InterruptedException le)
{
}
}
//Define lpatientArrives()
private void lpatientArrives(Patient p)
{
lpq.lregisterPatient(p);
System.out.println(" ARRIVAL: " + p.lgetName());
System.out.println(" time arrived: " + p.getTimeArrived());
System.out.println(" lcategory: " + p.lgetCategory());
System.out.println("------------------------------------"); lt();
} // end lpatientArrives method
private void ldoctorVisits()
{
Patient p = lpq.lgetNextPatient();
System.out.println(" VISIT: " + p.lgetName());
System.out.println(" time arrived: " + p.getTimeArrived());
System.out.println(" lcategory: " + p.lgetCategory());
System.out.println("------------------------------------");
lt();
} // end ldoctorVisits method
private void lsimulate()
{
System.out.println("------------------------------------");
System.out.println("ER OPEN");
System.out.println("------------------------------------");
lpatientArrives(new Patient("ABC", 3));
lpatientArrives(new Patient("XYZ", 1));
lpatientArrives(new Patient("DFC YUH", 2));
ldoctorVisits();
lpatientArrives(new Patient("QWE TYU", 2));
lpatientArrives(new Patient("Hen Kno", 4));
lpatientArrives(new Patient("Pat Hen", 2));
ldoctorVisits();
ldoctorVisits();
lpatientArrives(new Patient("Mar DrP", 1));
lpatientArrives(new Patient("Sam Adam", 3));
ldoctorVisits();
ldoctorVisits();
ldoctorVisits();
ldoctorVisits();
ldoctorVisits();
System.out.println("------------------------------------");
System.out.println("ER CLOSED");
System.out.println("------------------------------------");
} // end lsimulate method
public static void main(String[] args)
{
lEmergency ler = new lEmergency();
ler.lsimulate();
}
}
Sample Output:
E:Javajdk1.7.0_80bin>javac lEmergency.java
E:Javajdk1.7.0_80bin>java lEmergency
------------------------------------
ER OPEN
------------------------------------
ARRIVAL: ABC
time arrived: Wed Nov 23 10:25:59 PST 2016
lcategory: 3
------------------------------------
ARRIVAL: XYZ
time arrived: Wed Nov 23 10:26:00 PST 2016
lcategory: 1
------------------------------------
ARRIVAL: DFC YUH
time arrived: Wed Nov 23 10:26:02 PST 2016
lcategory: 2
------------------------------------
VISIT: XYZ
time arrived: Wed Nov 23 10:26:00 PST 2016
lcategory: 1
------------------------------------
ARRIVAL: QWE TYU
time arrived: Wed Nov 23 10:26:06 PST 2016
lcategory: 2
------------------------------------
ARRIVAL: Hen Kno
time arrived: Wed Nov 23 10:26:07 PST 2016
lcategory: 4
------------------------------------
ARRIVAL: Pat Hen
time arrived: Wed Nov 23 10:26:09 PST 2016
lcategory: 2
------------------------------------
VISIT: DFC YUH
time arrived: Wed Nov 23 10:26:02 PST 2016
lcategory: 2
------------------------------------
VISIT: QWE TYU
time arrived: Wed Nov 23 10:26:06 PST 2016
lcategory: 2
------------------------------------
ARRIVAL: Mar DrP
time arrived: Wed Nov 23 10:26:12 PST 2016
lcategory: 1
------------------------------------
ARRIVAL: Sam Adam
time arrived: Wed Nov 23 10:26:14 PST 2016
lcategory: 3
------------------------------------
VISIT: Mar DrP
time arrived: Wed Nov 23 10:26:12 PST 2016
lcategory: 1
------------------------------------
VISIT: Pat Hen
time arrived: Wed Nov 23 10:26:09 PST 2016
lcategory: 2
------------------------------------
VISIT: ABC
time arrived: Wed Nov 23 10:25:59 PST 2016
lcategory: 3
------------------------------------
VISIT: Sam Adam
time arrived: Wed Nov 23 10:26:14 PST 2016
lcategory: 3
------------------------------------
VISIT: Hen Kno
time arrived: Wed Nov 23 10:26:07 PST 2016
lcategory: 4
------------------------------------
------------------------------------
ER CLOSED
------------------------------------
E:Javajdk1.7.0_80bin>

More Related Content

PDF
Priority Queue as a Heap ArrayEmergency Room Patient AdmittanceO.pdf
PDF
Here is how the code works1. Patient.java is an Abstract Class whi.pdf
PDF
Patient.java package A9.toStudents; public class Patient imple.pdf
PDF
Sorting Questions (JAVA)See attached classes below.Attached Clas.pdf
PDF
programming Code in C thatloops requesting information about patie.pdf
PDF
package s3; Copy paste this Java Template and save it as Emer.pdf
PDF
Hospital management project_BY RITIKA SAHU.
PDF
Computer Science class 12
Priority Queue as a Heap ArrayEmergency Room Patient AdmittanceO.pdf
Here is how the code works1. Patient.java is an Abstract Class whi.pdf
Patient.java package A9.toStudents; public class Patient imple.pdf
Sorting Questions (JAVA)See attached classes below.Attached Clas.pdf
programming Code in C thatloops requesting information about patie.pdf
package s3; Copy paste this Java Template and save it as Emer.pdf
Hospital management project_BY RITIKA SAHU.
Computer Science class 12

Similar to Objective Min-heap queue with customized comparatorHospital emerg.pdf (15)

PDF
package patienttest;import java.util.Comparator; import java..pdf
DOCX
package algs13;import stdlib.;import java.util.Iterator;im.docx
PDF
Kupdf.com 292609858 computer-science-c-project-on-hospital-management-system-...
PDF
First come first serve scheduling algorithm (FCFS) is the process th.pdf
PDF
Need help with this Java practice project. Im brand new to coding s.pdf
DOCX
Assg 11 Priority Queues and Queue ApplicationsCOSC 2336 S.docx
DOCX
EmptyCollectionException-java -- - Represents the situation in which.docx
PDF
Operating System Lab Manual
DOCX
PQTimer.java A simple driver program to run timing t.docx
DOCX
Hospital management system
PDF
public class Patient extends Person {=========== Properties ====.pdf
PDF
Works Applications Test - Chinmay Chauhan
PDF
For problems 3 and 4, consider the following functions that implemen.pdf
PDF
Question I need help with c++ Simple Classes Assigment. i get this .pdf
PDF
Implement in C++Create a class named Doctor that has three member .pdf
package patienttest;import java.util.Comparator; import java..pdf
package algs13;import stdlib.;import java.util.Iterator;im.docx
Kupdf.com 292609858 computer-science-c-project-on-hospital-management-system-...
First come first serve scheduling algorithm (FCFS) is the process th.pdf
Need help with this Java practice project. Im brand new to coding s.pdf
Assg 11 Priority Queues and Queue ApplicationsCOSC 2336 S.docx
EmptyCollectionException-java -- - Represents the situation in which.docx
Operating System Lab Manual
PQTimer.java A simple driver program to run timing t.docx
Hospital management system
public class Patient extends Person {=========== Properties ====.pdf
Works Applications Test - Chinmay Chauhan
For problems 3 and 4, consider the following functions that implemen.pdf
Question I need help with c++ Simple Classes Assigment. i get this .pdf
Implement in C++Create a class named Doctor that has three member .pdf
Ad

More from ezhilvizhiyan (20)

PDF
Hi please complete the following with detailed working out Find the .pdf
PDF
Explain and discuss 4G wireless communications and their advantages..pdf
PDF
Draw and describe a module of the cross-cultural communication pr.pdf
PDF
Discuss the reasons why visions fail. What steps can be implemented .pdf
PDF
Describe the original purpose of the Clean Air Act Policy of 1963. E.pdf
PDF
Continuity 100 Let f be a continuous function on a metric space X. L.pdf
PDF
Admitting New Partner With Bonus Cody Jenkins and Lacey Tanner formed.pdf
PDF
7. In many respects metal binding is similar to the binding of a prot.pdf
PDF
3. Photosynthetic organisms produce about 300 x 1015 g of oxygen per .pdf
PDF
1. Which is less soluble in water, 1-pentanol or 1-heptanol Explain..pdf
PDF
X Company has the following budgeted cash flows for JanuaryIf the .pdf
PDF
Why did animal phyla appear so suddenly during the Cambrian explosion.pdf
PDF
Which of the following information-management systems uses artificia.pdf
PDF
Which of the following was part of the reason for the European excha.pdf
PDF
Ture or false or uncertain ( explain why) Thank you! e. Output per c.pdf
PDF
This is for a C programDene a Car structure type in your header le.pdf
PDF
This project will implement a simple usernamepassword lookup system.pdf
PDF
The following code is based on the Josephus problem, the code does c.pdf
PDF
Tech transfers should the fed Gov’t keep subsidizing University .pdf
PDF
Remaining Time 31 minutes, 22 seconds QUESTION 1 Question Completion.pdf
Hi please complete the following with detailed working out Find the .pdf
Explain and discuss 4G wireless communications and their advantages..pdf
Draw and describe a module of the cross-cultural communication pr.pdf
Discuss the reasons why visions fail. What steps can be implemented .pdf
Describe the original purpose of the Clean Air Act Policy of 1963. E.pdf
Continuity 100 Let f be a continuous function on a metric space X. L.pdf
Admitting New Partner With Bonus Cody Jenkins and Lacey Tanner formed.pdf
7. In many respects metal binding is similar to the binding of a prot.pdf
3. Photosynthetic organisms produce about 300 x 1015 g of oxygen per .pdf
1. Which is less soluble in water, 1-pentanol or 1-heptanol Explain..pdf
X Company has the following budgeted cash flows for JanuaryIf the .pdf
Why did animal phyla appear so suddenly during the Cambrian explosion.pdf
Which of the following information-management systems uses artificia.pdf
Which of the following was part of the reason for the European excha.pdf
Ture or false or uncertain ( explain why) Thank you! e. Output per c.pdf
This is for a C programDene a Car structure type in your header le.pdf
This project will implement a simple usernamepassword lookup system.pdf
The following code is based on the Josephus problem, the code does c.pdf
Tech transfers should the fed Gov’t keep subsidizing University .pdf
Remaining Time 31 minutes, 22 seconds QUESTION 1 Question Completion.pdf
Ad

Recently uploaded (20)

PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
master seminar digital applications in india
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Computing-Curriculum for Schools in Ghana
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Lesson notes of climatology university.
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Presentation on HIE in infants and its manifestations
PPTX
Institutional Correction lecture only . . .
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
master seminar digital applications in india
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
RMMM.pdf make it easy to upload and study
Computing-Curriculum for Schools in Ghana
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
202450812 BayCHI UCSC-SV 20250812 v17.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Lesson notes of climatology university.
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Presentation on HIE in infants and its manifestations
Institutional Correction lecture only . . .
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Chinmaya Tiranga quiz Grand Finale.pdf
01-Introduction-to-Information-Management.pdf
GDM (1) (1).pptx small presentation for students
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Objective Min-heap queue with customized comparatorHospital emerg.pdf

  • 1. Objective: Min-heap queue with customized comparator Hospital emergency room assign patient priority base on symptom of the patient. Each patient receives an identity number which prioritizes the order of emergency for the patient. The lower the number is, the higher the emergency will be. Use java.util.PriorityQueue to write a java program to create the emergency room registration database. The patient.txt is the input file for patient record. Download patient.txt, Patient.java to perform following specifications: (a)Load all records from the input file. (b)At the end, print the list in assigned priority order. Given Code: //******************************************************************* // Patient.java //******************************************************************* public class Patient { private int id; private String name; private String emergencyCase; //---------------------------------------------------------------- // Creates a customer with the specified id number. //---------------------------------------------------------------- public Patient (int number, String custName,String er ) { id = number; name = custName; emergencyCase = er; } //---------------------------------------------------------------- // Returns a string description of this customer. //---------------------------------------------------------------- public String toString() { return "Patient priority id: " + id+" Patient name: "+name+" Symptom: "+emergencyCase; }
  • 2. public String getName() { return name; } public int getId() { return id; } public String getCase() { return emergencyCase; } } /** Source code example for "A Practical Introduction to Data Structures and Algorithm Analysis, 3rd Edition (Java)" by Clifford A. Shaffer Copyright 2008-2011 by Clifford A. Shaffer */ import java.util.*; import java.math.*; /** A bunch of utility functions. */ class DSutil { /** Swap two Objects in an array @param A The array @param p1 Index of one Object in A @param p2 Index of another Object A */ public static void swap(E[] A, int p1, int p2) { E temp = A[p1]; A[p1] = A[p2]; A[p2] = temp; } /** Randomly permute the Objects in an array. @param A The array
  • 3. */ // int version // Randomly permute the values of array "A" static void permute(int[] A) { for (int i = A.length; i > 0; i--) // for each i swap(A, i-1, DSutil.random(i)); // swap A[i-1] with } // a random element public static void swap(int[] A, int p1, int p2) { int temp = A[p1]; A[p1] = A[p2]; A[p2] = temp; } /** Randomly permute the values in array A */ static void permute(E[] A) { for (int i = A.length; i > 0; i--) // for each i swap(A, i-1, DSutil.random(i)); // swap A[i-1] with } // a random element /** Initialize the random variable */ static private Random value = new Random(); // Hold the Random class object /** Create a random number function from the standard Java Random class. Turn it into a uniformly distributed value within the range 0 to n-1 by taking the value mod n. @param n The upper bound for the range. @return A value in the range 0 to n-1. */ static int random(int n) { return Math.abs(value.nextInt()) % n; } } Text FIle: 10,Sam,Bleeding 02,Carla,Stroke 92,Woody,Flu 11,Diane,High-temperature 32,Norm,Stomach 55,Cliff,Broken-bone
  • 4. 06,Tom,Gun-wounds 22,Kristen,Pregnancy Solution Code: //Include libraries import java.util.Date; import java.util.Random; import java.util.Comparator; import java.util.PriorityQueue; //Define class Patient class Patient { //Define variables protected String name; protected int lcategory; protected Date ltimeArrived; //Define method lgetName() public String lgetName() { return name; } //Define method lsetName() public void lsetName(String lnameIn) { this.name = lnameIn; } //Define lgetCategory() public int lgetCategory() { return lcategory; } //Define lsetCategory() public void lsetCategory(int lcategoryIn) {
  • 5. this.lcategory = lcategoryIn; } //Define getTimeArrived() public java.util.Date getTimeArrived() { return ltimeArrived; } // Define default constructor public Patient() { this.name = "Default Name"; this.lcategory = 5; // Place to queue end this.ltimeArrived = new Date(); } //Define overloaded constructor public Patient(String lnameIn, int lcategoryIn) { this.name = lnameIn; this.lcategory = lcategoryIn; this.ltimeArrived = new Date(); } } //Define class PatientComparator class PatientComparator implements Comparator { //Define compare() public int compare(Patient lp1, Patient lp2) { //Compare lcategory if (lp1.lgetCategory() < lp2.lgetCategory()) return -1; if (lp1.lgetCategory() > lp2.lgetCategory()) return 1; else {
  • 6. if (lp1.getTimeArrived().before(lp2.getTimeArrived())) return -1; if (lp1.getTimeArrived().after(lp2.getTimeArrived())) return 1; } return 0; } } //Define class lPatientQueue class lPatientQueue { PriorityQueue lpq; //Define constructor public lPatientQueue() { this.lpq = new PriorityQueue(1, new PatientComparator()); } //Define lregisterPatient() public void lregisterPatient(Patient p) { this.lpq.add(p); } //Define lgetNextPatient() public Patient lgetNextPatient() { return (Patient) this.lpq.poll(); } } //Define class lEmergency public class lEmergency { //Declare variables private static final int lWAIT_LIMIT = 3000; lPatientQueue lpq = new lPatientQueue();
  • 7. private void lt() { try { Thread.sleep(new Random().nextInt(lWAIT_LIMIT)); } catch (InterruptedException le) { } } //Define lpatientArrives() private void lpatientArrives(Patient p) { lpq.lregisterPatient(p); System.out.println(" ARRIVAL: " + p.lgetName()); System.out.println(" time arrived: " + p.getTimeArrived()); System.out.println(" lcategory: " + p.lgetCategory()); System.out.println("------------------------------------"); lt(); } // end lpatientArrives method private void ldoctorVisits() { Patient p = lpq.lgetNextPatient(); System.out.println(" VISIT: " + p.lgetName()); System.out.println(" time arrived: " + p.getTimeArrived()); System.out.println(" lcategory: " + p.lgetCategory()); System.out.println("------------------------------------"); lt(); } // end ldoctorVisits method private void lsimulate() { System.out.println("------------------------------------"); System.out.println("ER OPEN"); System.out.println("------------------------------------"); lpatientArrives(new Patient("ABC", 3)); lpatientArrives(new Patient("XYZ", 1)); lpatientArrives(new Patient("DFC YUH", 2)); ldoctorVisits();
  • 8. lpatientArrives(new Patient("QWE TYU", 2)); lpatientArrives(new Patient("Hen Kno", 4)); lpatientArrives(new Patient("Pat Hen", 2)); ldoctorVisits(); ldoctorVisits(); lpatientArrives(new Patient("Mar DrP", 1)); lpatientArrives(new Patient("Sam Adam", 3)); ldoctorVisits(); ldoctorVisits(); ldoctorVisits(); ldoctorVisits(); ldoctorVisits(); System.out.println("------------------------------------"); System.out.println("ER CLOSED"); System.out.println("------------------------------------"); } // end lsimulate method public static void main(String[] args) { lEmergency ler = new lEmergency(); ler.lsimulate(); } } Sample Output: E:Javajdk1.7.0_80bin>javac lEmergency.java E:Javajdk1.7.0_80bin>java lEmergency ------------------------------------ ER OPEN ------------------------------------ ARRIVAL: ABC time arrived: Wed Nov 23 10:25:59 PST 2016 lcategory: 3 ------------------------------------ ARRIVAL: XYZ time arrived: Wed Nov 23 10:26:00 PST 2016 lcategory: 1 ------------------------------------
  • 9. ARRIVAL: DFC YUH time arrived: Wed Nov 23 10:26:02 PST 2016 lcategory: 2 ------------------------------------ VISIT: XYZ time arrived: Wed Nov 23 10:26:00 PST 2016 lcategory: 1 ------------------------------------ ARRIVAL: QWE TYU time arrived: Wed Nov 23 10:26:06 PST 2016 lcategory: 2 ------------------------------------ ARRIVAL: Hen Kno time arrived: Wed Nov 23 10:26:07 PST 2016 lcategory: 4 ------------------------------------ ARRIVAL: Pat Hen time arrived: Wed Nov 23 10:26:09 PST 2016 lcategory: 2 ------------------------------------ VISIT: DFC YUH time arrived: Wed Nov 23 10:26:02 PST 2016 lcategory: 2 ------------------------------------ VISIT: QWE TYU time arrived: Wed Nov 23 10:26:06 PST 2016 lcategory: 2 ------------------------------------ ARRIVAL: Mar DrP time arrived: Wed Nov 23 10:26:12 PST 2016 lcategory: 1 ------------------------------------ ARRIVAL: Sam Adam time arrived: Wed Nov 23 10:26:14 PST 2016 lcategory: 3 ------------------------------------
  • 10. VISIT: Mar DrP time arrived: Wed Nov 23 10:26:12 PST 2016 lcategory: 1 ------------------------------------ VISIT: Pat Hen time arrived: Wed Nov 23 10:26:09 PST 2016 lcategory: 2 ------------------------------------ VISIT: ABC time arrived: Wed Nov 23 10:25:59 PST 2016 lcategory: 3 ------------------------------------ VISIT: Sam Adam time arrived: Wed Nov 23 10:26:14 PST 2016 lcategory: 3 ------------------------------------ VISIT: Hen Kno time arrived: Wed Nov 23 10:26:07 PST 2016 lcategory: 4 ------------------------------------ ------------------------------------ ER CLOSED ------------------------------------ E:Javajdk1.7.0_80bin>