Interface ReduceAction
-
- All Superinterfaces:
Action
,ActivityNode
,BaseElement
,java.lang.Cloneable
,java.lang.Comparable
,Element
,org.eclipse.emf.ecore.EObject
,ExecutableNode
,MDObject
,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:
UMLPackage.getReduceAction()
- Model:
- annotation="MOF package='actions.mdcompleteactions'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputPin
getCollection()
Returns the value of the 'Collection' containment reference.Behavior
getReducer()
Returns the value of the 'Reducer' reference.OutputPin
getResult()
Returns the value of the 'Result' containment reference.boolean
isOrdered()
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
setResult(OutputPin value)
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, getObjectParent, isEditable, removePropertyChangeListener, sGetID
-
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.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
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
-
-
-
-
Method Detail
-
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:
setReducer(Behavior)
,UMLPackage.getReduceAction_Reducer()
,Behavior.get_reduceActionOfReducer()
- 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:
getReducer()
- 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:
setResult(OutputPin)
,UMLPackage.getReduceAction_Result()
,OutputPin.get_reduceActionOfResult()
- 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:
getResult()
- 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:
setCollection(InputPin)
,UMLPackage.getReduceAction_Collection()
,InputPin.get_reduceActionOfCollection()
- 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:
getCollection()
- 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:
isOrdered()
- Generated:
-
-