All Superinterfaces:
Action, ActivityNode, BaseElement, Cloneable, Comparable, Element, org.eclipse.emf.ecore.EObject, ExecutableNode, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, org.eclipse.emf.common.notify.Notifier, RedefinableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject

public interface ReduceAction extends Action
A representation of the model object 'Reduce Action'.

A ReduceAction is an Action that reduces a collection to a single value by repeatedly combining the elements of the collection using a reducer Behavior.

The following features are supported:

See Also:
Model:
annotation="MOF package='actions.mdcompleteactions'"
Generated:
  • Method Details

    • getReducer

      @CheckForNull Behavior getReducer()
      Returns the value of the 'Reducer' reference. It is bidirectional and its opposite is 'reduce Action Of Reducer'. A Behavior that is repreatedly applied to two elements of the input collection to produce a value that is of the same type as elements of the collection.
      Returns:
      the value of the 'Reducer' reference.
      See Also:
      Model:
      opposite="_reduceActionOfReducer" required="true" ordered="false"
      Generated:
    • setReducer

      void setReducer(@CheckForNull Behavior value)
      Sets the value of the 'Reducer' reference.
      Parameters:
      value - the new value of the 'Reducer' reference.
      See Also:
      Generated:
    • getResult

      @CheckForNull OutputPin getResult()
      Returns the value of the 'Result' containment reference. It is bidirectional and its opposite is 'reduce Action Of Result'. The output pin on which the result value is placed.
      Returns:
      the value of the 'Result' containment reference.
      See Also:
      Model:
      opposite="_reduceActionOfResult" containment="true" resolveProxies="true" required="true" ordered="false"
      Generated:
    • setResult

      void setResult(@CheckForNull OutputPin value)
      Sets the value of the 'Result' containment reference.
      Parameters:
      value - the new value of the 'Result' containment reference.
      See Also:
      Generated:
    • getCollection

      @CheckForNull InputPin getCollection()
      Returns the value of the 'Collection' containment reference. It is bidirectional and its opposite is 'reduce Action Of Collection'. The InputPin that provides the collection to be reduced.
      Returns:
      the value of the 'Collection' containment reference.
      See Also:
      Model:
      opposite="_reduceActionOfCollection" containment="true" resolveProxies="true" required="true" ordered="false"
      Generated:
    • setCollection

      void setCollection(@CheckForNull InputPin value)
      Sets the value of the 'Collection' containment reference.
      Parameters:
      value - the new value of the 'Collection' containment reference.
      See Also:
      Generated:
    • isOrdered

      boolean isOrdered()
      Returns the value of the 'Ordered' attribute. The default value is "false". Indicates whether the order of the input collection should determine the order in which the reducer Behavior is applied to its elements.
      Returns:
      the value of the 'Ordered' attribute.
      See Also:
      • setOrdered(boolean)
      • com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getReduceAction_Ordered()
      Model:
      default="false" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
      Generated:
    • setOrdered

      void setOrdered(boolean value)
      Sets the value of the 'Ordered' attribute.
      Parameters:
      value - the new value of the 'Ordered' attribute.
      See Also:
      Generated: