Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
Main.cpp | 2022-11-13 | 4.2 kB | |
README.txt | 2022-11-13 | 317 Bytes | |
stoplight.cpp | 2022-11-13 | 4.2 kB | |
stoplight.sm | 2022-11-13 | 2.3 kB | |
stoplightdefs.h | 2022-11-13 | 1.5 kB | |
Makefile | 2022-11-13 | 3.3 kB | |
stoplight.h | 2022-11-13 | 4.4 kB | |
Totals: 7 Items | 20.2 kB | 0 |
C++ Example 4 Simplistic, non-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. $ make traffic + Executing ----------- $ traffic