blob: 95683b6bbce6fd5c56d76e52bfe740659a5a532d [file] [log] [blame]
/*
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - initial API and implementation
*
* $Id: InterruptibleActivityRegion.java,v 1.1 2005/11/14 22:25:57 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Interruptible Activity Region</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An interruptible region contains activity nodes. When a token leaves an interruptible region via edges designated by the region as interrupting edges, all tokens and behaviors in the region are terminated.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.InterruptibleActivityRegion#getNodes <em>Node</em>}</li>
* <li>{@link org.eclipse.uml2.uml.InterruptibleActivityRegion#getInterruptingEdges <em>Interrupting Edge</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getInterruptibleActivityRegion()
* @model
* @generated
*/
public interface InterruptibleActivityRegion
extends ActivityGroup {
/**
* Returns the value of the '<em><b>Node</b></em>' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.ActivityNode}.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ActivityNode#getInInterruptibleRegions <em>In Interruptible Region</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Nodes immediately contained in the group.
* <!-- end-model-doc -->
* @return the value of the '<em>Node</em>' reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getInterruptibleActivityRegion_Node()
* @see org.eclipse.uml2.uml.ActivityNode#getInInterruptibleRegions
* @model type="org.eclipse.uml2.uml.ActivityNode" opposite="inInterruptibleRegion" ordered="false"
* @generated
*/
List getNodes();
/**
* Retrieves the {@link org.eclipse.uml2.uml.ActivityNode} with the specified '<em><b>Name</b></em>' from the '<em><b>Node</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityNode} to retrieve.
* @return The {@link org.eclipse.uml2.uml.ActivityNode} with the specified '<em><b>Name</b></em>', or <code>null</code>.
* @see #getNodes()
* @generated
*/
ActivityNode getNode(String name);
/**
* Returns the value of the '<em><b>Interrupting Edge</b></em>' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.ActivityEdge}.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ActivityEdge#getInterrupts <em>Interrupts</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The edges leaving the region that will abort other tokens flowing in the region.
* <!-- end-model-doc -->
* @return the value of the '<em>Interrupting Edge</em>' reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getInterruptibleActivityRegion_InterruptingEdge()
* @see org.eclipse.uml2.uml.ActivityEdge#getInterrupts
* @model type="org.eclipse.uml2.uml.ActivityEdge" opposite="interrupts" ordered="false"
* @generated
*/
List getInterruptingEdges();
/**
* Retrieves the {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>' from the '<em><b>Interrupting Edge</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve.
* @return The {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>', or <code>null</code>.
* @see #getInterruptingEdges()
* @generated
*/
ActivityEdge getInterruptingEdge(String name);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Interrupting edges of a region must have their source node in the region and their target node outside the region in the same activity containing the region.
*
*
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateInterruptingEdges(DiagnosticChain diagnostics, Map context);
} // InterruptibleActivityRegion