blob: 0e5e2affdd1ccc89a1c22881ede073d79ea135da [file] [log] [blame]
/*
* Copyright (c) 2005, 2018 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 v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - initial API and implementation
* Christian W. Damus (CEA) - 251963
* Kenn Hussey (CEA) - 418466, 451350
* Kenn Hussey - 535301
*
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Action Execution Specification</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An ActionExecutionSpecification is a kind of ExecutionSpecification representing the execution of an Action.
* <p>From package UML::Interactions.</p>
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.uml2.uml.ActionExecutionSpecification#getAction <em>Action</em>}</li>
* </ul>
*
* @see org.eclipse.uml2.uml.UMLPackage#getActionExecutionSpecification()
* @model
* @generated
*/
public interface ActionExecutionSpecification
extends ExecutionSpecification {
/**
* Returns the value of the '<em><b>Action</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Action whose execution is occurring.
* <p>From package UML::Interactions.</p>
* <!-- end-model-doc -->
* @return the value of the '<em>Action</em>' reference.
* @see #setAction(Action)
* @see org.eclipse.uml2.uml.UMLPackage#getActionExecutionSpecification_Action()
* @model required="true" ordered="false"
* @generated
*/
Action getAction();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.ActionExecutionSpecification#getAction <em>Action</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Action</em>' reference.
* @see #getAction()
* @generated
*/
void setAction(Action value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The Action referenced by the ActionExecutionSpecification must be owned by the Interaction owning that ActionExecutionSpecification.
* (enclosingInteraction->notEmpty() or enclosingOperand.combinedFragment->notEmpty()) and
* let parentInteraction : Set(Interaction) = enclosingInteraction.oclAsType(Interaction)->asSet()->union(
* enclosingOperand.combinedFragment->closure(enclosingOperand.combinedFragment)->
* collect(enclosingInteraction).oclAsType(Interaction)->asSet()) in
* (parentInteraction->size() = 1) and self.action.interaction->asSet() = parentInteraction
* @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 validateActionReferenced(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // ActionExecutionSpecification