| /* |
| * Copyright (c) 2005, 2011 IBM Corporation, CEA, 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 |
| * Kenn Hussey (CEA) - 327039 |
| * |
| * $Id: JoinNode.java,v 1.11 2007/10/23 15:54:22 jbruck Exp $ |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Join Node</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A join node is a control node that synchronizes multiple flows. |
| * Join nodes have a Boolean value specification using the names of the incoming edges to specify the conditions under which the join will emit a token. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.JoinNode#isCombineDuplicate <em>Is Combine Duplicate</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.JoinNode#getJoinSpec <em>Join Spec</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getJoinNode() |
| * @model |
| * @generated |
| */ |
| public interface JoinNode |
| extends ControlNode { |
| |
| /** |
| * Returns the value of the '<em><b>Is Combine Duplicate</b></em>' attribute. |
| * The default value is <code>"true"</code>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Tells whether tokens having objects with the same identity are combined into one by the join. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Is Combine Duplicate</em>' attribute. |
| * @see #setIsCombineDuplicate(boolean) |
| * @see org.eclipse.uml2.uml.UMLPackage#getJoinNode_IsCombineDuplicate() |
| * @model default="true" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" |
| * @generated |
| */ |
| boolean isCombineDuplicate(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.JoinNode#isCombineDuplicate <em>Is Combine Duplicate</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Is Combine Duplicate</em>' attribute. |
| * @see #isCombineDuplicate() |
| * @generated |
| */ |
| void setIsCombineDuplicate(boolean value); |
| |
| /** |
| * Returns the value of the '<em><b>Join Spec</b></em>' containment reference. |
| * <p> |
| * This feature subsets the following features: |
| * <ul> |
| * <li>'{@link org.eclipse.uml2.uml.Element#getOwnedElements() <em>Owned Element</em>}'</li> |
| * </ul> |
| * </p> |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A specification giving the conditions under which the join with emit a token. Default is "and". |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Join Spec</em>' containment reference. |
| * @see #setJoinSpec(ValueSpecification) |
| * @see org.eclipse.uml2.uml.UMLPackage#getJoinNode_JoinSpec() |
| * @model containment="true" resolveProxies="true" required="true" ordered="false" |
| * @generated |
| */ |
| ValueSpecification getJoinSpec(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.JoinNode#getJoinSpec <em>Join Spec</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Join Spec</em>' containment reference. |
| * @see #getJoinSpec() |
| * @generated |
| */ |
| void setJoinSpec(ValueSpecification value); |
| |
| /** |
| * Creates a new {@link org.eclipse.uml2.uml.ValueSpecification}, with the specified '<em><b>Name</b></em>', and '<em><b>Type</b></em>', and sets the '<em><b>Join Spec</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or <code>null</code>. |
| * @param type The '<em><b>Type</b></em>' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or <code>null</code>. |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ValueSpecification} to create. |
| * @return The new {@link org.eclipse.uml2.uml.ValueSpecification}. |
| * @see #getJoinSpec() |
| * @generated |
| */ |
| ValueSpecification createJoinSpec(String name, Type type, EClass eClass); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A join node has one outgoing edge. |
| * self.outgoing->size() = 1 |
| * @param diagnostics The chain of diagnostics to which problems are to be appended. |
| * @param context The cache of context-specific information. |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateOneOutgoingEdge(DiagnosticChain diagnostics, |
| Map<Object, Object> context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * If a join node has an incoming object flow, it must have an outgoing object flow, otherwise, it must have an outgoing control flow. |
| * (self.incoming.select(e | e.isTypeOf(ObjectFlow)->notEmpty() implies |
| * self.outgoing.isTypeOf(ObjectFlow)) and |
| * (self.incoming.select(e | e.isTypeOf(ObjectFlow)->empty() implies |
| * self.outgoing.isTypeOf(ControlFlow)) |
| * @param diagnostics The chain of diagnostics to which problems are to be appended. |
| * @param context The cache of context-specific information. |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateIncomingObjectFlow(DiagnosticChain diagnostics, |
| Map<Object, Object> context); |
| |
| } // JoinNode |