Serialized Form


Package jutil

Class jutil.AppError extends java.lang.Exception implements Serializable

Class jutil.AppModel extends java.util.Observable implements Serializable

Serialized Fields

fileName

java.lang.String fileName
Store model in this file


unsavedChanges

boolean unsavedChanges
Set to true when the model is updated.

Class jutil.AppWindow extends javax.swing.JFrame implements Serializable

Serialized Fields

currentDirectory

java.io.File currentDirectory
Saves model to this file


fileMenu

javax.swing.JMenu fileMenu

helpMenu

javax.swing.JMenu helpMenu

menuBar

javax.swing.JMenuBar menuBar

theModel

AppModel theModel
The application model

Class jutil.BinaryHeap extends java.lang.Object implements Serializable

Serialized Fields

elems

java.lang.Comparable<T>[] elems
The children of elems[i] are stored in elems[2i] and elems[2i + 1], the root (= min) is in elems[1].


size

int size
The number of elements stored.


capacity

int capacity
The capacity of the heap is a power of 2.

Class jutil.EmptyQueueException extends java.lang.Exception implements Serializable

Class jutil.Event extends java.lang.Object implements Serializable

Serialized Fields

fireTime

int fireTime
The time when this event will occur.

Class jutil.MainJFrame extends javax.swing.JFrame implements Serializable

Class jutil.OverflowException extends java.lang.Exception implements Serializable

Class jutil.Simulator extends java.lang.Object implements Serializable

Serialized Fields

events

PriorityQueue events
Scheduled events are placed in this queue in order of their firing times. Currently, the priority queue is implemented as a binary heap with capacity 512. Consider replacing this implementation with a sorted list or a larger binary heap.


clock

int clock
The simulated time.


debug

boolean debug
Set to true to see the clock and event queue after each event is fired.