Download Latest Version smc-maven-plugin-7.6.0.jar (25.9 kB)
Email in envelope

Get an email when there's a new version of SMC - The State Machine Compiler

Name Modified Size InfoDownloads / Week
Parent folder
Traffic.java 2022-11-13 8.2 kB
Vehicle.java 2022-11-13 10.0 kB
ConfigDialog.java 2022-11-13 13.5 kB
Makefile 2022-11-13 8.1 kB
README.txt 2022-11-13 610 Bytes
Stoplight.sm 2022-11-13 3.4 kB
TrafficCanvas.java 2022-11-13 26.2 kB
Vehicle.sm 2022-11-13 2.3 kB
manifest.txt 2022-11-13 53 Bytes
Stoplight.java 2022-11-13 20.1 kB
Traffic.sh 2022-11-13 950 Bytes
Totals: 11 Items   93.3 kB 0


                         Java Example 4


Simplistic, graphical simulation of a stoplight. Demonstrates
how to use state machines to handle external events (in this case
timeouts).


+ Building
----------

NOTE: Smc.jar must be built and installed.

Unix & Windows:
    $ make Traffic


+ Executing
-----------

Unix & Windows:

    $ java -jar Traffic.jar

Click on the "Configure..." button and modify the demo's
settings. Increase the vehicle speed and appearance
rate. Decrease the stoplight times.

Also, click on "Pause" and "Continue". "Stop" halts the
demonstration but does not terminate the demo.
Source: README.txt, updated 2022-11-13