Versions Compared

Key

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

 

Table of Contents

There are several extensions implemented to ease the work with a scl model. (de.cau.cs.kieler.scl.extensions)

...

coming soon...

SCL  Naming Extensions

SCL Naming Extensions

...

coming soon..provide helper functions for ID & naming services.

MethodDescription
def void distributeStateIDs(Statechart)Since yakindu does not make use of the ID field, one can use this method to make every ID in a statechart unique.
def String getHierarchicalName(SyncState, String)Generates a (most likely unique) name for a state. The name is generated from all parent states and regions, which are separated by an underscore. If a region or state has no name, the element's hash code is used instead.

SCL Ordering Extensions

The Ordering Extensions provide functions, which can be used in the xtend sort context.

...

SCL Expression Extensions

...

The SCL Expression Extension holds methods to help with the manipulation and constructions of the SText (and extended) expressions.

MethodDescription
def Expression toExpression(RegularEventSpec)Transforms a SGraph RegularEventSpec to a SText Expression. The resulting expression will be an ElementReferenceExpression.
def Expression negate(Expression)Negates the given expression. If the Expression is an ElementReferenceExpression the result will be a LogicalNotExpression containing the expression. Otherwise the result will be a LogicalNotExpression containing a ParenthesizedExpression, which then holds the original expression.
def String correctSerialization(String)Since the actual implementation of the SText parser may parse artefacts (like linebreaks) until matching a preceding delimeter, correctSerialization removes these artifacts, when serializing an expression.

SCL Dependency Extensions

...