Versions Compared

Key

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

...

Question: Are declarations with the same name allowed?

Image Removed+Image Added

Declarations

Within State Scopes there can be declarations of variables (and signals)?.

...

VariableDefinition:
{VariableDefinition} direction=VarDirection? (isStatic?='static')? name=ID ':' type=[types::Type|FQN] name=ID ('=' varInitialValue=Expression)? ('with' varCombineOperator=CombineOperator)?;

Examples:Image Removed

 

 

Image Added

 

Signals

4 views to implement signals:

...

 advantagedisadvantage
Don't use signals
  • no need to be implemented
  • no signals
Boolean variables as signals
  • implementation in a short time
  • a short form declaration:

    in I instead of in I:boolean

  • a short form of use:
    I / O instead of [I==true] / O = false
  • no more possible to use of Boolean variables
Yakindu events as signals
  • use of already implemented features
  • differ between Signals and Boolean Variables

Declaration: in signal I;

  • signals are implemented as events
  • Question: How to mix Signals and variables?
New declaration type
  • differ between Signals and Boolean Variables

Declaration: in signal I;

  • expensive

 

State Reactions

Image RemovedImage Added

Entry

is an Effect.

EntryAction returns sgraph::Effect:
{EntryAction} 'Entry' ' : ''/' effect=ReactionEffect ';';

...

InsideAction returns sgraph::Effect:
{InsideAction} 'Inside' ':'  '/' effect=ReactionEffect ';';

...

ExitAction returns sgraph::Effect:
{ExitAction} 'Exit' ':'  '/' effect=ReactionEffect ';';

...

Suspend returns sgraph::Trigger:
{Suspend} 'Suspend' ':' trigger trigger=ReactionTrigger ';';


Transition

...