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
README.txt 2021-11-11 610 Bytes
Traffic.java 2021-11-11 8.2 kB
Vehicle.java 2021-11-11 10.0 kB
ConfigDialog.java 2021-11-11 13.5 kB
Makefile 2021-11-11 8.1 kB
manifest.txt 2021-11-11 53 Bytes
Stoplight.sm 2021-11-11 3.4 kB
Traffic.sh 2021-11-11 950 Bytes
TrafficCanvas.java 2021-11-11 26.2 kB
Vehicle.sm 2021-11-11 2.3 kB
Stoplight.java 2021-11-11 20.1 kB
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 2021-11-11