Page 4 of 4. Showing 35 results (0.064 seconds)
Examples (sct)
Compiler Quick Start Guide (pre 0.13) SCCharts Examples A few SCCharts examples... Example SCChart (Graphical) SCChart (Textual SCT) ABO abo.png @VHLayout scchart ABO { input output bool A; input output bool B; output bool O1; output bool O2; region: initial state InitQuick Start Guide (pre 0.13)
be opened: kieler10.png Now start modeling an SCChart. For example copy & paste the following sct code of ABO, the hello world of SCCharts (you can find more example models here, a description of the textual SCCharts syntax (SCT) can be found here): @VHLayout scchart ABO { input bool A; input bool B; outputTextual SCCharts Language SCT
O = false; region Main: initial state ABO "ABthenO" { entry / O = false; initial state WaitAandB { region HandleA: initial state wA … = true; final state done; } o-> ABO with R; } abro.png In the first line you see how an SCChart is defined using the scchart keyword whereSCCharts Development
of that SCCharts looks like. And finally a more sophisticated model: Write down the model of ABO (from Examples). By the way: You can right-click … this way. This is a known issue. We're working on it. Just ignore it for now. Now, create a new Java class and proceed as before to generate a model of ABOQuick Start Guide
. scchart ABRO { input bool A, B, R output bool O initial state ABO { entry do O = false initial state WaitAB { region { initial state wA … } } do O = true join to done state done } if R abort to ABO } When you press the save button (or ctrl+S / cmd+S) the model is saved