blob: 7370c6246a6305d1919498dd57a3479a81f8dd63 [file] [log] [blame]
/*
* 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: Duration.java,v 1.9 2008/10/02 20:56:22 jbruck Exp $
*/
package org.eclipse.uml2.uml;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Duration</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Duration defines a value specification that specifies the temporal distance between two time instants.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.Duration#getExpr <em>Expr</em>}</li>
* <li>{@link org.eclipse.uml2.uml.Duration#getObservations <em>Observation</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getDuration()
* @model
* @generated
*/
public interface Duration
extends ValueSpecification {
/**
* Returns the value of the '<em><b>Expr</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 -->
* The value of the Duration.
* <!-- end-model-doc -->
* @return the value of the '<em>Expr</em>' containment reference.
* @see #setExpr(ValueSpecification)
* @see org.eclipse.uml2.uml.UMLPackage#getDuration_Expr()
* @model containment="true" resolveProxies="true" ordered="false"
* @generated
*/
ValueSpecification getExpr();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.Duration#getExpr <em>Expr</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Expr</em>' containment reference.
* @see #getExpr()
* @generated
*/
void setExpr(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>Expr</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 #getExpr()
* @generated
*/
ValueSpecification createExpr(String name, Type type, EClass eClass);
/**
* Returns the value of the '<em><b>Observation</b></em>' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.Observation}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Refers to the time and duration observations that are involved in expr.
* <!-- end-model-doc -->
* @return the value of the '<em>Observation</em>' reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getDuration_Observation()
* @model ordered="false"
* @generated
*/
EList<Observation> getObservations();
/**
* Retrieves the first {@link org.eclipse.uml2.uml.Observation} with the specified '<em><b>Name</b></em>' from the '<em><b>Observation</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.Observation} to retrieve, or <code>null</code>.
* @return The first {@link org.eclipse.uml2.uml.Observation} with the specified '<em><b>Name</b></em>', or <code>null</code>.
* @see #getObservations()
* @generated
*/
Observation getObservation(String name);
/**
* Retrieves the first {@link org.eclipse.uml2.uml.Observation} with the specified '<em><b>Name</b></em>' from the '<em><b>Observation</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.Observation} to retrieve, or <code>null</code>.
* @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons.
* @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.Observation} to retrieve, or <code>null</code>.
* @return The first {@link org.eclipse.uml2.uml.Observation} with the specified '<em><b>Name</b></em>', or <code>null</code>.
* @see #getObservations()
* @generated
*/
Observation getObservation(String name, boolean ignoreCase, EClass eClass);
} // Duration