Versions Compared

Key

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

...

Change the contents of the model file to the following code and save it.

Code Block
themeEclipse
languagesct
titleFloodlight.sct
scchart Flashlight {
    
    @Wrapper TouchSensor, S4
    input bool button;
    
    @Wrapper Floodlight, S1
    output bool light;
    
    initial state lightOff
    --> lightOn with button / light = true;
    
    state lightOn
    --> lightOff with !button / light = false;
}

...