blob: b40f0fe4d3426c8162b34b25296a8f209a19a302 [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: InteractionOperand.java,v 1.1 2005/11/14 22:26:02 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.List;
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>Interaction Operand</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An InteractionOperand is contained in a CombinedFragment. An InteractionOperand represents one operand of the expression given by the enclosing CombinedFragment.
*
*
*
* An InteractionOperand is an InteractionFragment with an optional guard expression. An InteractionOperand may be
*
* guarded by a InteractionConstraint. Only InteractionOperands with a guard that evaluates to true at this point in the interaction will be considered for the production of the traces for the enclosing CombinedFragment.
*
*
*
* InteractionOperand contains an ordered set of InteractionFragments.
*
*
*
* In Sequence Diagrams these InteractionFragments are ordered according to their geometrical position vertically. The geometrical position of the InteractionFragment is given by the topmost vertical coordinate of its contained OccurrenceSpecifications or symbols.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.InteractionOperand#getGuard <em>Guard</em>}</li>
* <li>{@link org.eclipse.uml2.uml.InteractionOperand#getFragments <em>Fragment</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getInteractionOperand()
* @model
* @generated
*/
public interface InteractionOperand
extends Namespace, InteractionFragment {
/**
* Returns the value of the '<em><b>Guard</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Constraint of the operand.
* <!-- end-model-doc -->
* @return the value of the '<em>Guard</em>' containment reference.
* @see #setGuard(InteractionConstraint)
* @see org.eclipse.uml2.uml.UMLPackage#getInteractionOperand_Guard()
* @model containment="true" resolveProxies="false" ordered="false"
* @generated
*/
InteractionConstraint getGuard();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.InteractionOperand#getGuard <em>Guard</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Guard</em>' containment reference.
* @see #getGuard()
* @generated
*/
void setGuard(InteractionConstraint value);
/**
* Creates a {@link org.eclipse.uml2.uml.InteractionConstraint} and sets the '<em><b>Guard</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return The new {@link org.eclipse.uml2.uml.InteractionConstraint}.
* @see #getGuard()
* @generated
*/
InteractionConstraint createGuard();
/**
* Returns the value of the '<em><b>Fragment</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.InteractionFragment}.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.InteractionFragment#getEnclosingOperand <em>Enclosing Operand</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The fragments of the operand.
* <!-- end-model-doc -->
* @return the value of the '<em>Fragment</em>' containment reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getInteractionOperand_Fragment()
* @see org.eclipse.uml2.uml.InteractionFragment#getEnclosingOperand
* @model type="org.eclipse.uml2.uml.InteractionFragment" opposite="enclosingOperand" containment="true" resolveProxies="false"
* @generated
*/
List getFragments();
/**
* Creates a {@link org.eclipse.uml2.uml.InteractionFragment} and appends it to the '<em><b>Fragment</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.InteractionFragment} to create.
* @return The new {@link org.eclipse.uml2.uml.InteractionFragment}.
* @see #getFragments()
* @generated
*/
InteractionFragment createFragment(EClass eClass);
/**
* Retrieves the {@link org.eclipse.uml2.uml.InteractionFragment} with the specified '<em><b>Name</b></em>' from the '<em><b>Fragment</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.InteractionFragment} to retrieve.
* @return The {@link org.eclipse.uml2.uml.InteractionFragment} with the specified '<em><b>Name</b></em>', or <code>null</code>.
* @see #getFragments()
* @generated
*/
InteractionFragment getFragment(String name);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The guard must be placed directly prior to (above) the OccurrenceSpecification that will become the first OccurrenceSpecification within this InteractionOperand.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateGuardDirectlyPrior(DiagnosticChain diagnostics, Map context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The guard must contain only references to values local to the Lifeline on which it resides, or values global to the whole Interaction.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateGuardContainReferences(DiagnosticChain diagnostics,
Map context);
} // InteractionOperand