A B C D E G H I J K L M N P R S T U W

A

aBedIsFree() - Method in class HospitalView
Returns whether or not there is a free bed.
admit(Patient) - Method in class HospitalView
Admits the given patient to a bed.
admitHighest() - Method in class HospitalView
Admits the highest priority waiting patient.
assignPriority - Variable in class HospitalView
Send the current patient to the waiting room with a given priority.
assignPriority(int) - Method in class HospitalView
Sends the new patient to the waiting room with the given priority.

B

beds - Variable in class HospitalView
Hospital beds in this.
bedViews - Variable in class HospitalView
Views for patients in beds.

C

click() - Method in class HospitalView
Ticks the clock ahead one minute.
controlPanel - Variable in class HospitalView
View for control panel.
createNextPatientIfNecessary() - Method in class HospitalView
Creates a new patient if it is time to do so.
createPriorityQueue() - Static method in class PriorityQueueFactory
Creates an empty IPriorityQueue.

D

description - Variable in class Need
Description of this.
DESCRIPTIONS - Static variable in class Need
Descriptions for needs of different severities.

E

elements - Variable in class JavaPriorityQueue
Elements in this.
emptyBed - Variable in class HospitalView
Index of next empty bed in this.

G

getDescription() - Method in class Need
Returns the description of this.
getModel() - Method in class PatientView
Returns the data model for this.
getName() - Method in class Patient
Returns the name of this.
getNeed() - Method in class Patient
Returns the need of this.
getStatus() - Method in class Patient
Returns the status of this.

H

healOneMinute() - Method in class Patient
Causes this patient to heal for one minute.
highest() - Method in interface IPriorityQueue
Returns an object in this associated with a highest priority key.
highest() - Method in class JavaPriorityQueue
Returns an object in this associated with a highest priority key.
highestKey() - Method in interface IPriorityQueue
Returns a highest priority key in this.
highestKey() - Method in class JavaPriorityQueue
Returns a highest priority key in this.
HospitalView - class HospitalView.
Hospital simulation.
HospitalView(int) - Constructor for class HospitalView
Constructs a new emergency room with the given number of beds.

I

initialStatus() - Method in class Need
Returns an initial status corrsponding to this.
insertItem(Comparable, Object) - Method in interface IPriorityQueue
Associates the given key and object and inserts them into this, increasing its size by 1.
insertItem(Comparable, Object) - Method in class JavaPriorityQueue
Associates the given key and object and inserts them into this, increasing its size by 1.
IPriorityQueue - interface IPriorityQueue.
Required methods for the Priority Queue ADT.
isCritical() - Method in class Patient
Returns whether or not this is in critical condition.
isEmpty() - Method in interface IPriorityQueue
Returns whether or not this is empty.
isEmpty() - Method in class JavaPriorityQueue
Returns whether or not this is empty.
isHealed() - Method in class Patient
Returns whether or not this is totally healed.
isSerious() - Method in class Patient
Returns whether or not this is in serious condition.
isStable() - Method in class Patient
Returns whether or not this is in stable condition.

J

JavaPriorityQueue - class JavaPriorityQueue.
IPriorityQueue implementation using unsorted Java Vector objects to hold the keys and elements.
JavaPriorityQueue() - Constructor for class JavaPriorityQueue
Constructs a new unsorted priority queue.

K

keys - Variable in class JavaPriorityQueue
Keys in this.

L

LAST_NAMES - Static variable in class Patient
Last names for patients.
lower(double) - Method in class Need
Returns the lowered status of the given patient's status.

M

main(String[]) - Static method in class PriorityQueueTests
Starts this application.
model - Variable in class PatientView
Patient data model for this.
model - Variable in class StatusView
Patient data model for this.

N

name - Variable in class Patient
Name of this.
nameView - Variable in class PatientView
View for name of patient.
need - Variable in class Patient
Need of this.
Need - class Need.
A reason for a patient to go to the hospital.
Need() - Constructor for class Need
Constructs a need.
needView - Variable in class PatientView
View for need of patient.
nextPatientCount - Variable in class HospitalView
Time until next new patient.
nextPatients - Variable in class HospitalView
Patients needing services.
nextPatientTime() - Method in class HospitalView
Returns the number of minutes before the next patient will arrive.
nextPatientView - Variable in class HospitalView
View for new patient needing services.

P

paintComponent(Graphics) - Method in class StatusView
Paints this to the given graphics context.
Patient - class Patient.
A patient in a hospital.
Patient() - Constructor for class Patient
Constructs a patient.
PatientView - class PatientView.
View for a patient.
PatientView(Patient) - Constructor for class PatientView
Constructs a view for the given patient.
PRIORITIES - Static variable in class HospitalView
Priority descriptors.
PriorityQueueFactory - class PriorityQueueFactory.
Contains a factory method for producing IPriorityQueue implementations.
PriorityQueueFactory() - Constructor for class PriorityQueueFactory
 
PriorityQueueTests - class PriorityQueueTests.
Contains tests for the priority queues exercises.
PriorityQueueTests() - Constructor for class PriorityQueueTests
 

R

raise(double) - Method in class Need
Returns the raised status of the given patient's status.
removeHighest() - Method in interface IPriorityQueue
Removes and returns the object in this associated with a highest priority key, reducing its size by 1.
removeHighest() - Method in class JavaPriorityQueue
Removes and returns the object in this associated with a highest priority key, reducing its size by 1.

S

setModel(Patient) - Method in class PatientView
Sets the data model for this to the given model.
setModel(Patient) - Method in class StatusView
Sets the model for this to the given patient.
severity - Variable in class Need
Severity of this.
showNextPatient() - Method in class HospitalView
Shows the next patient to admit or make wait.
size() - Method in interface IPriorityQueue
Returns the number of items in this.
size() - Method in class JavaPriorityQueue
Returns the number of items in this.
status - Variable in class Patient
Status of this.
statusView - Variable in class PatientView
View for status of patient.
StatusView - class StatusView.
View for the status of a patient.
StatusView(Patient) - Constructor for class StatusView
Constructs a status view for the given patient.

T

time - Variable in class HospitalView
Time for this.
timeString() - Method in class HospitalView
Returns the text of the time of this.
timeView - Variable in class HospitalView
Clock for this.
triage - Variable in class HospitalView
Waiting room manager for this.

U

update(Observable, Object) - Method in class PatientView
Updates this to show changes to the data model.
update(Observable, Object) - Method in class StatusView
Updates this.

W

waiting - Variable in class HospitalView
List of patients in waiting room.
waitingContainer - Variable in class HospitalView
Views for patients waiting for beds.
waitOneMinute() - Method in class Patient
Causes this patient to wait for one minute.

A B C D E G H I J K L M N P R S T U W