wiki:examples:room_thermostat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
wiki:examples:room_thermostat [2013/01/26 19:50] – pmueller | wiki:examples:room_thermostat [2013/01/27 14:25] – pmueller | ||
---|---|---|---|
Line 4: | Line 4: | ||
{{ : | {{ : | ||
- | Figure 1: Thermostat model designed in Enterprise Architect. | ||
It uses **regions** to model the three parts of such a controller. | It uses **regions** to model the three parts of such a controller. | ||
Line 20: | Line 19: | ||
{{: | {{: | ||
- | Figure 2: Class diagram. In the attached comment C-code can be defined that is just included into the generated state machine code. | + | //Class diagram. In the attached comment C-code can be defined that is just included into the generated state machine code.// |
Regions are useful in the following situations | Regions are useful in the following situations | ||
Line 31: | Line 30: | ||
====== Implementation ====== | ====== Implementation ====== | ||
- | The following state diagram in figure 2 shows the classes (i.e. c files) involved in the solution. The '' | + | The following state diagram in figure 2 shows the classes (i.e. C-files) involved in the solution. The '' |
{{: | {{: | ||
Line 109: | Line 108: | ||
In this example we have shows how regions can be beneficially used for modeling parallel actions and how easy it is to generate code from the state diagram. The generated code can be adjusted to your needs and requires no additional run-time libraries. | In this example we have shows how regions can be beneficially used for modeling parallel actions and how easy it is to generate code from the state diagram. The generated code can be adjusted to your needs and requires no additional run-time libraries. | ||
+ | |||
+ | ~~DISCUSSION|Leave a comment~~ |
wiki/examples/room_thermostat.txt · Last modified: 2022/08/17 19:41 by pmueller