Versions Compared

Key

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

This document shows how to modify the Yakindu SCT Editor State structure. Initial and Final States are pseudo states in Yakindu SCT. The Initial State can only have one outgoing transition and no incoming. It is represented with a black filled circle. The Final State can only have one incoming transition and no outgoing. To create a an Initial or Final State, we have to select Initial or Final State element in the palette and then draw it on the appropriate region.

Goal:  Initial and Final States are normal or composite states with a thicker border.

  1. Modify the Metamodel (org.yakindu.sct.model.sgraph/model/emf/sgraph.genmodel) by adding two attributes (isInitial and isFinal) to the State Class and then generate the code
    Image Added