Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagesct
titleSCT Code Style
linenumberstrue
scchart {

  input bool trigger;
  output bool action0, action1;
  int fun;

  region first_region "Have fun":
  // State example
  initial state example_state
  --> example_state "Having fun"
    with trigger
    / action0 = true
    ; action1 = false
    ; fun++
  ;

  // Region
  region second_region "Do nothing concurrently":

  initial state init;
}

Build Settings

To have the simulation and SCT build correctly via Prom, one has to modify the Prom environment that builds the project:

  • Preferences > KIELER SCCharts > Execution Environments
    • Select Generic
    • Select tab Compilation
    • Select kieler-gen as target directory
    • Set Snippets directory to snippets

Git

Use git.

Pull before you start coding.

...