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

public interface TimeObservation extends Observation
A representation of the model object 'Time Observation'.

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.

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 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.
      Returns:
      the value of the 'First Event' attribute.
      See Also:
      Model:
      default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" 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:
    • getEvent

      @CheckForNull NamedElement getEvent()
      Returns the value of the 'Event' reference. It is bidirectional and its opposite is 'time Observation Of Event'. The TimeObservation is determined by the entering or exiting of the event Element during execution.
      Returns:
      the value of the 'Event' reference.
      See Also:
      Model:
      opposite="_timeObservationOfEvent" required="true" ordered="false"
      Generated:
    • setEvent

      void setEvent(@CheckForNull NamedElement value)
      Sets the value of the 'Event' reference.
      Parameters:
      value - the new value of the 'Event' reference.
      See Also:
      Generated: