Interface ReduceAction
- 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
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 Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Collection' containment reference.Returns the value of the 'Reducer' reference.Returns the value of the 'Result' containment reference.boolean
Returns the value of the 'Ordered' attribute.void
setCollection
(InputPin value) Sets the value of the 'Collection
' containment reference.void
setOrdered
(boolean value) Sets the value of the 'Ordered
' attribute.void
setReducer
(Behavior value) Sets the value of the 'Reducer
' reference.void
Sets the value of the 'Result
' containment reference.Methods inherited from interface com.nomagic.uml2.ext.magicdraw.actions.mdbasicactions.Action
get_actionExecutionSpecificationOfAction, get_actionInputPinOfFromAction, get_interactionOfAction, getContext, getInput, getLocalPostcondition, getLocalPrecondition, getOutput, has_actionExecutionSpecificationOfAction, hasInput, hasLocalPostcondition, hasLocalPrecondition, hasOutput, isLocallyReentrant, set_actionInputPinOfFromAction, set_interactionOfAction, setLocallyReentrant
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.activities.mdfundamentalactivities.ActivityNode
get_activityNodeOfRedefinedNode, getActivity, getIncoming, getInGroup, getInInterruptibleRegion, getInPartition, getInStructuredNode, getOutgoing, getRedefinedNode, has_activityNodeOfRedefinedNode, hasIncoming, hasInGroup, hasInInterruptibleRegion, hasInPartition, hasOutgoing, hasRedefinedNode, setActivity, setInStructuredNode
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetID
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.activities.mdstructuredactivities.ExecutableNode
get_clauseOfBody, get_clauseOfTest, get_exceptionHandlerOfHandlerBody, get_loopNodeOfBodyPart, get_loopNodeOfSetupPart, get_loopNodeOfTest, get_sequenceNodeOfExecutableNode, getHandler, has_exceptionHandlerOfHandlerBody, hasHandler, set_clauseOfBody, set_clauseOfTest, set_loopNodeOfBodyPart, set_loopNodeOfSetupPart, set_loopNodeOfTest, set_sequenceNodeOfExecutableNode
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
Methods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalID
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.NamedElement
get_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, getVisibility, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespace, setVisibility
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.RedefinableElement
get_redefinableElementOfRedefinedElement, getRedefinedElement, getRedefinitionContext, has_redefinableElementOfRedefinedElement, hasRedefinedElement, hasRedefinitionContext, isLeaf, setLeaf
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Method Details
-
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
Sets the value of the 'Reducer
' reference.- Parameters:
value
- the new value of the 'Reducer' reference.- See Also:
- Generated:
-
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
Sets the value of the 'Result
' containment reference.- Parameters:
value
- the new value of the 'Result' containment reference.- See Also:
- Generated:
-
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
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:
-