next up previous contents index
Next: 8.3 Space Efficiency and Up: 8.2 Transformation Strategies Previous: 8.2.4 Event Handling   Contents   Index

8.2.5 Importation

Importation is transformed into instantiation in the synthesized code. A class is generated for each model. When a submodel is imported, the importing model instantiates an object of the submodel class, and associates the new object with the ID of the importation state.

According to the DCharts semantics, an imported model is conceptually a part of the importing model. Once imported, it remains until the simulation or execution finishes. All the states and transitions of the imported model are copied to the inside of the importation state. This semantics is implemented as instantiation as follows:


next up previous contents index
Next: 8.3 Space Efficiency and Up: 8.2 Transformation Strategies Previous: 8.2.4 Event Handling   Contents   Index
Thomas Huining Feng 2004-04-28