Stateflow    

Stateflow API Object Hierarchy

Stateflow API objects represent actual Stateflow objects in a Stateflow diagram. Like Stateflow objects, API objects contain or are contained by other Stateflow objects. For example, if state A contains state B in the Stateflow diagram editor, then the API object for state A contains the API object for state B. The following diagram depicts the Stateflow API hierarchy of objects:

Rules of containment define the Stateflow and Stateflow API object hierarchy. For example, charts can contain states but states cannot contain charts. The hierarchy of Stateflow objects, also known as the Stateflow data dictionary, is depicted in the section Overview of the Stateflow Machine. The Stateflow API hierarchy is very similar to the hierarchy of the Stateflow data dictionary and consists of the following layers of containment:

The preceding figure also shows two object types that exist outside the Stateflow containment hierarchy, which are as follows:


  What Is the Stateflow API? Getting a Handle on Stateflow API Objects