Search in sources :

Example 21 with InterfaceScope

use of org.yakindu.sct.model.stext.stext.InterfaceScope in project statecharts by Yakindu.

the class FlowOptimizer_ExecutionEntryTest method testNoNullCall.

@Test
public void testNoNullCall() {
    Statechart sc = _createStatechart("sc");
    {
        InterfaceScope s_scope = _createInterfaceScope("Interface", sc);
        VariableDefinition v1 = _createVariableDefinition("v1", TYPE_INTEGER, s_scope);
        Region r = _createRegion("r", sc);
        {
            Entry r_entry = _createEntry(EntryKind.INITIAL, null, r);
            State s1 = _createState("s1", r);
            State s2 = _createState("s2", r);
            {
                _createEntryAssignment(v1, s2, 3);
                Region r2 = _createRegion("r2", s2);
                {
                    Entry e = _createEntry(EntryKind.INITIAL, null, r2);
                    Entry history = _createEntry(EntryKind.SHALLOW_HISTORY, "history", r2);
                    State s3 = _createState("s3", r2);
                    {
                        _createEntryAssignment(v1, s3, 4);
                    }
                    State s4 = _createState("s4", r2);
                    {
                        Region r4 = _createRegion("r4", s4);
                        {
                            Entry e4 = _createEntry(EntryKind.INITIAL, null, r2);
                            State s5 = _createState("s5", r4);
                            _createTransition(e4, s5);
                            _createTransition(s5, s1);
                        }
                    }
                    _createTransition(e, s3);
                    _createTransition(history, s3);
                    _createTransition(s3, s4);
                    _createTransition(s1, history);
                }
            }
            _createTransition(r_entry, s1);
            _createTransition(s1, s2);
        }
    }
    ExecutionFlow flow = sequencer.transform(sc);
    optimizer.inlineChoices(true);
    optimizer.inlineEnterSequences(true);
    optimizer.inlineEntryActions(true);
    optimizer.inlineExitActions(true);
    optimizer.inlineExitRegion(true);
    optimizer.inlineExitSequences(true);
    optimizer.inlineReactions(true);
    optimizer.inlineEntries(true);
    optimizer.transform(flow);
    TreeIterator<EObject> iter = flow.eAllContents();
    while (iter.hasNext()) {
        EObject child = iter.next();
        if (child instanceof Call) {
            Call childCall = (Call) child;
            if (childCall.getStep() == null) {
                if (childCall.eContainer() instanceof Sequence) {
                    Sequence sequence = (Sequence) childCall.eContainer();
                    fail(sequence.getName() + ": " + sequence.getComment());
                } else {
                    fail("Call of null-Step in " + childCall.eContainer());
                }
            }
        }
    }
}
Also used : Call(org.yakindu.sct.model.sexec.Call) Entry(org.yakindu.sct.model.sgraph.Entry) SGraphTestFactory._createEntry(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createEntry) VariableDefinition(org.yakindu.sct.model.stext.stext.VariableDefinition) StextTestFactory._createVariableDefinition(org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition) SGraphTestFactory._createState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState) State(org.yakindu.sct.model.sgraph.State) EObject(org.eclipse.emf.ecore.EObject) ExecutionFlow(org.yakindu.sct.model.sexec.ExecutionFlow) Statechart(org.yakindu.sct.model.sgraph.Statechart) SGraphTestFactory._createStatechart(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart) InterfaceScope(org.yakindu.sct.model.stext.stext.InterfaceScope) StextTestFactory._createInterfaceScope(org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope) Region(org.yakindu.sct.model.sgraph.Region) SGraphTestFactory._createRegion(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion) Sequence(org.yakindu.sct.model.sexec.Sequence) Test(org.junit.Test)

Example 22 with InterfaceScope

use of org.yakindu.sct.model.stext.stext.InterfaceScope in project statecharts by Yakindu.

the class StatechartObjectViewerFilter method select.

@Override
public boolean select(Viewer viewer, Object parentElement, Object element) {
    if (element instanceof DomainNavigatorItem) {
        DomainNavigatorItem navigatorItem = (DomainNavigatorItem) element;
        EObject modelElement = navigatorItem.getEObject();
        if (modelElement instanceof Diagram) {
            return false;
        }
        if (modelElement instanceof Trigger) {
            return false;
        }
        if (modelElement instanceof InternalScope || modelElement instanceof InterfaceScope) {
            return true;
        }
        if (modelElement instanceof Scope) {
            return false;
        }
        if (modelElement instanceof LocalReaction) {
            return false;
        }
        if (modelElement instanceof ReactionEffect) {
            return false;
        }
        if (modelElement instanceof Expression) {
            return false;
        }
    }
    return true;
}
Also used : LocalReaction(org.yakindu.sct.model.stext.stext.LocalReaction) Trigger(org.yakindu.sct.model.sgraph.Trigger) Scope(org.yakindu.sct.model.sgraph.Scope) InterfaceScope(org.yakindu.sct.model.stext.stext.InterfaceScope) InternalScope(org.yakindu.sct.model.stext.stext.InternalScope) Expression(org.yakindu.base.expressions.expressions.Expression) EObject(org.eclipse.emf.ecore.EObject) InternalScope(org.yakindu.sct.model.stext.stext.InternalScope) InterfaceScope(org.yakindu.sct.model.stext.stext.InterfaceScope) ReactionEffect(org.yakindu.sct.model.stext.stext.ReactionEffect) Diagram(org.eclipse.gmf.runtime.notation.Diagram)

Example 23 with InterfaceScope

use of org.yakindu.sct.model.stext.stext.InterfaceScope in project statecharts by Yakindu.

the class ModelSequencerHistoryTest method testFlowName.

@SuppressWarnings("unused")
@Test
public void testFlowName() {
    Statechart sc = _createStatechart("sc");
    {
        InterfaceScope s_scope = _createInterfaceScope("Interface", sc);
        VariableDefinition v1 = _createVariableDefinition("v1", TYPE_INTEGER, s_scope);
        Region r = _createRegion("r", sc);
        {
            Entry r_entry = _createEntry(EntryKind.INITIAL, null, r);
            State s1 = _createState("s1", r);
            State s2 = _createState("s2", r);
            {
                Region r2 = _createRegion("r2", s2);
                {
                    Entry r2_entry1 = _createEntry(EntryKind.SHALLOW_HISTORY, null, r2);
                    Entry r2_entry2 = _createEntry(EntryKind.INITIAL, "Unused_Backup", r2);
                    State s3 = _createState("s3", r2);
                    State s4 = _createState("s4", r2);
                    _createTransition(r2_entry1, s3);
                    _createTransition(r2_entry2, s4);
                    _createTransition(s1, r2_entry1);
                }
            }
            _createTransition(s1, s2);
            Transition _t = _createTransition(s1, s2);
            _createTransition(r_entry, s1);
        }
    }
    ExecutionFlow flow = sequencer.transform(sc);
    ExecutionState _s1 = flow.getStates().get(0);
    assertEquals("sc.r.s1", _s1.getName());
    ExecutionState _s2 = flow.getStates().get(1);
    assertEquals("sc.r.s2", _s2.getName());
    ExecutionState _s3 = flow.getStates().get(2);
    assertEquals("sc.r.s2.r2.s3", _s3.getName());
    ExecutionState _s4 = flow.getStates().get(3);
    assertEquals("sc.r.s2.r2.s4", _s4.getName());
    ExecutionNode r2_history_entry = flow.getNodes().get(1);
    EList<Reaction> _t1 = _s1.getReactions();
    Sequence reactSequence_history = flow.getNodes().get(1).getReactSequence();
    HistoryEntry historyStep = (HistoryEntry) reactSequence_history.getSteps().get(0);
    assertFalse(historyStep.isDeep());
    assertCall(firstStep(firstStep(historyStep.getInitialStep())), _s3.getEnterSequences().get(0));
    Reaction reaction_history = _t1.get(0);
    assertCall(assertedSequence(reaction_history.getEffect()), 1, reactSequence_history);
    Sequence reactSequence_initial = flow.getNodes().get(2).getReactSequence();
    assertCall(((Sequence) firstStep(firstStep(reactSequence_initial))), 0, _s4.getEnterSequences().get(0));
    Reaction reaction = _t1.get(1);
    assertCall(assertedSequence(reaction.getEffect()), 1, _s2.getEnterSequences().get(0));
    assertCall(_s3.getSuperScope().getEnterSequences().get(0), 0, r2_history_entry.getReactSequence());
    Step saveStep = _s3.getEnterSequences().get(0).getSteps().get(1);
    assertTrue(saveStep.eClass().toString(), saveStep instanceof SaveHistory);
    saveStep = _s4.getEnterSequences().get(0).getSteps().get(1);
    assertTrue(saveStep.eClass().toString(), saveStep instanceof SaveHistory);
}
Also used : ExecutionState(org.yakindu.sct.model.sexec.ExecutionState) SaveHistory(org.yakindu.sct.model.sexec.SaveHistory) VariableDefinition(org.yakindu.sct.model.stext.stext.VariableDefinition) StextTestFactory._createVariableDefinition(org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition) ExecutionFlow(org.yakindu.sct.model.sexec.ExecutionFlow) ExecutionNode(org.yakindu.sct.model.sexec.ExecutionNode) InterfaceScope(org.yakindu.sct.model.stext.stext.InterfaceScope) StextTestFactory._createInterfaceScope(org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope) Sequence(org.yakindu.sct.model.sexec.Sequence) Step(org.yakindu.sct.model.sexec.Step) Reaction(org.yakindu.sct.model.sexec.Reaction) Entry(org.yakindu.sct.model.sgraph.Entry) HistoryEntry(org.yakindu.sct.model.sexec.HistoryEntry) SGraphTestFactory._createEntry(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createEntry) SGraphTestFactory._createState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState) ExecutionState(org.yakindu.sct.model.sexec.ExecutionState) State(org.yakindu.sct.model.sgraph.State) Transition(org.yakindu.sct.model.sgraph.Transition) SGraphTestFactory._createTransition(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createTransition) Statechart(org.yakindu.sct.model.sgraph.Statechart) SGraphTestFactory._createStatechart(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart) Region(org.yakindu.sct.model.sgraph.Region) SGraphTestFactory._createRegion(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion) ExecutionRegion(org.yakindu.sct.model.sexec.ExecutionRegion) HistoryEntry(org.yakindu.sct.model.sexec.HistoryEntry) Test(org.junit.Test)

Example 24 with InterfaceScope

use of org.yakindu.sct.model.stext.stext.InterfaceScope in project statecharts by Yakindu.

the class ModelSequencerStateTest method testFinalState.

/**
 * A final state must be transformed into a execution state with name
 * '_final_'. and must include parent reactions.
 */
@SuppressWarnings("unused")
@Test
public void testFinalState() {
    Statechart sc = _createStatechart("sc");
    {
        InterfaceScope s_scope = _createInterfaceScope("Interface", sc);
        VariableDefinition v1 = _createVariableDefinition("v1", TYPE_INTEGER, s_scope);
        EventDefinition e1 = _createEventDefinition("e1", s_scope);
        Region r = _createRegion("r", sc);
        {
            State s1 = _createState("s1", r);
            {
                // a local reaction: "e1 / x=42;"
                LocalReaction lr1 = _createLocalReaction(s1, null);
                _createRegularEventSpec(e1, (ReactionTrigger) lr1.getTrigger());
                ReactionEffect lr1_eff = _createReactionEffect(lr1);
                AssignmentExpression assign1 = _createVariableAssignment(v1, AssignmentOperator.ASSIGN, _createValue(42), lr1_eff);
                Region r_s1 = _createRegion("r", s1);
                {
                    State s3 = _createState("s3", r_s1);
                    {
                        _createEntryAssignment(v1, s3, 2);
                        Region r_s3 = _createRegion("r", s3);
                        {
                            State s4 = _createState("s4", r_s3);
                            // _createEntryAssignment(v1, s4, 3);
                            FinalState fs = _createFinalState(r_s3);
                            Transition t_s4_fs = _createTransition(findState(sc, "s4"), fs);
                            _createReactionTrigger(t_s4_fs);
                            _createRegularEventSpec(e1, (ReactionTrigger) t_s4_fs.getTrigger());
                        }
                    }
                }
            }
            State s2 = _createState("s2", r);
            {
                Region r_s1 = _createRegion("r", s2);
                {
                    _createState("s6", r_s1);
                }
            }
        }
        Transition t_s3_s6 = _createTransition(findState(sc, "s3"), findState(sc, "s6"));
        _createReactionTrigger(t_s3_s6);
        _createRegularEventSpec(e1, (ReactionTrigger) t_s3_s6.getTrigger());
    }
    ExecutionFlow flow = sequencer.transform(sc);
    ExecutionState _s1 = flow.getStates().get(0);
    assertEquals("sc.r.s1", _s1.getName());
    ExecutionState _s3 = flow.getStates().get(1);
    assertEquals("sc.r.s1.r.s3", _s3.getName());
    ExecutionState _s4 = flow.getStates().get(2);
    assertEquals("sc.r.s1.r.s3.r.s4", _s4.getName());
    ExecutionState _fs = flow.getStates().get(3);
    assertEquals("sc.r.s1.r.s3.r._final_", _fs.getName());
    ExecutionState _s6 = flow.getStates().get(5);
    assertEquals("sc.r.s2.r.s6", _s6.getName());
    assertNull(_fs.getEntryAction());
    assertNull(_fs.getExitAction());
    Sequence cycle = _fs.getReactSequence();
    Sequence _seq = (Sequence) cycle.getSteps().get(0);
    // first entry is the s1 local reaction
    List<Step> steps = SCTTestUtil.flattenSequenceStepsAsList(_seq);
    If _if = (If) steps.get(0);
    assertCall(_if.getThenStep(), _s1.getReactions().get(0).getEffect());
    // second entry is the s3 cycle with the transition reaction
    _if = (If) steps.get(1);
    assertCall(_if.getThenStep(), _s3.getReactions().get(0).getEffect());
    assertTrue(_s3.getReactions().get(0).isTransition());
    assertNotNull(_if.getElseStep());
}
Also used : LocalReaction(org.yakindu.sct.model.stext.stext.LocalReaction) StextTestFactory._createLocalReaction(org.yakindu.sct.model.stext.test.util.StextTestFactory._createLocalReaction) ExecutionState(org.yakindu.sct.model.sexec.ExecutionState) StextTestFactory._createVariableDefinition(org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition) VariableDefinition(org.yakindu.sct.model.stext.stext.VariableDefinition) ExecutionFlow(org.yakindu.sct.model.sexec.ExecutionFlow) InterfaceScope(org.yakindu.sct.model.stext.stext.InterfaceScope) StextTestFactory._createInterfaceScope(org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope) ReactionEffect(org.yakindu.sct.model.stext.stext.ReactionEffect) StextTestFactory._createReactionEffect(org.yakindu.sct.model.stext.test.util.StextTestFactory._createReactionEffect) Sequence(org.yakindu.sct.model.sexec.Sequence) Step(org.yakindu.sct.model.sexec.Step) StextTestFactory._createEventDefinition(org.yakindu.sct.model.stext.test.util.StextTestFactory._createEventDefinition) EventDefinition(org.yakindu.sct.model.stext.stext.EventDefinition) FinalState(org.yakindu.sct.model.sgraph.FinalState) SGraphTestFactory._createFinalState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createFinalState) AssignmentExpression(org.yakindu.base.expressions.expressions.AssignmentExpression) StextTestFactory._createReactionTrigger(org.yakindu.sct.model.stext.test.util.StextTestFactory._createReactionTrigger) ReactionTrigger(org.yakindu.sct.model.stext.stext.ReactionTrigger) FinalState(org.yakindu.sct.model.sgraph.FinalState) SGraphTestFactory._createFinalState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createFinalState) ExitState(org.yakindu.sct.model.sexec.ExitState) SCTTestUtil.findState(org.yakindu.sct.model.sexec.transformation.test.SCTTestUtil.findState) SGraphTestFactory._createState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState) ExecutionState(org.yakindu.sct.model.sexec.ExecutionState) EnterState(org.yakindu.sct.model.sexec.EnterState) State(org.yakindu.sct.model.sgraph.State) Transition(org.yakindu.sct.model.sgraph.Transition) SGraphTestFactory._createTransition(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createTransition) Statechart(org.yakindu.sct.model.sgraph.Statechart) SGraphTestFactory._createStatechart(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart) Region(org.yakindu.sct.model.sgraph.Region) SGraphTestFactory._createRegion(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion) If(org.yakindu.sct.model.sexec.If) Test(org.junit.Test)

Example 25 with InterfaceScope

use of org.yakindu.sct.model.stext.stext.InterfaceScope in project statecharts by Yakindu.

the class ModelSequencerStateTest method testStateCycle_WithParent.

/**
 * The state cycle must contain all reactions of parent states.
 */
@SuppressWarnings("unused")
@Test
public void testStateCycle_WithParent() {
    Statechart sc = _createStatechart("sc");
    {
        InterfaceScope s_scope = _createInterfaceScope("Interface", sc);
        VariableDefinition v1 = _createVariableDefinition("v1", TYPE_INTEGER, s_scope);
        EventDefinition e1 = _createEventDefinition("e1", s_scope);
        Region r = _createRegion("r", sc);
        {
            State s1 = _createState("s1", r);
            {
                // a local reaction: "e1 / x=42;"
                LocalReaction lr1 = _createLocalReaction(s1, null);
                _createRegularEventSpec(e1, (ReactionTrigger) lr1.getTrigger());
                ReactionEffect lr1_eff = _createReactionEffect(lr1);
                AssignmentExpression assign1 = _createVariableAssignment(v1, AssignmentOperator.ASSIGN, _createValue(42), lr1_eff);
                Region r_s1 = _createRegion("r", s1);
                {
                    State s3 = _createState("s3", r_s1);
                    {
                        _createEntryAssignment(v1, s3, 2);
                        Region r_s3 = _createRegion("r", s3);
                        {
                            State s4 = _createState("s4", r_s3);
                            _createEntryAssignment(v1, s4, 3);
                            State s5 = _createState("s5", r_s3);
                        }
                    }
                }
            }
            State s2 = _createState("s2", r);
            {
                Region r_s1 = _createRegion("r", s2);
                {
                    _createState("s6", r_s1);
                }
            }
        }
        Transition t_s4_s5 = _createTransition(findState(sc, "s4"), findState(sc, "s5"));
        _createReactionTrigger(t_s4_s5);
        _createRegularEventSpec(e1, (ReactionTrigger) t_s4_s5.getTrigger());
        Transition t_s3_s6 = _createTransition(findState(sc, "s3"), findState(sc, "s6"));
        _createReactionTrigger(t_s3_s6);
        _createRegularEventSpec(e1, (ReactionTrigger) t_s3_s6.getTrigger());
    }
    ExecutionFlow flow = sequencer.transform(sc);
    ExecutionState _s1 = flow.getStates().get(0);
    assertEquals("sc.r.s1", _s1.getName());
    ExecutionState _s3 = flow.getStates().get(1);
    assertEquals("sc.r.s1.r.s3", _s3.getName());
    ExecutionState _s4 = flow.getStates().get(2);
    assertEquals("sc.r.s1.r.s3.r.s4", _s4.getName());
    ExecutionState _s6 = flow.getStates().get(5);
    assertEquals("sc.r.s2.r.s6", _s6.getName());
    Sequence cycle = _s4.getReactSequence();
    Sequence _seq = (Sequence) cycle.getSteps().get(0);
    // first entry is the s1 local reaction
    List<Step> steps = SCTTestUtil.flattenSequenceStepsAsList(_seq);
    If _if = (If) steps.get(0);
    assertCall(_if.getThenStep(), _s1.getReactions().get(0).getEffect());
    // second entry is the s3 cycle with the transition reaction
    _if = (If) steps.get(1);
    assertCall(_if.getThenStep(), _s3.getReactions().get(0).getEffect());
    assertTrue(_s3.getReactions().get(0).isTransition());
    // third is the s4 cycle with the transition reaction
    _seq = (Sequence) _if.getElseStep();
    cycle = (Sequence) _seq.getSteps().get(0);
    _if = (If) assertedSequence(cycle.getSteps().get(0)).getSteps().get(0);
    assertCall(_if.getThenStep(), _s4.getReactions().get(0).getEffect());
    assertTrue(_s4.getReactions().get(0).isTransition());
    assertTrue(assertedSequence(assertedSequence(_if.getElseStep()).getSteps().get(0)).getSteps().isEmpty());
    assertEquals(1, cycle.getSteps().size());
}
Also used : LocalReaction(org.yakindu.sct.model.stext.stext.LocalReaction) StextTestFactory._createLocalReaction(org.yakindu.sct.model.stext.test.util.StextTestFactory._createLocalReaction) ExecutionState(org.yakindu.sct.model.sexec.ExecutionState) StextTestFactory._createVariableDefinition(org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition) VariableDefinition(org.yakindu.sct.model.stext.stext.VariableDefinition) ExecutionFlow(org.yakindu.sct.model.sexec.ExecutionFlow) InterfaceScope(org.yakindu.sct.model.stext.stext.InterfaceScope) StextTestFactory._createInterfaceScope(org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope) ReactionEffect(org.yakindu.sct.model.stext.stext.ReactionEffect) StextTestFactory._createReactionEffect(org.yakindu.sct.model.stext.test.util.StextTestFactory._createReactionEffect) Sequence(org.yakindu.sct.model.sexec.Sequence) Step(org.yakindu.sct.model.sexec.Step) StextTestFactory._createEventDefinition(org.yakindu.sct.model.stext.test.util.StextTestFactory._createEventDefinition) EventDefinition(org.yakindu.sct.model.stext.stext.EventDefinition) AssignmentExpression(org.yakindu.base.expressions.expressions.AssignmentExpression) StextTestFactory._createReactionTrigger(org.yakindu.sct.model.stext.test.util.StextTestFactory._createReactionTrigger) ReactionTrigger(org.yakindu.sct.model.stext.stext.ReactionTrigger) FinalState(org.yakindu.sct.model.sgraph.FinalState) SGraphTestFactory._createFinalState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createFinalState) ExitState(org.yakindu.sct.model.sexec.ExitState) SCTTestUtil.findState(org.yakindu.sct.model.sexec.transformation.test.SCTTestUtil.findState) SGraphTestFactory._createState(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState) ExecutionState(org.yakindu.sct.model.sexec.ExecutionState) EnterState(org.yakindu.sct.model.sexec.EnterState) State(org.yakindu.sct.model.sgraph.State) Transition(org.yakindu.sct.model.sgraph.Transition) SGraphTestFactory._createTransition(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createTransition) Statechart(org.yakindu.sct.model.sgraph.Statechart) SGraphTestFactory._createStatechart(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart) Region(org.yakindu.sct.model.sgraph.Region) SGraphTestFactory._createRegion(org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion) If(org.yakindu.sct.model.sexec.If) Test(org.junit.Test)

Aggregations

InterfaceScope (org.yakindu.sct.model.stext.stext.InterfaceScope)45 Statechart (org.yakindu.sct.model.sgraph.Statechart)38 Test (org.junit.Test)37 StextTestFactory._createInterfaceScope (org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope)34 Region (org.yakindu.sct.model.sgraph.Region)32 State (org.yakindu.sct.model.sgraph.State)32 SGraphTestFactory._createRegion (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion)32 SGraphTestFactory._createState (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState)32 SGraphTestFactory._createStatechart (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart)32 ExecutionFlow (org.yakindu.sct.model.sexec.ExecutionFlow)31 VariableDefinition (org.yakindu.sct.model.stext.stext.VariableDefinition)31 StextTestFactory._createVariableDefinition (org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition)31 ExecutionState (org.yakindu.sct.model.sexec.ExecutionState)28 Sequence (org.yakindu.sct.model.sexec.Sequence)26 SCTTestUtil.findState (org.yakindu.sct.model.sexec.transformation.test.SCTTestUtil.findState)20 Reaction (org.yakindu.sct.model.sexec.Reaction)17 Entry (org.yakindu.sct.model.sgraph.Entry)17 SGraphTestFactory._createEntry (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createEntry)17 EnterState (org.yakindu.sct.model.sexec.EnterState)13 Step (org.yakindu.sct.model.sexec.Step)10