Implementation With Java Applet
Interface
- Java
Applet gives the beautiful interface design and powerful functionalities;
- To help
demo the work, a manual button is added to see the transition steps for Sub Petri Net 1;
- Auto
button is added to start the light system to work automatically;
- Scroll bar is
to simulate the traffic flow ratio in both streets and it is valued from 0 to
100 :
When the NS/EW Traffic Ratio is
located in the range smaller than 20:80 or greater than
80:20, Sub Net 3 is eligible for firing
after the current running Sub Net returns the token to the Control
Panel,
otherwise Sub Net 1
is eligible for firing after the current running Sub Net
returns the token to the Control Panel;
- To simulate
the case that traffic are loose in both streets, the “All Red ” button is set; If “All Red” button
is pressed, Sub Net 2
is eligible for firing after the current running
Sub Net returns the token to the Control Panel;
-
As the Scroll
Bar is located in the Regular Light Region (20:80 —
80:20)
,
the light duration for the each light is displayed out respectively.