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

public interface LoopNode extends StructuredActivityNode
A representation of the model object 'Loop Node'.

A LoopNode is a StructuredActivityNode that represents an iterative loop with setup, test, and body sections.

The following features are supported:

See Also:
Model:
annotation="MOF package='activities.mdstructuredactivities'"
Generated:
  • Method Details

    • getBodyPart

      Collection<ExecutableNode> getBodyPart()
      Returns the value of the 'Body Part' reference list. The list contents are of type ExecutableNode. It is bidirectional and its opposite is 'loop Node Of Body Part'. The set of ExecutableNodes that perform the repetitive computations of the loop. The bodyPart is executed as long as the test section produces a true value.
      Returns:
      the value of the 'Body Part' reference list.
      See Also:
      Model:
      opposite="_loopNodeOfBodyPart" ordered="false"
      Generated:
    • getDecider

      @CheckForNull OutputPin getDecider()
      Returns the value of the 'Decider' reference. It is bidirectional and its opposite is 'loop Node Of Decider'. An OutputPin on an Action in the test section whose Boolean value determines whether to continue executing the loop bodyPart.
      Returns:
      the value of the 'Decider' reference.
      See Also:
      Model:
      opposite="_loopNodeOfDecider" required="true" ordered="false"
      Generated:
    • setDecider

      void setDecider(@CheckForNull OutputPin value)
      Sets the value of the 'Decider' reference.
      Parameters:
      value - the new value of the 'Decider' reference.
      See Also:
      Generated:
    • isTestedFirst

      boolean isTestedFirst()
      Returns the value of the 'Tested First' attribute. The default value is "false". If true, the test is performed before the first execution of the bodyPart. If false, the bodyPart is executed once before the test is performed.
      Returns:
      the value of the 'Tested First' attribute.
      See Also:
      Model:
      default="false" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
      Generated:
    • setTestedFirst

      void setTestedFirst(boolean value)
      Sets the value of the 'Tested First' attribute.
      Parameters:
      value - the new value of the 'Tested First' attribute.
      See Also:
      Generated:
    • getResult

      List<OutputPin> getResult()
      Returns the value of the 'Result' containment reference list. The list contents are of type OutputPin. It is bidirectional and its opposite is 'loop Node Of Result'. A list of OutputPins that receive the loopVariable values after the last iteration of the loop and constitute the output of the LoopNode.
      Returns:
      the value of the 'Result' containment reference list.
      See Also:
      Model:
      opposite="_loopNodeOfResult" containment="true" resolveProxies="true"
      Generated:
    • getLoopVariable

      List<OutputPin> getLoopVariable()
      Returns the value of the 'Loop Variable' containment reference list. The list contents are of type OutputPin. It is bidirectional and its opposite is 'loop Node Of Loop Variable'. A list of OutputPins that hold the values of the loop variables during an execution of the loop. When the test fails, the values are moved to the result OutputPins of the loop.
      Returns:
      the value of the 'Loop Variable' containment reference list.
      See Also:
      Model:
      opposite="_loopNodeOfLoopVariable" containment="true" resolveProxies="true"
      Generated:
    • getBodyOutput

      List<OutputPin> getBodyOutput()
      Returns the value of the 'Body Output' reference list. The list contents are of type OutputPin. It is bidirectional and its opposite is 'loop Node Of Body Output'. The OutputPins on Actions within the bodyPart, the values of which are moved to the loopVariable OutputPins after the completion of each execution of the bodyPart, before the next iteration of the loop begins or before the loop exits.
      Returns:
      the value of the 'Body Output' reference list.
      See Also:
      Model:
      opposite="_loopNodeOfBodyOutput"
      Generated:
    • getTest

      Returns the value of the 'Test' reference list. The list contents are of type ExecutableNode. It is bidirectional and its opposite is 'loop Node Of Test'. The set of ExecutableNodes executed in order to provide the test result for the loop.
      Returns:
      the value of the 'Test' reference list.
      See Also:
      Model:
      opposite="_loopNodeOfTest" required="true" ordered="false"
      Generated:
    • getLoopVariableInput

      List<InputPin> getLoopVariableInput()
      Returns the value of the 'Loop Variable Input' containment reference list. The list contents are of type InputPin. It is bidirectional and its opposite is 'loop Node Of Loop Variable Input'. A list of InputPins whose values are moved into the loopVariable Pins before the first iteration of the loop.
      Returns:
      the value of the 'Loop Variable Input' containment reference list.
      See Also:
      Model:
      opposite="_loopNodeOfLoopVariableInput" containment="true" resolveProxies="true"
      Generated:
    • getSetupPart

      Collection<ExecutableNode> getSetupPart()
      Returns the value of the 'Setup Part' reference list. The list contents are of type ExecutableNode. It is bidirectional and its opposite is 'loop Node Of Setup Part'. The set of ExecutableNodes executed before the first iteration of the loop, in order to initialize values or perform other setup computations.
      Returns:
      the value of the 'Setup Part' reference list.
      See Also:
      Model:
      opposite="_loopNodeOfSetupPart" ordered="false"
      Generated:
    • hasBodyPart

      boolean hasBodyPart() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasResult

      boolean hasResult() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasLoopVariable

      boolean hasLoopVariable() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasBodyOutput

      boolean hasBodyOutput() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasTest

      boolean hasTest() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasLoopVariableInput

      boolean hasLoopVariableInput() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasSetupPart

      boolean hasSetupPart() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated: