Single-Server Queue Simulation in Java

Topics: Standard deviation, Normal distribution, Simulation Pages: 4 (786 words) Published: October 4, 2010
Overall Structure of Java Simulation of a Single-Server Queue

Main() program
Start simulation.
call Initialization()
Initialize the model.
main progam
Remove imminent event from FutureEventList.
Advance simulation time to event time.
main program
Call event routine based on event type.
call ProcessArrival()
Execute arrival event.
call ProcessDeparture()
Execute departure event.
Simulation
over
?
call ReportGeneration()
Generate final report.
NO
YES

Title of Project: Single-Server Queue Simulation in Java

Abstract:

Discrete Event is the technique which is used to model the real world scenarios. A discrete-time single server queue with FIFO discipline and general independent service times is studied. Single channel queuing system can be seen in places such as banks, post offices etc, where one single queue will diverge into few counters. The moment a customer leaves the service station, the customer at the head of the queue will go to the server. Single-server queues are, perhaps, the most commonly encountered queuing situation in real life. One encounters a queue with a single server in many situations, including business (e.g. sales clerk), industry (e.g. a production line), and transport (e.g.: a queue that the customer can select from). Consequently, being able to model and analyze a single server queue's behavior is a particularly useful thing to do. The disadvantage of single channel queue is that the queue length seems to be very long, thus it can discourage customers from joining the queue.

Simulation in JAVA:

Java is a general purpose programming language which is widely used programming language that has been used extensively in simulation. Any discrete event simulation model written in Java contains the components like system state, entities and attributes, sets, events, activities and delays. Some of the common components which is used almost in all models are:

* Clock: A variable defining...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Java Essay
  • Client-server and Single Subject Area Essay
  • server 2008 Essay
  • Essay on Java
  • Simulation of a Bank Queue Essay
  • Java Research Paper
  • java Essay
  • JAVA Essay

Become a StudyMode Member

Sign Up - It's Free