Interface DurationObservation

    • Method Detail

      • getEvent

        NamedElement getEvent​(String name,
                              boolean ignoreCase,
                              org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first NamedElement with the specified 'Name' from the ' Event' reference list.
        Parameters:
        name - The 'Name' of the NamedElement to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the NamedElement to retrieve, or null.
        Returns:
        The first NamedElement with the specified 'Name', or null.
        See Also:
        getEvents()
      • getFirstEvents

        MDWEList<Boolean> getFirstEvents()
        Returns the value of the 'First Event' attribute list. The list contents are of type Boolean. The value of firstEvent[i] is related to event[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters event[i]. If firstEvent[i] is false, then the corresponding observation event is the time instant the execution exits event[i]. Default value is true applied when event[i] refers an element that represents only one time instant.
        Returns:
        the value of the 'First Event' attribute list.
        See Also:
        UMLPackage.getDurationObservation_FirstEvent()
      • validateFirstEventMultiplicity

        boolean validateFirstEventMultiplicity​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               Map context)
        The multiplicity of firstEvent must be 2 if the multiplicity of event is 2. Otherwise the multiplicity of firstEvent is 0. if (event->size() = 2) then (firstEvent->size() = 2) else (firstEvent->size() = 0)