CastExpressions.sct 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
  3. <sgraph:Statechart xmi:id="_Wsw4sCfYEeSpK_WCONv8UQ" specification="interface:&#xD;&#xA;&#xD;&#xA;var realValue : real = (5 as real)&#xD;&#xA;var intValue : integer = (5.5 as integer)" name="CastExpressions">
  4. <regions xmi:id="_WsxfwifYEeSpK_WCONv8UQ" name="main region">
  5. <vertices xsi:type="sgraph:Entry" xmi:id="_Ws1xMSfYEeSpK_WCONv8UQ">
  6. <outgoingTransitions xmi:id="_Ws3mYyfYEeSpK_WCONv8UQ" target="_Ws2YRyfYEeSpK_WCONv8UQ"/>
  7. </vertices>
  8. <vertices xsi:type="sgraph:State" xmi:id="_Ws2YRyfYEeSpK_WCONv8UQ" specification="" name="A" incomingTransitions="_Ws3mYyfYEeSpK_WCONv8UQ">
  9. <outgoingTransitions xmi:id="_myT_8CfYEeSpK_WCONv8UQ" specification="always" target="_mA7mUCfYEeSpK_WCONv8UQ"/>
  10. </vertices>
  11. <vertices xsi:type="sgraph:State" xmi:id="_mA7mUCfYEeSpK_WCONv8UQ" specification="entry / realValue = 3 * 5.5 as integer" name="B" incomingTransitions="_myT_8CfYEeSpK_WCONv8UQ">
  12. <outgoingTransitions xmi:id="_tlUsYDG-EeS_kOAaYKgcxg" specification="always [(realValue * 0.1) as real > 1.4 as integer&#xD;&#xA;&#x9;&amp;&amp; (realValue * intValue) as integer &lt; 100 as real]" target="_tRqJgDG-EeS_kOAaYKgcxg"/>
  13. </vertices>
  14. <vertices xsi:type="sgraph:State" xmi:id="_tRqJgDG-EeS_kOAaYKgcxg" specification="entry / realValue = (realValue * intValue * 10.1) as integer" name="C" incomingTransitions="_tlUsYDG-EeS_kOAaYKgcxg"/>
  15. </regions>
  16. </sgraph:Statechart>
  17. <notation:Diagram xmi:id="_WsxfwCfYEeSpK_WCONv8UQ" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_Wsw4sCfYEeSpK_WCONv8UQ" measurementUnit="Pixel">
  18. <children xmi:id="_WszU8CfYEeSpK_WCONv8UQ" type="Region" element="_WsxfwifYEeSpK_WCONv8UQ">
  19. <children xsi:type="notation:DecorationNode" xmi:id="_Ws1KICfYEeSpK_WCONv8UQ" type="RegionName">
  20. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws1KISfYEeSpK_WCONv8UQ"/>
  21. <layoutConstraint xsi:type="notation:Location" xmi:id="_Ws1KIifYEeSpK_WCONv8UQ"/>
  22. </children>
  23. <children xsi:type="notation:Shape" xmi:id="_Ws1KIyfYEeSpK_WCONv8UQ" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
  24. <children xmi:id="_Ws1xMifYEeSpK_WCONv8UQ" type="Entry" element="_Ws1xMSfYEeSpK_WCONv8UQ">
  25. <children xmi:id="_Ws2YQCfYEeSpK_WCONv8UQ" type="BorderItemLabelContainer">
  26. <children xsi:type="notation:DecorationNode" xmi:id="_Ws2YQyfYEeSpK_WCONv8UQ" type="BorderItemLabel">
  27. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws2YRCfYEeSpK_WCONv8UQ"/>
  28. <layoutConstraint xsi:type="notation:Location" xmi:id="_Ws2YRSfYEeSpK_WCONv8UQ"/>
  29. </children>
  30. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws2YQSfYEeSpK_WCONv8UQ" fontName="Verdana" lineColor="4210752"/>
  31. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws2YQifYEeSpK_WCONv8UQ"/>
  32. </children>
  33. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws1xMyfYEeSpK_WCONv8UQ" fontName="Verdana" lineColor="4210752"/>
  34. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws2YRifYEeSpK_WCONv8UQ" x="70" y="20"/>
  35. </children>
  36. <children xmi:id="_Ws2_UCfYEeSpK_WCONv8UQ" type="State" element="_Ws2YRyfYEeSpK_WCONv8UQ">
  37. <children xsi:type="notation:DecorationNode" xmi:id="_Ws2_VCfYEeSpK_WCONv8UQ" type="StateName">
  38. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws2_VSfYEeSpK_WCONv8UQ"/>
  39. <layoutConstraint xsi:type="notation:Location" xmi:id="_Ws2_VifYEeSpK_WCONv8UQ"/>
  40. </children>
  41. <children xsi:type="notation:Compartment" xmi:id="_Ws2_VyfYEeSpK_WCONv8UQ" type="StateTextCompartment">
  42. <children xsi:type="notation:Shape" xmi:id="_Ws2_WCfYEeSpK_WCONv8UQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
  43. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws2_WSfYEeSpK_WCONv8UQ"/>
  44. </children>
  45. </children>
  46. <children xsi:type="notation:Compartment" xmi:id="_Ws3mYCfYEeSpK_WCONv8UQ" type="StateFigureCompartment"/>
  47. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws2_USfYEeSpK_WCONv8UQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
  48. <styles xsi:type="notation:FontStyle" xmi:id="_Ws2_UifYEeSpK_WCONv8UQ"/>
  49. <styles xsi:type="notation:BooleanValueStyle" xmi:id="_Ws3mYSfYEeSpK_WCONv8UQ" name="isHorizontal" booleanValue="true"/>
  50. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws3mYifYEeSpK_WCONv8UQ" x="54" y="82"/>
  51. </children>
  52. <children xmi:id="_mA80cCfYEeSpK_WCONv8UQ" type="State" element="_mA7mUCfYEeSpK_WCONv8UQ">
  53. <children xsi:type="notation:DecorationNode" xmi:id="_mA9bgCfYEeSpK_WCONv8UQ" type="StateName">
  54. <styles xsi:type="notation:ShapeStyle" xmi:id="_mA9bgSfYEeSpK_WCONv8UQ"/>
  55. <layoutConstraint xsi:type="notation:Location" xmi:id="_mA9bgifYEeSpK_WCONv8UQ"/>
  56. </children>
  57. <children xsi:type="notation:Compartment" xmi:id="_mA9bgyfYEeSpK_WCONv8UQ" type="StateTextCompartment">
  58. <children xsi:type="notation:Shape" xmi:id="_mA9bhCfYEeSpK_WCONv8UQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
  59. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_mA9bhSfYEeSpK_WCONv8UQ"/>
  60. </children>
  61. </children>
  62. <children xsi:type="notation:Compartment" xmi:id="_mA9bhifYEeSpK_WCONv8UQ" type="StateFigureCompartment"/>
  63. <styles xsi:type="notation:ShapeStyle" xmi:id="_mA80cSfYEeSpK_WCONv8UQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
  64. <styles xsi:type="notation:FontStyle" xmi:id="_mA80cifYEeSpK_WCONv8UQ"/>
  65. <styles xsi:type="notation:BooleanValueStyle" xmi:id="_mA9bhyfYEeSpK_WCONv8UQ" name="isHorizontal" booleanValue="true"/>
  66. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_mA80cyfYEeSpK_WCONv8UQ" x="178" y="80" width="222" height="63"/>
  67. </children>
  68. <children xmi:id="_tSfP8DG-EeS_kOAaYKgcxg" type="State" element="_tRqJgDG-EeS_kOAaYKgcxg">
  69. <children xsi:type="notation:DecorationNode" xmi:id="_tSi6UDG-EeS_kOAaYKgcxg" type="StateName">
  70. <styles xsi:type="notation:ShapeStyle" xmi:id="_tSi6UTG-EeS_kOAaYKgcxg"/>
  71. <layoutConstraint xsi:type="notation:Location" xmi:id="_tSi6UjG-EeS_kOAaYKgcxg"/>
  72. </children>
  73. <children xsi:type="notation:Compartment" xmi:id="_tSjhYDG-EeS_kOAaYKgcxg" type="StateTextCompartment">
  74. <children xsi:type="notation:Shape" xmi:id="_tSjhYTG-EeS_kOAaYKgcxg" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
  75. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_tSjhYjG-EeS_kOAaYKgcxg"/>
  76. </children>
  77. </children>
  78. <children xsi:type="notation:Compartment" xmi:id="_tSkIcDG-EeS_kOAaYKgcxg" type="StateFigureCompartment"/>
  79. <styles xsi:type="notation:ShapeStyle" xmi:id="_tSfP8TG-EeS_kOAaYKgcxg" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
  80. <styles xsi:type="notation:FontStyle" xmi:id="_tSfP8jG-EeS_kOAaYKgcxg"/>
  81. <styles xsi:type="notation:BooleanValueStyle" xmi:id="_tSkIcTG-EeS_kOAaYKgcxg" name="isHorizontal" booleanValue="true"/>
  82. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_tSfP8zG-EeS_kOAaYKgcxg" x="178" y="292" width="205"/>
  83. </children>
  84. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws1KJCfYEeSpK_WCONv8UQ"/>
  85. </children>
  86. <styles xsi:type="notation:ShapeStyle" xmi:id="_WszU8SfYEeSpK_WCONv8UQ" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
  87. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws1xMCfYEeSpK_WCONv8UQ" x="290" y="10" width="436" height="422"/>
  88. </children>
  89. <children xsi:type="notation:Shape" xmi:id="_Ws40gCfYEeSpK_WCONv8UQ" type="StatechartText" fontName="Verdana" lineColor="4210752">
  90. <children xsi:type="notation:DecorationNode" xmi:id="_Ws40gifYEeSpK_WCONv8UQ" type="StatechartName">
  91. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws40gyfYEeSpK_WCONv8UQ"/>
  92. <layoutConstraint xsi:type="notation:Location" xmi:id="_Ws40hCfYEeSpK_WCONv8UQ"/>
  93. </children>
  94. <children xsi:type="notation:Shape" xmi:id="_Ws40hSfYEeSpK_WCONv8UQ" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
  95. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws40hifYEeSpK_WCONv8UQ"/>
  96. </children>
  97. <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Ws40hyfYEeSpK_WCONv8UQ" x="10" y="10" width="262" height="422"/>
  98. </children>
  99. <styles xsi:type="notation:DiagramStyle" xmi:id="_WsxfwSfYEeSpK_WCONv8UQ"/>
  100. <edges xmi:id="_Ws4NcCfYEeSpK_WCONv8UQ" type="Transition" element="_Ws3mYyfYEeSpK_WCONv8UQ" source="_Ws1xMifYEeSpK_WCONv8UQ" target="_Ws2_UCfYEeSpK_WCONv8UQ">
  101. <children xsi:type="notation:DecorationNode" xmi:id="_Ws4NdCfYEeSpK_WCONv8UQ" type="TransitionExpression">
  102. <styles xsi:type="notation:ShapeStyle" xmi:id="_Ws4NdSfYEeSpK_WCONv8UQ"/>
  103. <layoutConstraint xsi:type="notation:Location" xmi:id="_Ws4NdifYEeSpK_WCONv8UQ" y="10"/>
  104. </children>
  105. <styles xsi:type="notation:ConnectorStyle" xmi:id="_Ws4NcSfYEeSpK_WCONv8UQ" lineColor="4210752"/>
  106. <styles xsi:type="notation:FontStyle" xmi:id="_Ws4NcyfYEeSpK_WCONv8UQ" fontName="Verdana"/>
  107. <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_Ws4NcifYEeSpK_WCONv8UQ" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
  108. </edges>
  109. <edges xmi:id="_myWcMCfYEeSpK_WCONv8UQ" type="Transition" element="_myT_8CfYEeSpK_WCONv8UQ" source="_Ws2_UCfYEeSpK_WCONv8UQ" target="_mA80cCfYEeSpK_WCONv8UQ">
  110. <children xsi:type="notation:DecorationNode" xmi:id="_myXDQSfYEeSpK_WCONv8UQ" type="TransitionExpression">
  111. <styles xsi:type="notation:ShapeStyle" xmi:id="_myXDQifYEeSpK_WCONv8UQ"/>
  112. <layoutConstraint xsi:type="notation:Location" xmi:id="_myXDQyfYEeSpK_WCONv8UQ" y="10"/>
  113. </children>
  114. <styles xsi:type="notation:ConnectorStyle" xmi:id="_myWcMSfYEeSpK_WCONv8UQ" lineColor="4210752"/>
  115. <styles xsi:type="notation:FontStyle" xmi:id="_myXDQCfYEeSpK_WCONv8UQ" fontName="Verdana"/>
  116. <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_myWcMifYEeSpK_WCONv8UQ" points="[18, -5, -106, -3]$[119, -26, -5, -24]"/>
  117. </edges>
  118. <edges xmi:id="_tlWhkDG-EeS_kOAaYKgcxg" type="Transition" element="_tlUsYDG-EeS_kOAaYKgcxg" source="_mA80cCfYEeSpK_WCONv8UQ" target="_tSfP8DG-EeS_kOAaYKgcxg">
  119. <children xsi:type="notation:DecorationNode" xmi:id="_tlXIoDG-EeS_kOAaYKgcxg" type="TransitionExpression">
  120. <styles xsi:type="notation:ShapeStyle" xmi:id="_tlXIoTG-EeS_kOAaYKgcxg"/>
  121. <layoutConstraint xsi:type="notation:Location" xmi:id="_tlXIojG-EeS_kOAaYKgcxg" x="-18" y="186"/>
  122. </children>
  123. <styles xsi:type="notation:ConnectorStyle" xmi:id="_tlWhkTG-EeS_kOAaYKgcxg" lineColor="4210752"/>
  124. <styles xsi:type="notation:FontStyle" xmi:id="_tlWhkzG-EeS_kOAaYKgcxg" fontName="Verdana"/>
  125. <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_tlWhkjG-EeS_kOAaYKgcxg" points="[-14, 29, 79, -149]$[-89, 168, 4, -10]"/>
  126. <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_g_wPwDJ-EeSzIOuhY1zG5A" id="(0.8828828828828829,0.9523809523809523)"/>
  127. <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_tlY90DG-EeS_kOAaYKgcxg" id="(0.9365853658536586,0.09090909090909091)"/>
  128. </edges>
  129. </notation:Diagram>
  130. </xmi:XMI>