The SCCD (Statecharts + Class Diagrams) compiler and runtime.
|
5 years ago | |
---|---|---|
bsml_features | 5 years ago | |
examples | 5 years ago | |
legacy | 5 years ago | |
src | 5 years ago | |
test | 5 years ago | |
.gitignore | 5 years ago | |
LICENSE | 9 years ago | |
README.md | 5 years ago |
There's a setup.py
script in the src
directory.
Alternatively, you can just set your PYTHONPATH
environment variable to the absolute path of the src
directory. This is recommended for development.
Assuming you followed the installation instructions above, run:
python3 -m sccd.test.run test/test_files
The following environment variables can be set to change the behavior of the runtime. These options can be set while running the tests, or while running one of the examples.
SCCDDEBUG
: When set, additional debug information is printed, such as the individual transitions taken.SCCDTIMINGS
: When set, at exit, the runtime will print information about how much time in total was spent during various parts of its execution, such as loading the model (if model was loaded from a file), generating transition candidates, executing transitions, executing actions, and more.The following Python modules are runnable from terminal:
sccd.test.run
, already mentioned, runs tests.sccd.render
will render test files and statecharts as SVG images. Depends on state-machine-cat
command.sccd.statechart.cmd.check_model
will check if a model is valid.sccd.action_lang.cmd.prompt
is an interactive prompt for the action language that is part of the statechart language.