Results 1 to 2 of 2
  1. #1
    kevingregg is offline Member
    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0

    Default does anyone know of a good example of a bank queue simulation?

    I am looking for a textbook style example of a bank or supermarket queue simulation in java. I have seen a few examples but I would like the textbook style hand holding if you know what I mean.

    I just want to see something simple that calculates number of customers served, average wait time, etc over a few hours simulated time given the average service and arrival times

  2. #2
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    263
    Rep Power
    6

    Default Re: does anyone know of a good example of a bank queue simulation?

    I'm not exactly sure what this simulation entails. Are you actually timing events? Or do you just have the data somewhere? I'd write up a short example if I knew more about it.

    You could try creating a class that holds the times of certain events, then add them to an ArrayList. Then perform whatever calculations you need while iterating through the list. I'd be happy to show you an example, but first provide a little clearer explanation of what you're looking for.

Similar Threads

  1. Car Simulation (Array)
    By slacoul in forum New To Java
    Replies: 1
    Last Post: 09-29-2011, 10:04 AM
  2. Replies: 0
    Last Post: 05-27-2011, 08:46 AM
  3. Help with a Bank graphic simulation
    By JaEdmuva in forum AWT / Swing
    Replies: 1
    Last Post: 01-11-2011, 08:19 AM
  4. Nested List class for Simulation Queue
    By Cheddz in forum Advanced Java
    Replies: 2
    Last Post: 02-19-2010, 01:19 AM
  5. Hello Good Morning, Good afternoon, and Good Evening
    By MrFreeweed in forum Introductions
    Replies: 3
    Last Post: 12-11-2009, 03:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •