events - Simulation in java using priority queues -


i've been asked simulate events store 1 counter in java using priority queue. person being served , if arrives during time increment number of people in queue.i figured out have use comparator far seems can use comparator sorting , not queuing , de-queuing events.

if using discrete event modeling perspective, use priority queue schedule sequence of events drive system. can find tutorial paper on how this, along java implementation single server queue exponential interarrival , service times, in winter simulation conference paper archives.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -