Root of a StateGraph (has to be present on the highest level of a StateGraph)
On the highest level of a StateGraph, an instance of StateGraphRoot has to be present. If it is not within in a model, it is automatically included by a Modelica translator due to an appropriate annotation. Practically, this means that it need not be present in a StateGraph model.
The StateGraphRoot object is needed, since all Step objects have an "outer" reference to communicate with the "nearest" CompositeStep (which inherits from PartialCompositeStep), especially to abort a CompositeStep via the "suspend" port. Even if no "CompositeStep" is present, on highest level a corresponding "inner" definition is needed and is provided by the StateGraphRoot object.
|Modelica.StateGraph.Examples.FirstExampleA first simple StateGraph example|
|Modelica.StateGraph.Examples.FirstExample_Variant2A variant of the first simple StateGraph example|
|Modelica.StateGraph.Examples.FirstExample_Variant3A variant of the first simple StateGraph example|
|Modelica.StateGraph.Examples.ExecutionPathsExample to demonstrate parallel and alternative execution paths|
|Modelica.StateGraph.Examples.ShowCompositeStepExample to demonstrate parallel activities described by a StateGraph|
|Modelica.StateGraph.Examples.ShowExceptionsExample to demonstrate how a hierarchically structured StateGraph can suspend and resume actions on different levels|
|Modelica.StateGraph.Examples.ControlledTanksDemonstrating the controller of a tank filling/emptying system|