blob: 0429cf987a423d5114b6c56d41c88fe05750cbd2 [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: TimeConstraint.java,v 1.4 2006/05/12 20:38:10 khussey Exp $
*/
package org.eclipse.uml2.uml;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Time Constraint</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A time constraint is a constraint that refers to a time interval.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.TimeConstraint#isFirstEvent <em>First Event</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getTimeConstraint()
* @model
* @generated
*/
public interface TimeConstraint
extends IntervalConstraint {
/**
* 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 constrainedElement. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters constrainedElement. If firstEvent is false, then the corresponding observation event is the last time instant the execution is within constrainedElement.
* <!-- end-model-doc -->
* @return the value of the '<em>First Event</em>' attribute.
* @see #setFirstEvent(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getTimeConstraint_FirstEvent()
* @model default="true" dataType="org.eclipse.uml2.types.Boolean" ordered="false"
* @generated
*/
boolean isFirstEvent();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.TimeConstraint#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);
} // TimeConstraint