All Superinterfaces:
BaseElement, Cloneable, Comparable, Constraint, Element, org.eclipse.emf.ecore.EObject, IntervalConstraint, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, org.eclipse.emf.common.notify.Notifier, PackageableElement, ParameterableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject

public interface TimeConstraint extends IntervalConstraint
A representation of the model object 'Time Constraint'.

A TimeConstraint is a Constraint that refers to a TimeInterval.

The following features are supported:

See Also:
Model:
annotation="MOF package='commonbehaviors.mdsimpletime'"
Generated:
  • Method Details

    • isFirstEvent

      boolean isFirstEvent()
      Returns the value of the 'First Event' attribute. The default value is "true". The value of firstEvent is related to the constrainedElement. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters the constrainedElement. If firstEvent is false, then the corresponding observation event is the last time instant the execution is within the constrainedElement.
      Returns:
      the value of the 'First Event' attribute.
      See Also:
      Model:
      default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" ordered="false"
      Generated:
    • setFirstEvent

      void setFirstEvent(boolean value)
      Sets the value of the 'First Event' attribute.
      Parameters:
      value - the new value of the 'First Event' attribute.
      See Also:
      Generated:
    • getSpecification

      @CheckForNull TimeInterval getSpecification()
      Returns the value of the 'Specification' containment reference. It is bidirectional and its opposite is 'time Constraint Of Specification'. TheTimeInterval constraining the duration.
      Specified by:
      getSpecification in interface Constraint
      Specified by:
      getSpecification in interface IntervalConstraint
      Returns:
      the value of the 'Specification' containment reference.
      See Also:
      Model:
      opposite="_timeConstraintOfSpecification" containment="true" resolveProxies="true" required="true" ordered="false"
      Generated:
    • setSpecification

      void setSpecification(@CheckForNull TimeInterval value)
      Sets the value of the 'Specification' containment reference.
      Parameters:
      value - the new value of the 'Specification' containment reference.
      See Also:
      Generated: