index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Traffic Light (Java)</title>
  6. <link href="../css/style.css" rel="stylesheet">
  7. </head>
  8. <body class="body-container">
  9. <h1>Traffic Light (Java)</h1>
  10. <p>This example demonstrates how to to generate Javacode from a statechart. The procedure is explained in the documentation, chapter "Java code generator". </p>
  11. <p>
  12. <img class="standard-image" alt="The statechart"
  13. src="images/TrafficLightCtrl.png" />
  14. </p>
  15. <p>In summary, there are two traffic lights: one for the traffic on the street, and
  16. one for pedestrians who want to cross the street. They can push a button to
  17. request their traffic light to turn green, which activates a blinking
  18. wait-light first. The street's traffic light then goes through the standard
  19. procedure, turning on the yellow light, followed by the red light, allowing
  20. the pedestrians to cross safely. After some time, the pedestrians' traffic
  21. light turns red again, and the cars are allowed to pass until the next
  22. request is made by a pedestrian.</p>
  23. <p>Additionally, the traffic light can be switched off completely. This
  24. turns the yellow lights into a blinking mode, signaling that the traffic
  25. light is indeed switched off and that the street should be crossed in a
  26. careful manner.</p>
  27. </body>
  28. </html>