项目作者: reugn

项目描述 :
Scala statecharts collection (FSM, UML)
高级语言: Scala
项目地址: git://github.com/reugn/scala-statecharts.git
创建时间: 2019-07-13T11:01:05Z
项目社区:https://github.com/reugn/scala-statecharts

开源协议:Apache License 2.0

下载


scala-statecharts

Build

A statecharts library written in Scala.

Implemented

  • FSM - Finite-state machine.

    • One state is defined as the initial state. When a machine starts to execute, it automatically enters this state
    • Each state can define actions that occur when a machine enters or exits that state. Actions will typically have side effects
    • Each state can define events that trigger a transition
    • A transition defines how a machine would react to the event, by exiting one state and entering another state
    • A transition can define actions that occur when the transition happens. Actions will typically have side effects
  • UML - Executable UML statechart.

    • Asynchronous statechart processing
    • Recovery capability (start from last successful transition)
    • No need to translate diagrams into code
    • No bugs introduced by hand translation of diagrams

Getting started

The library is available for the JVM Runtime using Scala 2.12, 2.13.

Build from source:

  1. sbt clean +package

Examples

License

Licensed under the Apache 2.0 License.