Interface Activity

    • Method Detail

      • isReadOnly

        boolean isReadOnly()
        Returns the value of the 'Is Read Only' attribute. The default value is "false". If true, this activity must not make any changes to variables outside the activity or to objects. (This is an assertion, not an executable property. It may be used by an execution engine to optimize model execution. If the assertion is violated by the action, then the model is ill-formed.) The default is false (an activity may make nonlocal changes).
        Returns:
        the value of the 'Is Read Only' attribute.
        See Also:
        setIsReadOnly(boolean), UMLPackage.getActivity_IsReadOnly()
      • setIsReadOnly

        void setIsReadOnly​(boolean value)
        Sets the value of the 'Is Read Only' attribute.
        Parameters:
        value - the new value of the 'Is Read Only' attribute.
        See Also:
        isReadOnly()
      • isSingleExecution

        boolean isSingleExecution()
        Returns the value of the 'Is Single Execution' attribute. The default value is "false". If true, all invocations of the activity are handled by the same execution.
        Returns:
        the value of the 'Is Single Execution' attribute.
        See Also:
        setIsSingleExecution(boolean), UMLPackage.getActivity_IsSingleExecution()
      • setIsSingleExecution

        void setIsSingleExecution​(boolean value)
        Sets the value of the 'Is Single Execution' attribute.
        Parameters:
        value - the new value of the 'Is Single Execution' attribute.
        See Also:
        isSingleExecution()
      • createVariable

        Variable createVariable​(String name,
                                Type type)
        Creates a new Variable, with the specified 'Name', and 'Type', and appends it to the 'Variable' containment reference list.
        Parameters:
        name - The 'Name' for the new Variable, or null.
        type - The 'Type' for the new Variable, or null.
        Returns:
        The new Variable.
        See Also:
        getVariables()
      • getVariable

        Variable getVariable​(String name,
                             Type type)
        Retrieves the first Variable with the specified 'Name', and 'Type' from the 'Variable' containment reference list.
        Parameters:
        name - The 'Name' of the Variable to retrieve, or null.
        type - The 'Type' of the Variable to retrieve, or null.
        Returns:
        The first Variable with the specified 'Name', and 'Type', or null.
        See Also:
        getVariables()
      • getVariable

        Variable getVariable​(String name,
                             Type type,
                             boolean ignoreCase,
                             boolean createOnDemand)
        Retrieves the first Variable with the specified 'Name', and 'Type' from the 'Variable' containment reference list.
        Parameters:
        name - The 'Name' of the Variable to retrieve, or null.
        type - The 'Type' of the Variable to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a Variable on demand if not found.
        Returns:
        The first Variable with the specified 'Name', and 'Type', or null.
        See Also:
        getVariables()
      • getNode

        ActivityNode getNode​(String name,
                             boolean ignoreCase,
                             org.eclipse.emf.ecore.EClass eClass,
                             boolean createOnDemand)
        Retrieves the first ActivityNode with the specified 'Name' from the ' Node' containment reference list.
        Parameters:
        name - The 'Name' of the ActivityNode to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the ActivityNode to retrieve, or null.
        createOnDemand - Whether to create a ActivityNode on demand if not found.
        Returns:
        The first ActivityNode with the specified 'Name', or null.
        See Also:
        getNodes()
      • getEdge

        ActivityEdge getEdge​(String name,
                             boolean ignoreCase,
                             org.eclipse.emf.ecore.EClass eClass,
                             boolean createOnDemand)
        Retrieves the first ActivityEdge with the specified 'Name' from the ' Edge' containment reference list.
        Parameters:
        name - The 'Name' of the ActivityEdge to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the ActivityEdge to retrieve, or null.
        createOnDemand - Whether to create a ActivityEdge on demand if not found.
        Returns:
        The first ActivityEdge with the specified 'Name', or null.
        See Also:
        getEdges()
      • validateNoSupergroups

        boolean validateNoSupergroups​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      Map context)
        The groups of an activity have no supergroups. true
      • validateActivityParameterNode

        boolean validateActivityParameterNode​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              Map context)
        The nodes of the activity must include one ActivityParameterNode for each parameter. true
      • validateAutonomous

        boolean validateAutonomous​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   Map context)
        An activity cannot be autonomous and have a classifier or behavioral feature context at the same time. true