Fu-Kwun Hwang
|
 |
«
Embed this message
on: January 29, 2004, 09:48:02 am » posted from:,,Satellite Provider |
|
Registed user can get files related to this applet for offline access.Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list If java program did not show up, please download and install latest Java RUN TIMEor Traffic light control: **** click the following tabs for more informationWould you like to engineer the traffic light system for a one-way street that consists of several lanes along which rush-hour traffic flows?How would you time the onset of green lights at the various intersection? How to promote the traffic flow? This java applet let you play with it. Due to so many requests from the users, source code for this applet is distributed with the ZIP files you will receive if you click get file for offline use button. It is also available as attached file. Please do not ask me to send you the source code again, help yourself-- it is just a click away!
You are welcomed to check out Ejs version of traffic control simulation,too. - The traffic lights at interactions are for cars moving from left to right. The traffic on the perpendicular streets can only move when light is RED.
- You can change the period of each light
- clicking the traffic light at the top-left cornor
- the number near each color is the period for that particular light (second)
- left/right mouse click will decrease/increase one second
( for MAC user, click between light and number to the right to increase the length of time)
- parameter controls
each click to the arrow at left/right of the number will decrease/increase the parameter by 1 unit.
- delay time
control near the traffic light controls the delay of the onset of green light at the interaction relative to that at prevous ntersection. - max Velocity control represents the speed limit¡]Vmin=5, Vmax= 50¡^
- acceleration control represents the acceleration for the car when it speeds up.¡]Amin=1 , Amax=20¡^
- TextField values
- T¡Gtime in second after pressing the start button
- N1/N2/flow rate¡G total number of cars passes intersection (N1:left-right/N2:up-down)
flow rate=(N1+N2/3.)/T - n1/n2/flow rate¡G number of cars passes intersection during last minute.
flow rate=(n1+n2/3.)/60
- Color code for car
- yellow: accelerating (A>0.)
- green: moving with constant speed (include stopped) A=0.
- red: stopping (A<0.)
- Velocity of each car is represented by a blue dot.
- A new function has been added to help you determine the delay time between traffic lights.
Click the right mouse button to suspend (the animation). The time intervals (for the first car ) during which the signals are green/yellow/red are represented by thin (colored)lines at one side of the road.
A blue curve represent x-t (displacement verse time) for the first car is shown. Use that curve with those color intervals to adjust the delay time between traffic lights. Click the right mouse button again to resume.
- Suppose a platoon is stopped at interaction. When the green light comes on, there is a "start-up wave" travels from the leader along the length of the platoon at a speed vs.
- How to adjust parameters to increase the traffic flow?
- adjust timing of each light
- adjust delay time control
- adjust Vmax
- adjust A(acceleration)
Think of it! Play with it! I hope you do learn some physics from this applet. If you click the right mouse button in the simulation, you will see a curve similar to the following figure (Hints to adjust the traffic flow)  Applet latest updated: 2009/12/25 I have created another version of traffic light control applet with EJS and you can view how it was implemented with EJS(You can find the code). Please download the last trafficControl.java if you want latest version code (2009 Dec. 25). Registed user can get files related to this applet for offline access.Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list If java program did not show up, please download and install latest Java RUN TIMEor
|
*** There are 2 more attached files. You need to login to acces it!
|
|
Logged
|
|
|
|
Guest
|
 |
«
Embed this message
Reply #1 on: July 07, 2004, 08:09:16 pm » |
|
 Hello all, I am on here wondering if anyone reading this know where I can find a website that will teach me how to read a caliper. I need to learn this for a job I am applying for. Sincerely Robert
|
|
|
Logged
|
|
|
|
|
xingweiping
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #3 on: May 04, 2005, 12:30:35 pm » |
|
 Thanks so much for sharing the source code with us. actually we currently have a group project which is very similar to this, but we just totaly have no idea about it. until I found your site via google. what a day! your applet is very inspirational and we are so enlighted!  :idea:
|
|
|
Logged
|
|
|
|
karthik_kotee
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #4 on: September 15, 2005, 11:58:01 pm » |
|
 sir could i get the source code(.java file) for the traffic system
|
|
|
Logged
|
|
|
|
vipin_ajmera
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #5 on: September 20, 2005, 04:54:53 pm » |
|
 plz can u give me source code of traffic light system
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #6 on: September 21, 2005, 07:19:27 am » posted from:Taipei,T'ai-pei,Taiwan |
|
 Both of you you have received the source code in your email account.
|
|
|
Logged
|
|
|
|
lopa
Newbie
Offline
Posts: 5
|
 |
«
Embed this message
Reply #7 on: September 25, 2005, 06:45:00 pm » |
|
 Sir/mam, plz give me the source code of this applet,using this topics,traffic light system. ok, thanks,
|
|
|
Logged
|
|
|
|
primanox
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #8 on: September 27, 2005, 09:47:17 am » |
|
 I love this simulation. You did an excellent job! Could you please send me the source code? I would really like to see how you accomplished this. Thank you!
|
|
|
Logged
|
|
|
|
hadi_telkom
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #9 on: September 30, 2005, 10:58:46 am » |
|
 your traffic simulatioin is very good may I get it, please.............
|
|
|
Logged
|
|
|
|
wurakeem
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #10 on: October 01, 2005, 06:34:22 am » |
|
 I like your simulation. is it possible to have the source code? thanks.
|
|
|
Logged
|
|
|
|
joe
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #11 on: October 08, 2005, 12:07:08 am » |
|
 This is a very good simulation. I like it very much. May I take the source code please?
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #12 on: October 18, 2005, 08:58:13 am » posted from:Taipei,T'ai-pei,Taiwan |
|
 Source code has been sent.
|
|
|
Logged
|
|
|
|
lifeline
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #13 on: October 20, 2005, 05:42:08 am » |
|
 hi, it was gud to see ur traffic simulator . I would like to learn how u did it . Could u plz mail me the code . Thanks.
|
|
|
Logged
|
|
|
|
avir
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #14 on: October 21, 2005, 06:04:19 am » posted from:Stanford,California,United States |
|
 I also would like to get a copy of the source.
|
|
|
Logged
|
|
|
|
eniss
last year bachelor
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #15 on: November 02, 2005, 11:44:55 pm » |
|
 Dear Sir, we are a group of 3 studens, having a project at university, similar to this one. could you please send us source code for learing purposes. if possible. if no, thanks anyway for a great site
|
|
|
Logged
|
|
|
|
Mohamed shahab PK
Newbie
Offline
Posts: 2
|
 |
«
Embed this message
Reply #16 on: November 03, 2005, 07:30:03 am » posted from:Malappuram,Kerala,India |
|
 Hello I also need a source code of this applet
|
|
|
Logged
|
|
|
|
jmiyasato
klj
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #17 on: November 08, 2005, 08:28:06 am » |
|
 could i have the code for the traffic simulation plz===?  ? javiermiy@gmail.com thx!!!!!!
|
|
|
Logged
|
|
|
|
v_lotay
Newbie
Offline
Posts: 3
|
 |
«
Embed this message
Reply #18 on: November 11, 2005, 06:17:14 am » |
|
 Your simulation is great, I was wondering if it would be possible to get the source code, v_lotay@hotmail.com
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #19 on: November 11, 2005, 10:19:05 am » posted from:Taipei,T'ai-pei,Taiwan |
|
 You should have received source code in your email account.
|
|
|
Logged
|
|
|
|
v_lotay
Newbie
Offline
Posts: 3
|
 |
«
Embed this message
Reply #20 on: November 12, 2005, 01:16:49 am » |
|
 I'm sorry I haven't received the source code, could you please send it to me again. My e-mail address again is v_lotay@hotmail.com, infact try sending it to vaneet.lotay@gmail.com as well just in case the first one doesn't work. Thank you, I appreciate it, sorry for the inconvenience.
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #21 on: November 12, 2005, 10:27:28 am » posted from:Taipei,T'ai-pei,Taiwan |
|
 I sent the files to the above two email accounts again.
|
|
|
Logged
|
|
|
|
v_lotay
Newbie
Offline
Posts: 3
|
 |
«
Embed this message
Reply #22 on: November 13, 2005, 05:16:40 am » |
|
 Thanks I received files in both e-mail accounts.
|
|
|
Logged
|
|
|
|
brixchin21
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #23 on: November 13, 2005, 02:12:57 pm » |
|
 please send me also the source code. plz! thanks anyway! cloysterspam@yahoo.com
|
|
|
Logged
|
|
|
|
beachlinum
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #24 on: November 14, 2005, 01:13:12 am » |
|
 hey thats acool work, i love it, can i have the source code? and i was wondering if u can help me in doing somtin smillar to this work, by doing high way with cars genarating by poisson distrubution to make the cars genaration more relaistic> can u help me on that please??? my email is musiclinum@hotmail.com plus the one regitered in my profile
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #25 on: November 14, 2005, 09:46:58 am » posted from:Taipei,T'ai-pei,Taiwan |
|
 You can d it by yourself with the source code I sent you!
|
|
|
Logged
|
|
|
|
suszyh
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #26 on: November 14, 2005, 03:58:36 pm » posted from:Utrecht,Utrecht,Netherlands |
|
 It is nice simulation demo. May i know what kind of message passin machenism u use in this simulation? Do u have conceptual model for it? I will appreciate your help if u could send the code and conceptual model to me. suszyh@hotmail.com since i I haven't received the source code. thanks
|
|
|
Logged
|
|
|
|
ajay arora
student
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #27 on: November 14, 2005, 09:22:14 pm » posted from:Allahabad,Uttar Pradesh,India |
|
 Hi ...plz include me also for sending the source code asap !! plzz thanx
|
|
|
Logged
|
|
|
|
Kwanda
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #28 on: November 14, 2005, 11:30:35 pm » posted from:,,Mozambique |
|
 I love this simulation.excellent job! Could you please send me the source code? I would really like to see how you accomplished this. Thank you! rui.jesus@gapi.co.mz
|
|
|
Logged
|
|
|
|
gigispeed1332
Newbie
Offline
Posts: 1
|
 |
«
Embed this message
Reply #29 on: November 15, 2005, 09:04:55 pm » posted from:Belleville,Ontario,Canada |
|
 I really liked this program u made is their anyway i can get the source code, we are working on a project in class similar to this simulating the movement of a line in a bank. I was wondering if I could see how you accomplished this. Thanx a bunch. email = gigispeed1332@yahoo.ca/handyk13@hotmail.com
|
|
|
Logged
|
|
|
|
|