Is there a Harel Statechart DSL tool for Java?

北城以北 提交于 2019-12-04 04:24:14
ahcox

Yakindu looks good: http://www.statecharts.org

  • Harel Statecharts
  • Visual Language
  • Textual DSL
  • Generates Java
  • Generates C
  • Generates C++
  • Generation configurable / customisable
  • Eclipse-based
  • Open source
  • Simulation
  • History and deep history
Hartmut Krasemann

There is a Harel Statechart DSL written in Pharo Smalltalk and published in OBJEKTspektrum:
http://www.sigs-datacom.de/fileadmin/user_upload/zeitschriften/os/2011/04/krasemann_brauer_crasemann_OS_04_11.pdf
Alas, this is in German. However, the code is in English:
www.squeaksource.com/AuDSL3.html

The implementation of this DSL might easily be ported to Scala parser combinators, which means, it would become available for Java.

If you want to do the port, we would gladly help (krasemann@acm.org).
We just have not done it yet.

* added 2012-03-17 * The Scala port is ready now. It comes as a Scala Trait and thus can easily be inherited by your scala class that might be used by your Java program. You find it here: http://dl.dropbox.com/u/4548797/AuDSLinScala-src.zip

I have developed a library that I use to keep track of states and to move between states within an application, called JavaKI. This is based on the KI framework that is now part of the SproutCore JavaScript framework. Both are based on Harel charts.

Currently, JavaKI does not support history states, but you are welcome to implement this functionality if you need it. JavaKI is Java-based and licensed under the MIT license.

https://github.com/joachimhs/JavaKI

With JavaKI you defined your states and your state chart in "Plain Old Java".

ThingML is a textual DSL that allows modelling UML-like state machines (including composite states, parallel regions, etc). From a ThingML specification, Java, C or JavaScript can be generated. A set of tutorials is available here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!