Skip to main content

Sismic Interactive State Machine Interpreter and Checker

Project description

https://travis-ci.org/AlexandreDecan/sismic.svg https://coveralls.io/repos/AlexandreDecan/sismic/badge.svg?branch=master&service=github https://badge.fury.io/py/sismic.svg https://readthedocs.org/projects/sismic/badge

Sismic Interactive State Machine Interpreter and Checker

Statecharts are a well-known visual language for modeling the executable behavior of complex reactive event-based systems. The Sismic library for Python >= 3.4 provides a set of tools to define, validate, simulate, execute and debug statecharts. More specifically, Sismic provides:

  • An easy way to define and to import statecharts, based on the human-friendly YAML markup language

  • A statechart interpreter offering a discrete, step-by-step, and fully observable simulation engine

  • Synchronous and asynchronous simulation, in real time or simulated time

  • Support for communication between statecharts and co-simulation

  • Built-in support for expressing actions and guards using regular Python code

  • A design-by-contract approach for statecharts

  • A unit testing framework for statecharts, including generation of test scenarios

Sismic provides full support for the majority of the UML 2 statechart concepts:

  • simple states, composite states, orthogonal (parallel) states, initial and final states, shallow and deep history states

  • state transitions, guarded transitions, automatic (eventless) transitions, internal transitions

  • statechart variables and their initialisation

  • state entry and exit actions, transition actions

  • internal and external events, parametrized events, timed events

In addition to this, contracts can be specified to express invariants, pre- and postconditions on states, transitions and the statechart itself.

The Sismic library is written in a modular way:

  • The semantics of the statechart interpreter is based on the specification of the SCXML semantics (with a few exceptions), and can be easily tuned to other semantics.

  • While currently, contracts, guards and actions are expressed in Python, this support can be easily extended to other languages.

Installation

Sismic can be installed using pip as usual: pip install sismic. This will install the latest stable version.

You can also install Sismic from this repository by cloning it. The development occurs in the master branch, the latest stable distributed version is in the stable branch.

Sismic requires Python >=3.4 but should also work with Python 3.3.

Documentation

The latest version of the documentation is available at http://sismic.readthedocs.org/ .

It can also be directly built from the docs/ directory using Sphinx.

Credits

Developed by Alexandre Decan at the University of Mons (Belgium).

GNU Lesser General Public License, version 3.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sismic-0.12.1.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sismic-0.12.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file sismic-0.12.1.tar.gz.

File metadata

  • Download URL: sismic-0.12.1.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sismic-0.12.1.tar.gz
Algorithm Hash digest
SHA256 545ded3321a88f0c98665bb68f4a89b0ff4d570440aa494db7122bd4c80083b6
MD5 a6e27f9c2e778057997fc0ef83a8fee5
BLAKE2b-256 3f02fb5b1a31b7a495f461ba2e59c26640465628df2fd9f6c1e7bc808e833ed2

See more details on using hashes here.

File details

Details for the file sismic-0.12.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sismic-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92e2de0a0f50a6faaafbfefc74a2ed8a7ac7b787449f246bcaaead8e4d77db09
MD5 6108ce2a9b2825b11ca06b0f7cc03d70
BLAKE2b-256 c233df70dad42a68bc67f4d5c66e5fd797f97122e8d6479ef97ce5391d86ce2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page