blob: c602a76ff995879ba1a21b8ade088cbe9f2180d3 [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: TimeObservation.java,v 1.2 2006/02/02 23:30:18 khussey Exp $
*/
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 time observation is a reference to a time instant during an execution. It points out the element in the model to observe and whether the observation is when this model element is entered or when it is exited.
* <!-- 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 observation is determined by the entering or exiting of the event element during execution.
* <!-- 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 event. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters event. If firstEvent is false, then the corresponding observation event is the time instant the execution exits event.
* <!-- 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