wiki:news:16aug2013
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:news:16aug2013 [2013/08/16 15:36] – pmueller | wiki:news:16aug2013 [2015/05/01 21:01] – Discussion status changed pmueller | ||
---|---|---|---|
Line 13: | Line 13: | ||
===== Microwave Oven Example in C# ===== | ===== Microwave Oven Example in C# ===== | ||
- | The following | + | A microwave oven is taken from the examples folder of the code generator |
{{ : | {{ : | ||
Line 29: | Line 29: | ||
+ | To generate code from the diagram call the generator as follows: | ||
+ | |||
+ | <code bash> | ||
+ | java -Djava.ext.dirs=../ | ||
+ | </ | ||
The generated code looks as follows: | The generated code looks as follows: | ||
- | < | + | < |
namespace OvenMachineNS | namespace OvenMachineNS | ||
{ | { | ||
Line 118: | Line 123: | ||
</ | </ | ||
+ | |||
+ | |||
+ | Finally start the generated exe file and play with the microwave oven. First increment the cooking time. Then start cooking by closing the door. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | The sinelabore code generator provides much more features than just code generations. Before generation an extensive check is performed to ensure your diagram is correct (e.g. each transition has an associated event, all state names are unique ...). You can add trace code if needed, simulate the state machine, generate test cases and more. | ||
+ | |||
+ | If you want to try out the example yourself download the code generator demo. The oven can be found in the examples folder. | ||
+ | |||
+ | |||
+ | {(rater> | ||
+ | ~~DISCUSSION: | ||
+ | |||
+ | |||
+ |
wiki/news/16aug2013.txt · Last modified: 2024/05/03 22:42 by webmin