Interface LoopNode

    • Method Detail

      • isTestedFirst

        boolean isTestedFirst()
        Returns the value of the 'Is Tested First' attribute. The default value is "false". If true, the test is performed before the first execution of the body. If false, the body is executed once before the test is performed.
        Returns:
        the value of the 'Is Tested First' attribute.
        See Also:
        setIsTestedFirst(boolean), UMLPackage.getLoopNode_IsTestedFirst()
      • setIsTestedFirst

        void setIsTestedFirst​(boolean value)
        Sets the value of the 'Is Tested First' attribute.
        Parameters:
        value - the new value of the 'Is Tested First' attribute.
        See Also:
        isTestedFirst()
      • getBodyParts

        MDWEList<ExecutableNode> getBodyParts()
        Returns the value of the 'Body Part' reference list. The list contents are of type ExecutableNode. The set of nodes and edges that perform the repetitive computations of the loop. The body section is executed as long as the test section produces a true value.
        Returns:
        the value of the 'Body Part' reference list.
        See Also:
        UMLPackage.getLoopNode_BodyPart()
      • getBodyPart

        ExecutableNode getBodyPart​(String name,
                                   boolean ignoreCase,
                                   org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first ExecutableNode with the specified 'Name' from the ' Body Part' reference list.
        Parameters:
        name - The 'Name' of the ExecutableNode to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the ExecutableNode to retrieve, or null.
        Returns:
        The first ExecutableNode with the specified 'Name', or null.
        See Also:
        getBodyParts()
      • getSetupParts

        MDWEList<ExecutableNode> getSetupParts()
        Returns the value of the 'Setup Part' reference list. The list contents are of type ExecutableNode. The set of nodes and edges that initialize values or perform other setup computations for the loop.
        Returns:
        the value of the 'Setup Part' reference list.
        See Also:
        UMLPackage.getLoopNode_SetupPart()
      • getSetupPart

        ExecutableNode getSetupPart​(String name,
                                    boolean ignoreCase,
                                    org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first ExecutableNode with the specified 'Name' from the ' Setup Part' reference list.
        Parameters:
        name - The 'Name' of the ExecutableNode to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the ExecutableNode to retrieve, or null.
        Returns:
        The first ExecutableNode with the specified 'Name', or null.
        See Also:
        getSetupParts()
      • getDecider

        OutputPin getDecider()
        Returns the value of the 'Decider' reference. An output pin within the test fragment the value of which is examined after execution of the test to determine whether to execute the loop body.
        Returns:
        the value of the 'Decider' reference.
        See Also:
        setDecider(OutputPin), UMLPackage.getLoopNode_Decider()
      • setDecider

        void setDecider​(OutputPin value)
        Sets the value of the 'Decider' reference.
        Parameters:
        value - the new value of the 'Decider' reference.
        See Also:
        getDecider()
      • getTests

        MDWEList<ExecutableNode> getTests()
        Returns the value of the 'Test' reference list. The list contents are of type ExecutableNode. The set of nodes, edges, and designated value that compute a Boolean value to determine if another execution of the body will be performed.
        Returns:
        the value of the 'Test' reference list.
        See Also:
        UMLPackage.getLoopNode_Test()
      • getTest

        ExecutableNode getTest​(String name,
                               boolean ignoreCase,
                               org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first ExecutableNode with the specified 'Name' from the ' Test' reference list.
        Parameters:
        name - The 'Name' of the ExecutableNode to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the ExecutableNode to retrieve, or null.
        Returns:
        The first ExecutableNode with the specified 'Name', or null.
        See Also:
        getTests()
      • getResults

        MDWEList<OutputPin> getResults()
        Returns the value of the 'Result' containment reference list. The list contents are of type OutputPin. A list of output pins that constitute the data flow output of the entire loop.
        Returns:
        the value of the 'Result' containment reference list.
        See Also:
        UMLPackage.getLoopNode_Result()
      • createResult

        OutputPin createResult​(String name,
                               Type type)
        Creates a new OutputPin, with the specified 'Name', and 'Type', and appends it to the 'Result' containment reference list.
        Parameters:
        name - The 'Name' for the new OutputPin, or null.
        type - The 'Type' for the new OutputPin, or null.
        Returns:
        The new OutputPin.
        See Also:
        getResults()
      • getResult

        OutputPin getResult​(String name,
                            Type type)
        Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Result' containment reference list.
        Parameters:
        name - The 'Name' of the OutputPin to retrieve, or null.
        type - The 'Type' of the OutputPin to retrieve, or null.
        Returns:
        The first OutputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getResults()
      • getResult

        OutputPin getResult​(String name,
                            Type type,
                            boolean ignoreCase,
                            boolean createOnDemand)
        Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Result' containment reference list.
        Parameters:
        name - The 'Name' of the OutputPin to retrieve, or null.
        type - The 'Type' of the OutputPin to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a OutputPin on demand if not found.
        Returns:
        The first OutputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getResults()
      • getLoopVariables

        MDWEList<OutputPin> getLoopVariables()
        Returns the value of the 'Loop Variable' reference list. The list contents are of type OutputPin. A list of output pins that hold the values of the loop variables during an execution of the loop. When the test fails, the values are movied to the result pins of the loop.
        Returns:
        the value of the 'Loop Variable' reference list.
        See Also:
        UMLPackage.getLoopNode_LoopVariable()
      • getLoopVariable

        OutputPin getLoopVariable​(String name,
                                  Type type)
        Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Loop Variable' reference list.
        Parameters:
        name - The 'Name' of the OutputPin to retrieve, or null.
        type - The 'Type' of the OutputPin to retrieve, or null.
        Returns:
        The first OutputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getLoopVariables()
      • getLoopVariable

        OutputPin getLoopVariable​(String name,
                                  Type type,
                                  boolean ignoreCase)
        Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Loop Variable' reference list.
        Parameters:
        name - The 'Name' of the OutputPin to retrieve, or null.
        type - The 'Type' of the OutputPin to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        Returns:
        The first OutputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getLoopVariables()
      • getBodyOutputs

        MDWEList<OutputPin> getBodyOutputs()
        Returns the value of the 'Body Output' reference list. The list contents are of type OutputPin. A list of output pins within the body fragment the values of which are moved to the loop variable pins after completion of execution of the body, before the next iteration of the loop begins or before the loop exits.
        Returns:
        the value of the 'Body Output' reference list.
        See Also:
        UMLPackage.getLoopNode_BodyOutput()
      • getBodyOutput

        OutputPin getBodyOutput​(String name,
                                Type type)
        Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Body Output' reference list.
        Parameters:
        name - The 'Name' of the OutputPin to retrieve, or null.
        type - The 'Type' of the OutputPin to retrieve, or null.
        Returns:
        The first OutputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getBodyOutputs()
      • getBodyOutput

        OutputPin getBodyOutput​(String name,
                                Type type,
                                boolean ignoreCase)
        Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Body Output' reference list.
        Parameters:
        name - The 'Name' of the OutputPin to retrieve, or null.
        type - The 'Type' of the OutputPin to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        Returns:
        The first OutputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getBodyOutputs()
      • getLoopVariableInputs

        MDWEList<InputPin> getLoopVariableInputs()
        Returns the value of the 'Loop Variable Input' containment reference list. The list contents are of type InputPin. A list of values that are moved into the loop variable pins before the first iteration of the loop.
        Returns:
        the value of the 'Loop Variable Input' containment reference list.
        See Also:
        UMLPackage.getLoopNode_LoopVariableInput()
      • createLoopVariableInput

        InputPin createLoopVariableInput​(String name,
                                         Type type,
                                         org.eclipse.emf.ecore.EClass eClass)
        Creates a new InputPin, with the specified 'Name', and 'Type', and appends it to the 'Loop Variable Input' containment reference list.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        eClass - The Ecore class of the InputPin to create.
        Returns:
        The new InputPin.
        See Also:
        getLoopVariableInputs()
      • createLoopVariableInput

        InputPin createLoopVariableInput​(String name,
                                         Type type)
        Creates a new InputPin, with the specified 'Name', and 'Type', and appends it to the 'Loop Variable Input' containment reference list.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        Returns:
        The new InputPin.
        See Also:
        getLoopVariableInputs()
      • getLoopVariableInput

        InputPin getLoopVariableInput​(String name,
                                      Type type)
        Retrieves the first InputPin with the specified 'Name', and 'Type' from the 'Loop Variable Input' containment reference list.
        Parameters:
        name - The 'Name' of the InputPin to retrieve, or null.
        type - The 'Type' of the InputPin to retrieve, or null.
        Returns:
        The first InputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getLoopVariableInputs()
      • getLoopVariableInput

        InputPin getLoopVariableInput​(String name,
                                      Type type,
                                      boolean ignoreCase,
                                      org.eclipse.emf.ecore.EClass eClass,
                                      boolean createOnDemand)
        Retrieves the first InputPin with the specified 'Name', and 'Type' from the 'Loop Variable Input' containment reference list.
        Parameters:
        name - The 'Name' of the InputPin to retrieve, or null.
        type - The 'Type' of the InputPin to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the InputPin to retrieve, or null.
        createOnDemand - Whether to create a InputPin on demand if not found.
        Returns:
        The first InputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getLoopVariableInputs()
      • validateInputEdges

        boolean validateInputEdges​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   Map context)
        Loop variable inputs must not have outgoing edges. true
      • validateBodyOutputPins

        boolean validateBodyOutputPins​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       Map context)
        The bodyOutput pins are output pins on actions in the body of the loop node. true
      • validateResultNoIncoming

        boolean validateResultNoIncoming​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         Map context)
        The result output pins have no incoming edges. true