Interface ReduceAction

    • Method Detail

      • getReducer

        Behavior getReducer()
        Returns the value of the 'Reducer' reference. Behavior that is applied to two elements of the input collection to produce a value that is the same type as elements of the collection.
        Returns:
        the value of the 'Reducer' reference.
        See Also:
        setReducer(Behavior), UMLPackage.getReduceAction_Reducer()
      • setReducer

        void setReducer​(Behavior value)
        Sets the value of the 'Reducer' reference.
        Parameters:
        value - the new value of the 'Reducer' reference.
        See Also:
        getReducer()
      • setResult

        void setResult​(OutputPin value)
        Sets the value of the 'Result' containment reference.
        Parameters:
        value - the new value of the 'Result' containment reference.
        See Also:
        getResult()
      • createResult

        OutputPin createResult​(String name,
                               Type type)
        Creates a new OutputPin,with the specified 'Name', and 'Type', and sets the 'Result' containment reference.
        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:
        getResult()
      • setCollection

        void setCollection​(InputPin value)
        Sets the value of the 'Collection' containment reference.
        Parameters:
        value - the new value of the 'Collection' containment reference.
        See Also:
        getCollection()
      • createCollection

        InputPin createCollection​(String name,
                                  Type type,
                                  org.eclipse.emf.ecore.EClass eClass)
        Creates a new InputPin, with the specified 'Name', and 'Type', and sets the 'Collection' containment reference.
        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:
        getCollection()
      • createCollection

        InputPin createCollection​(String name,
                                  Type type)
        Creates a new InputPin,with the specified 'Name', and 'Type', and sets the 'Collection' containment reference.
        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:
        getCollection()
      • isOrdered

        boolean isOrdered()
        Returns the value of the 'Is Ordered' attribute. The default value is "false". Tells whether the order of the input collection should determine the order in which the behavior is applied to its elements.
        Returns:
        the value of the 'Is Ordered' attribute.
        See Also:
        setIsOrdered(boolean), UMLPackage.getReduceAction_IsOrdered()
      • setIsOrdered

        void setIsOrdered​(boolean value)
        Sets the value of the 'Is Ordered' attribute.
        Parameters:
        value - the new value of the 'Is Ordered' attribute.
        See Also:
        isOrdered()
      • validateInputTypeIsCollection

        boolean validateInputTypeIsCollection​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              Map context)
        The type of the input must be a collection. true
      • validateOutputTypesAreCompatible

        boolean validateOutputTypesAreCompatible​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                 Map context)
        The type of the output must be compatible with the type of the output of the reducer behavior. true
      • validateReducerInputsOutput

        boolean validateReducerInputsOutput​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                            Map context)
        The reducer behavior must have two input parameters and one output parameter, of types compatible with the types of elements of the input collection. true