blob: e62de9ca8655c34ad6802a707358e76eb914ab3b [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: ExecutionSpecification.java,v 1.1 2005/11/14 22:25:58 khussey Exp $
*/
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>Execution Specification</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An ExecutionSpecification is a specification of the execution of a unit of behavior or action within the Lifeline. The duration of an ExecutionSpecification is represented by two ExecutionOccurrenceSpecifications, the start ExecutionOccurrenceSpecification and the finish ExecutionOccurrenceSpecification.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.ExecutionSpecification#getStart <em>Start</em>}</li>
* <li>{@link org.eclipse.uml2.uml.ExecutionSpecification#getFinish <em>Finish</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getExecutionSpecification()
* @model abstract="true"
* @generated
*/
public interface ExecutionSpecification
extends InteractionFragment {
/**
* Returns the value of the '<em><b>Start</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* References the OccurrenceSpecification that designates the start of the Action or Behavior
* <!-- end-model-doc -->
* @return the value of the '<em>Start</em>' reference.
* @see #setStart(ExecutionOccurrenceSpecification)
* @see org.eclipse.uml2.uml.UMLPackage#getExecutionSpecification_Start()
* @model required="true" ordered="false"
* @generated
*/
ExecutionOccurrenceSpecification getStart();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.ExecutionSpecification#getStart <em>Start</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Start</em>' reference.
* @see #getStart()
* @generated
*/
void setStart(ExecutionOccurrenceSpecification value);
/**
* Returns the value of the '<em><b>Finish</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* References the OccurrenceSpecification that designates the finish of the Action or Behavior.
* <!-- end-model-doc -->
* @return the value of the '<em>Finish</em>' reference.
* @see #setFinish(ExecutionOccurrenceSpecification)
* @see org.eclipse.uml2.uml.UMLPackage#getExecutionSpecification_Finish()
* @model required="true" ordered="false"
* @generated
*/
ExecutionOccurrenceSpecification getFinish();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.ExecutionSpecification#getFinish <em>Finish</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Finish</em>' reference.
* @see #getFinish()
* @generated
*/
void setFinish(ExecutionOccurrenceSpecification value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The startEvent and the finishEvent must be on the same Lifeline
* start.lifeline = finish.lifeline
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateSameLifeline(DiagnosticChain diagnostics, Map context);
} // ExecutionSpecification