NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 23, 2017, 04:58:39 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
There is a better way to do it; find it. ..."Thomas Edison(1847-1931, American inventor, 1093 patients)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: 1 2 [3] 4 5 ... 7   Go Down
  Print  
Author Topic: Traffic Light System  (Read 577819 times)
0 Members and 2 Guests are viewing this topic. Click to toggle author information(expand message area).
biodun1
Telecomm Engineer
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #60 on: May 15, 2006, 10:26:11 pm » posted from:,,Europe

Hi,
this is a job well done. Is really very interesting. Keep it up.
I have a prob. I try to view this simulation offline but it would not display on my laptop. I have installed the jre and the update but is still not viewable offline.

pls can somebody help me...
Logged

Abiodun Afolabi
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #61 on: May 16, 2006, 10:14:53 am »

If you view it with the browser. Please open java console and find out the error message.
Post the error message, otherwiser, it is not easy to identify the real problem.
Logged
karimmakki
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #62 on: November 08, 2006, 01:22:30 am »

if someone can help me, i need a simulation for the road light control but using the assembly language or the c language,

if anyone could help, i nned it urgent

Logged
trn_udhaya
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #63 on: December 11, 2006, 12:15:12 am »

This was a really well constructed simulation of a traffic light controller system.I had a project on hand to do a similar kind of simulation and was clearly having difficulty on how to proceed. Thanks to your excellent post I have got some help on hand. I just downloaded it and want to convey my sincere thanks for providing an opportunity to download the source code.
Logged
leeks1030
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #64 on: December 15, 2006, 01:12:27 pm »

Hi,
Sir , could u plz send me the source code for this simulation (traffic light one)
My email is leeks1030@yahoo.com
Logged
anathema17
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #65 on: December 31, 2006, 10:20:48 am »

elo sir,,

sir can i have the source code plz,, thank u very much i nid it b4 jan 4 07 thx,,

Logged
xmx23
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #66 on: January 18, 2007, 03:48:35 pm »

wow this simulation is suited for my project.. im curretly working a project similar to this which is to be implemented in matlab.. sir, can you email me this source code (.java file)Huh email: kurt_cs2040@yahoo.com
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #67 on: January 18, 2007, 04:29:13 pm » posted from:Taipei,T'ai-pei,Taiwan

If you are a registered user and login to the system. You should find the download button at the top the this web page. Click that button.
The source code for this applet and all other related files will be sent to you email acount automatically.


« Last Edit: February 20, 2007, 11:08:21 pm by hwang » Logged
RysinToRize
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #68 on: February 20, 2007, 10:26:33 am »

This is very good.. Is there any way for me to actually recieve the source code for this?? I would really appreciate it. Thanks.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #69 on: February 20, 2007, 11:07:33 pm »

I have post the same response several times. Because so many users ask for source code for this applet.
So it is included in the ZIP file you have received if you click "GET APPLET FILES FOZ OFFLINE USE" Button.

I hope the same question would not be posted again!
Logged
sarit
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #70 on: March 03, 2007, 12:10:01 am »

Some of link I use to seminar about traffic jam problem

www.helbing.org
Logged

Depend on your mind.
The world is what you are.
PTL
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #71 on: March 08, 2007, 10:20:54 pm »

hi DR!
This is my first time get to know java ... I just wondering how to write simulation without using applet  Smiley

Regards PTL
Logged
nasser
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #72 on: March 13, 2007, 01:23:23 am » posted from:,,Satellite Provider

عمل رائع

شكرا جزيلا

Logged
at_keren
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #73 on: April 20, 2007, 12:50:48 pm »

your simulation is so astonished me,,,
I'm so inspired by your design...
I am a college student, and having a project about traffic light...
and I'm so desperately need your help..
can you send me the source code..
my email : ast_atine@yahoo.com
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #74 on: April 21, 2007, 08:31:34 am »

Source code for this applet is included in the ZIP file you would have received if you clicked "GET APPLET FILES FOZ OFFLINE USE" Button.
Logged
jimma
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #75 on: April 24, 2007, 10:03:43 am » posted from:Santa Barbara,California,United States

I would be grateful to view the source code.
Thank you
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #76 on: April 28, 2007, 04:27:48 pm »

As indicated in the previous messages for several times.
The source code is in the ZIP files you received if you have clicked "GET APPLET FILES FOR OFFLINE USE" buttons. It looks like some users did not read message carefully in the forum.
Logged
larienciel
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #77 on: May 15, 2007, 09:24:49 am »

hello dear, i am a uni student that's having the same project too... but i realised that it's jdk1.0.2 simulations ... so will this work on the jdk1.6.1.0 ?? i am sorry i need to master java and complete this task in 3 month's time with some background programming skills of C,C++ and others but not java... so is this task possible for me ? and da i would really wish to have a copy of the source code... how do i run it ? just copy the code and paste it in NEtbean 5.5 ? then build and run ? will that work ? sorry i am really just a novice in JAVa.... cheers mate
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #78 on: May 15, 2007, 09:43:32 pm »

The code was written many years ago with JDK1.0.2.
You need to modify a few line to make it work.
But I would suggest you look at another version created by EJS. (You can find out the java source code,too. But it will be much easier to work directly with EJS.)
Logged
hifijava
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
Reply #79 on: May 16, 2007, 10:45:42 pm »


plz can u give me source code of traffic light system
Logged
hifijava
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
Reply #80 on: May 18, 2007, 09:17:32 pm »

could you please send me the source code.java  for traffic light system. I would be very happy.

thanks
email; hasan727@hotmail.com
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #81 on: May 18, 2007, 09:31:34 pm »

I have posted the same reply many times. The source code for this applet is included in the ZIP file you received, if you have click "GET APPELT FILE for offline use" button. Please read the posted messages before you ask! Huh
Logged
guateweb
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #82 on: June 19, 2007, 08:58:35 am »

The traffic light where I live have no system to sincronize them or faisl to do it right, I see no one cares about here, I will like to get as much knolegde as possible to learn whow to move from total caos to something more easy to the flow without much technology, what you will recommend to use? in terms of what are the best tips to make the traffic flow for 2 or 3 lane one way streets with intersections every 100 mts. Do you know of any low cost device that can be used to sincronize the traffic lights? Thanks. Rene
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #83 on: June 20, 2007, 11:54:52 am »

If it is a one way street, then you can control the delay between street light to control the traffic flow and the best speed.
If the timing is right, then all the car only have to stop at most once, and if s/he follow the suggested(designed) speed, s/he will never have to stop.
Because all the light will be green when s/he arrive at the intersection.
If the driver drive too fast or too slow, s/he will have to hit the break more often.

However, if there too many cars. It will fail due to accumulated reaction time from many drivers.

If the distance between intersections is 100 m, and the suggested driving speed is 20m/s (72km/hr), then you should keep about 5 seconds delay (for those car already drive steady with v=20 m/s) between traffic lights to have maximum traffic flow . For car stopped at the traffic light, it will take more time to reach another traffic light. So if there are heavy traffic, the delay time need to be increased and car need to be stopped more times.
Logged
Sivasayanth
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
Reply #84 on: July 14, 2007, 11:02:22 am »

Very wondering simulation. i really appreciate your great work
Logged

v.sivasayanth
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #85 on: July 14, 2007, 03:33:24 pm »

The source code is included in the ZIP file you should have received (if you have click "get files for offline use" button).
There is another version of this applet created with EJS.
Ejs version of traffic control simulation

If you look into the forum, click load applet as signed applet. And you will be able to find out the model for that simulation. (Actually, it works for all the EJS  simulations posted in this forum).
Logged
uleng_ong
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #86 on: August 09, 2007, 02:44:19 am »

hello!Sir!
First of all,thank you very much for your kindness to share the traffic system source code.
My lecturer require me to pass him a traffic system program with more than 12 streets.I had no idea to implement it.Can you give me some clues?And,i had compile the soource code you sent to my mail,but,i seem like cannot debugging since the error "error...exception in main thread..." keep on appearing on my screen.What should i do with it?
Thanks again for your kindness!!! Kiss
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #87 on: August 09, 2007, 07:53:59 am »

The code was written 10 years ago with JDK1.0.2. You might need to change some of the code for current JDK.
But you can look at how the program was written.
There is another Ejs version of traffic control simulation which you can modify/download it and generate new simulation.
I would suggest you work with that one.
Basically, you just need formula for constant acceleration.
For many streets, you just need to replicate it many time.
Logged
theking_invincible
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #88 on: August 14, 2007, 12:58:03 am »

hey that was a 1 nice idea
can i also get the code of the system
thanx in advance
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #89 on: August 14, 2007, 01:11:03 pm » posted from:Taipei,T'ai-pei,Taiwan

hey that was a 1 nice idea
can i also get the code of the system
thanx in advance
Would you please read the posted messages, you will find out how to get the source code.
(I have answered it so many times). Wink
Logged
Pages: 1 2 [3] 4 5 ... 7   Go Up
  Print  
There is a better way to do it; find it. ..."Thomas Edison(1847-1931, American inventor, 1093 patients)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Traffic Light Simulation (Java)
Request for physics Simulations
null404 9 34339 Last post April 22, 2008, 08:59:13 am
by Fu-Kwun Hwang
Time duration for the yellow traffic light
Kinematics
Fu-Kwun Hwang 4 37968 Last post August 16, 2009, 07:38:51 am
by Fu-Kwun Hwang
traffic light whole system by using matlab
Request for physics Simulations
bennycyg 11 21179 Last post September 30, 2016, 12:46:41 pm
by Charli05
Mesoscopic traffic light simulation
Simulations from other web sites
Ifeanyi 2 13272 Last post December 09, 2011, 07:14:35 am
by Ifeanyi
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.087 seconds with 22 queries.since 2011/06/15