Results 1 to 2 of 2
  1. #1
    dirtycash is offline Member
    Join Date
    Nov 2007
    Rep Power

    Default Traffic simulator

    Without going into too much detail my task is to develop a simulation of the operation of a set of traffic lights at a crossroads or a T-junction. Vehicles arrive at random and wait until they are at the front of the queue and the light is green, when they pass across the junction. There are a few specifics which need to be taken into consideration. However im not sure where i should start.. could someone help me design the system, or give me hint to some of the classes ill need to include (im pretty clueless).

    Any input would be appreciated,

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    Try to start with threads. Just read a documentation, and I think it is the best solution for this. Looping is too bad in such instances, because we don't know how long it should run.

Posting Permissions

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