NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Collaborative Community of EJS => Topic started by: lookang on September 30, 2011, 09:02:32 pm



Title: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: lookang on September 30, 2011, 09:02:32 pm
Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet by Fu-Kwun Hwang
remixed by lookang
reference:
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=387.0 Ejs version
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=137.0 JDK version
updated with JavaScript version here, get more HTML5 simulation on the link below
https://iwant2study.org/ospsg/index.php/656

[ejsapplet]

Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet

Reaction time: the lapse of time between stimulation and the beginning of the response.
You are driving on the high way and listening to the music you like most.
Suddenly, you see the brake light of the car in front of you just turned on.
You will try to hit the brake and slow down your car.
But, there is a small time delay before you really do that--- your reaction time.
During that period of time, your car is still moving at the same HIGH speed! If you do not want something VERY BAD happened,
What is the minimum distance between the front of your car and the rear of the car before yours?
If both cars need the same distance to fully stopped, the minimum distance is  ( the velocity of your car )* ( your reaction time )                            

This javascript applet helps you to determined your own reaction time (how much distance to keep between cars when you are on the highway)
Hit the start button: the red car starts to move with initial velocity selected from the slider bar
The traffic light will turn from green to yellow, then to red at a randomly selected interval
Hit the brake button when you saw the red light turned on.
The red arrow indicates the car's position when the red light was on.
The black arrow indicates car's position when you hit the brake
The distance between those two arrows is the minimum distance to keep
Your reaction time, brake time/distance are all shown in the text field.
Drive safely!


Title: Re: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: ahmedelshfie on September 30, 2011, 11:11:58 pm
Hi lookang, i watch the last update to your blog, frankly is beautiful layout, so if you can to attach the XML design file to i can share
And use at my blog if you not have mind.  ;D

Thanks


Title: Re: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: lookang on October 01, 2011, 01:59:21 am
http://weelookang.blogspot.com/2011/09/google-blogger-dynamic-view-of-my.HTML
Check my blog post what to activate it
Dynamic view


Title: Re: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: lookang on October 01, 2011, 10:55:36 pm
changes:
01 Saturday-Sunday Oct 2011
redesign objects inside with newer ejs stuff, new panels and look and feel
add pictures from

car http://www.openclipart.org/detail/9792
lights
http://www.clker.com/cliparts/A/w/R/B/B/Y/traffic-signal-th.png
http://www.clker.com/clipart-2840.html
http://www.clker.com/clipart-2839.html
http://www.clker.com/clipart-2841.html
add arrows to indicate position what the event occurs like green, yellow, red, brake and stop

optimize the view a bit
made the car start at x = 0 for ease of calculation of x

enjoy!

 


Title: Re: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: ahmedelshfie on October 03, 2011, 08:17:33 pm
Thx, i solved now my blogger is already running by dynamic view  :D


Title: Re: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: lookang on October 03, 2011, 08:47:30 pm
Thx, i solved now my blogger is already running by dynamic view  :D



Title: Re: Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Post by: lookang on December 17, 2018, 10:36:41 am
I have recreated a JavaScript version here
https://iwant2study.org/ospsg/index.php/656