Versions Compared

Key

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

...

  • has an optional (not direction for local variables) direction, 
  • can be static, 
  • has a datatype datatype (integer, boolean, real, string, void)
  • an optional initial value
  • has a CombineOperator (-, +, *, max, min, or, and, host).

Examples:

Signals

4 views to implement signals

  • don't use signals. Use only variables
  • Boolean variables are interpreted as signals (no Boolean variables available)
  • Yakindu events are interpreted as signals
  • declare a new declarations type named signal

 

 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
New declaration type
  • differ between Signals and Boolean Variables

Declaration: in signal I;

  • expensive