NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 19, 2017, 06:02:53 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  
You cannot always have happiness but you can always give happiness. ..."Mother Teresa(1910-1997, Roman Catholic Missionary, 1979 Nobel Peace Prize)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

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

Posts: 1

«
Embed this message
Reply #90 on: August 21, 2007, 12:12:39 am »

Could you send me the source code?

Thanks
Logged
sudhan
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #91 on: August 26, 2007, 03:04:57 pm »

the simulation was very good. can i get the source code plz
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #92 on: August 26, 2007, 10:55:52 pm »

Please READ the posted messages  and you will know how to get the source code.
Logged
jafar-_jmj
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #93 on: September 10, 2007, 02:38:05 pm »


sir kindly send me a source code for the traffic light system we will need this for our project and this will be of great help in our group thank
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #94 on: September 10, 2007, 11:51:53 pm »

If you have read the posted message. You should know you will get source code when you click "GET files for offline use" button. The source code for this applet is included in the ZIP files you would have received in your email.
I do not know why so many users just want to ask for the source code, and do not even want to read the above posted message. (Including this one).

I hope no more users, post similar message again!
Logged
AntonAZ
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #95 on: September 21, 2007, 04:20:49 am »

Sorry, but I have a problem. I installed latest JAVA RunTime but the simulation execute very slowly that its impossible to play.
The traffic light control applet with EJS works correct but I'd like to try JDK version.

OS: WinXP
Browser: IE6.

Thank You.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #96 on: September 21, 2007, 04:42:58 pm » posted from:Taipei,T\'ai-pei,Taiwan

The JDK102 version is smaller than EJS version.
May be you did not have enough RAM installed or you are running too many program at the same time.
Next time, try to access this applet before you access EJS version.
Logged
gon
Newbie
*
Offline Offline

Posts: 5

«
Embed this message
Reply #97 on: October 12, 2007, 11:35:07 am »

Your Java applet was very good. Please!!! Can you email me the source code for the traffic light system. Our group in Government Development Authority needed it very much. It can help our community development especially the increasing value/prices of car accessories and increasing number of accidents in our place due to traffic light malfunctioning. Please!!!
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #98 on: October 12, 2007, 07:56:34 pm »

If you have read the posted messages, you should know the source code for this applet is included in the file you will receive if you have clicked the "Get file for offline use" button.
Logged
youngscientist
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #99 on: October 22, 2007, 08:49:01 am »

Please send me the source code to bwradford@cox.net
Logged
omeng
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #100 on: October 24, 2007, 04:10:21 pm »

hi..
can you send me the code to my email add??tnx
i just want to know more about this system, so can you please give me some tutorials or information on how to develop this system?.
THANK YOU VERY MUCH..
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #101 on: October 24, 2007, 04:14:32 pm » posted from:Taipei,T\'ai-pei,Taiwan

Please check out Ejs version of traffic control simulation,
You will be able to see all the code in the EJS and it is much easier to create java applet with EJS.
Logged
omeng
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #102 on: October 25, 2007, 02:25:32 pm »

tnx
Logged
serkan3123
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #103 on: November 11, 2007, 06:08:21 pm »

thnk you
Logged
cmeonnow1
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #104 on: December 01, 2007, 12:42:47 pm »

sir,,we were asked these questions in our presentation..
we r making pc based traffic control management system,,

q,1.why r u making pc based system not microcontroller based,,,wht r the advantages of pc based?

q.2. wht sensors u can use to control the flow of traffic management under fluctuating traffic flow?

q.2 we said tht sensors r instaled which increase the time of the clock for light change,,,
the ask details of sensors which we wil use?


plz sir answer me these question,,,,,,,,,,,mail me at cme_on_now@yahoo.com

as sooon as possible,....plz
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #105 on: December 01, 2007, 05:03:04 pm » posted from:Taipei,T\'ai-pei,Taiwan

The traffic light system was designed to show how to apply basic physics principle into real life situation.
I upload it on the web so that everyone can learn it.
But it only answer why I did it.
Your question was why you use pc based system? You should ask yourself.

The traffic flow can be monitored by many ways:
use light sensor  or even use camera image and count with program.
Logged
cmeonnow1
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #106 on: December 03, 2007, 12:47:32 am »

ok sir,,,,,,,,thx fr rplying,,,,

i wil ask the concern topic question ,,,,

hope u wil be rplying be as u did this time,,,,,,

thx
Logged
ddyson
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #107 on: January 04, 2008, 03:56:01 am » posted from:Arlington,Virginia,United States

I'm interested in calculating the total times for acceleration, cruising, idle (stopped) and deceleration. I would like to use those times to calculate estimates for pollution emissions. Is there a way to add this to your code? Either in the ejs version or your old version.

Thanks,
Mike
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #108 on: January 04, 2008, 09:09:22 am »

For constant acceleration a:
 V(t)=V(0)+a*t
 X(t)=X(0)+V(0)*t+(1/2)*a*t*t

The above equations can be found in high school physics textbook.
You can download ejs source code and modify what you want!
But you need to understand the physics first to make sure you did something correct.
Logged
kherfan
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #109 on: January 04, 2008, 11:23:14 pm »

Sir..
i just wanted to thanks on you on this excellent example
« Last Edit: January 04, 2008, 11:25:13 pm by kherfan » Logged
mgchibike
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #110 on: February 05, 2008, 12:55:16 am »

hi, i love it, can i have the source code? and i was wondering if u can help me in doing some soular work> can u help me on that please???
my email is mgchibike@yahoo.com.tanx
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #111 on: February 05, 2008, 02:03:24 pm »

You did not read the posted message carefully. Otherwise, you should know how to get the source.
We also have simulations related to solar system. Please check out those simulations first, or, write down in more detail what you really want.
Logged
kingek
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #112 on: April 14, 2008, 11:30:29 pm »

I also would like to get a copy of the source.
Thanks
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #113 on: April 15, 2008, 08:07:25 pm »

You will find the source code for this applet when you download this applet.
Logged
dirgajuli
Newbie
*
Offline Offline

Posts: 2

25 gagus
«
Embed this message
Reply #114 on: April 16, 2008, 04:09:15 pm »

plese help me about triple pendulum in ejs
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #115 on: April 20, 2008, 08:25:08 am »

Do you have problem in physics about triple pendulums or you just need help in java coding?
For triple pendulum, you need to derive formulas first (to get equations for motion).

Please check out Double pendulum  and post your related question there. This subject for this topic is traffic light system.
Logged
angeleyes
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #116 on: May 28, 2008, 05:12:05 am »

hi its nice to be here as its my first time
what you did is so nice .
Logged
dorin
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #117 on: June 09, 2008, 09:48:40 pm »

Hello. I have messaged you earlyer totay, about a simulation of a street intersection. Nothing much, just something to make my presentation about graphs a little more dinamic and visual.
Please, if you wouldn't mind helping me with this task, i don't know much about programing, but i see u know a lot. Can u make a simulation of an intersection of two streets with two lanes each, and a traffic light for each lane, the exterior lane going straight ahead and the interior lane makeing a turn to the left (trough the midle of the intersection) and some cars going on the coresponding lanes and some buttons for each light so i can increase/decrease the time that each light stayes green/red? If you want i could send you a picture of the intersection and how i would like the interface to look like. If you could please help me, i would be greatefull.
Thank you in advance,
Maxim Dorin.
max_piro@yahoo.com

p.s. also, if anyone else on the forum can help me he is welcomed.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #118 on: June 09, 2008, 11:49:57 pm »

The purpose of the simulation is to help user understand related physics.
The source code for this one and the EJS version are available.  You can try to do it and I will try to help.
Logged
trailmix
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #119 on: June 11, 2008, 10:38:51 am »

Can you please tell me how to not read your multiple, incredibly straightforward instructions on getting the source code?  I feel that as a new member must not show up your other members, who must have some real amazing programming skills in spite of not being able to read instruction number 1. 

thanks for the simulation - its great to see a clear demo of the time/distance physics, and good luck with the rubes.
 
Logged
Pages: 1 2 3 [4] 5 6 7   Go Up
  Print  
You cannot always have happiness but you can always give happiness. ..."Mother Teresa(1910-1997, Roman Catholic Missionary, 1979 Nobel Peace Prize)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Traffic Light Simulation (Java)
Request for physics Simulations
null404 9 34307 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 37898 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 21137 Last post September 30, 2016, 12:46:41 pm
by Charli05
Mesoscopic traffic light simulation
Simulations from other web sites
Ifeanyi 2 13260 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.085 seconds with 22 queries.since 2011/06/15