Commit ffdf45a1 authored by De Viry Guilhem's avatar De Viry Guilhem

Ajout de setters pour les états initiaux et finaux

parent 6804b893
......@@ -73,6 +73,30 @@
</initialOperation>
</ownedTools>
</toolSections>
<toolSections name="Set" label="Set">
<ownedTools xsi:type="tool_1:ToolDescription" name="SetInitialState" label="Set Initial State">
<element name="element"/>
<elementView name="elementView"/>
<initialOperation>
<firstModelOperations xsi:type="tool_1:If" conditionExpression="aql:self.eClass() == fsm::State">
<subModelOperations xsi:type="tool_1:ChangeContext" browseExpression="aql:element.eContainer(fsm::FSM)">
<subModelOperations xsi:type="tool_1:SetValue" featureName="initialState" valueExpression="aql:element"/>
</subModelOperations>
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:ToolDescription" name="SetFinalState" label="Set Final State">
<element name="element"/>
<elementView name="elementView"/>
<initialOperation>
<firstModelOperations xsi:type="tool_1:If" conditionExpression="aql:self.eClass() == fsm::State">
<subModelOperations xsi:type="tool_1:ChangeContext" browseExpression="aql:element.eContainer(fsm::FSM)">
<subModelOperations xsi:type="tool_1:SetValue" featureName="finalState" valueExpression="aql:element"/>
</subModelOperations>
</firstModelOperations>
</initialOperation>
</ownedTools>
</toolSections>
</defaultLayer>
<additionalLayers name="EAGLayer" label="Event/Action/Guard Layer" activeByDefault="true">
<containerMappings name="EAGContainer" label="Event/Action/Guard Container" semanticCandidatesExpression="var:self" synchronizationLock="true" domainClass="fsm::FSM" childrenPresentation="HorizontalStack">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment