Versions Compared

Key

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

...

Column
width50%
Code Block
languagesct
linenumberstrue
scchart MainSCChart {
  bool A[3];
  
  initial state S1 references InnerSCChart; 
}

scchart InnerSCChart  {
  input bool A[3];
  
  initial state S1
  --> S2 with A[0];
  
  final state S2;
} 
Column
width50%

 


Annotations

The textual SCCharts language supports several annotations to influence the visual representation of the model.

PatternUsageDescriptionExample
No Format
nopaneltrue
@synthesis[<key>] <value>
Location:scchart
<key>The name of the synthesis option. The given name is evaluated case-insensitive and whitespace-ignoring. The options are searched for the prefix <key> and the first match is taken.
<value>value

Sets the synthesis option identified by <key> to the given value.

The available synthesis options for a diagram are displayed in the sidebar of the diagram view.

Code Block
languagesct
@diagram[paper] true
scchart Testing {
  initial state A
  --> B;
  final state B;
}
No Format
nopaneltrue
@layout[<key>] <value>
Location:scchart, state, region, transition
<key>key
<value>value

Sets the layout property identified by <key> to the given value on the annotated element.

Layout options will only affect the annotated element and no underlying hierarchy levels.

Code Block
languagesct
scchart Testing {
  initial state A
  --> B;
  final state B;
}
No Format
nopaneltrue
@HVLayout
@VHLayout
Location:scchart, state, region
 
Code Block
languagesct
@VHLayout
scchart Testing {
  initial state A
  --> B;
  final state B;
}
No Format
nopaneltrue
@collapse
@expand
Location:scchart, state, region
 
Code Block
languagesct
scchart Testing {
  initial state A
  --> B;
  final state B;
}
No Format
nopaneltrue
@hide
Location:scchart, state, region, transition
 
Code Block
languagesct
scchart Testing {
  initial state A
  --> B;
  @hide
  final state B;
}