blob: 321c3dd21710db552e89d40676717b46bd494ef1 [file] [log] [blame]
/*
* Copyright (c) 2005, 2014 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, 418466
* Christian W. Damus (CEA) - 251963
*
*/
package org.eclipse.uml2.uml;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Time Observation</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A TimeObservation is a reference to a time instant during an execution. It points out the NamedElement in the model to observe and whether the observation is when this NamedElement is entered or when it is exited.
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.TimeObservation#getEvent <em>Event</em>}</li>
* <li>{@link org.eclipse.uml2.uml.TimeObservation#isFirstEvent <em>First Event</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getTimeObservation()
* @model
* @generated
*/
public interface TimeObservation
extends Observation {
/**
* Returns the value of the '<em><b>Event</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The TimeObservation is determined by the entering or exiting of the event Element during execution.
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @return the value of the '<em>Event</em>' reference.
* @see #setEvent(NamedElement)
* @see org.eclipse.uml2.uml.UMLPackage#getTimeObservation_Event()
* @model required="true" ordered="false"
* @generated
*/
NamedElement getEvent();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.TimeObservation#getEvent <em>Event</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Event</em>' reference.
* @see #getEvent()
* @generated
*/
void setEvent(NamedElement value);
/**
* Returns the value of the '<em><b>First Event</b></em>' attribute.
* The default value is <code>"true"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The value of firstEvent is related to the event. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters the event Element. If firstEvent is false, then the corresponding observation event is the time instant the execution exits the event Element.
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @return the value of the '<em>First Event</em>' attribute.
* @see #setFirstEvent(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getTimeObservation_FirstEvent()
* @model default="true" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
* @generated
*/
boolean isFirstEvent();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.TimeObservation#isFirstEvent <em>First Event</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>First Event</em>' attribute.
* @see #isFirstEvent()
* @generated
*/
void setFirstEvent(boolean value);
} // TimeObservation