Conference Contribution

StateGraph—A Modelica Library for Hierarchical State Machines

Martin Otter, Karl-Erik Årzén, Isolde Dressler


The new library Modelica.StateGraph is a free Modelica package providing components to model discrete event and reactive systems in a convenient way. It has a similar modeling power as Statecharts, but avoids some deficiencies of Statecharts by using elements of JGrafchart and by using Modelica as an “action” language. An overview of the StateGraph library is given, the available components and an application example. The implementation of the library in Modelica is sketched, especially the needed extension to Modelica that will be available in release 2.2 of the Modelica language.

In Modelica 2005 Proceedings, 2005.