Interface DurationConstraint

    • Method Detail

      • 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 constrainedElement[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 constrainedElement[i]. If firstEvent[i] is false, then the corresponding observation event is the last time instant the execution is within constrainedElement[i]. Default value is true applied when constrainedElement[i] refers an element that represents only one time instant.
        Returns:
        the value of the 'First Event' attribute list.
        See Also:
        UMLPackage.getDurationConstraint_FirstEvent()
      • validateFirstEventMultiplicity

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