UML 2.4.1 RTF Avatar
  1. OMG Issue

UML241 — property.opposite

  • Key: UML241-19
  • Legacy Issue Number: 16412
  • Status: closed  
  • Source: Dassault Systemes ( Mr. Nerijus Jankevicius)
  • Summary:

    It seems there is an issue with derived Property.opposite.

    Spec says:

    / opposite : Property [0..1] In the case where the property is one navigable end of a binary association with both ends navigable, this gives the other end.

    By description, it should keep reference to opposite navigable end, but OCL works only when navigable end is owned by class.
    It does not work when navigable end is owned by association:

    Constraint #1:
    [1] If this property is owned by a class associated with a binary association, and the other end of the association is also owned by a class, then opposite gives the other end.
    opposite = if owningAssociation->isEmpty() and association.memberEnd->size() = 2 then let otherEnd = (association.memberEnd - self)>any() in if otherEnd.owningAssociation>isEmpty() then otherEnd else Set{} endif else Set {} endif

    Any comments?
    Which one is correct? Property description or constraint text?

  • Reported: UML 2.4 — Mon, 1 Aug 2011 04:00 GMT
  • Disposition: Resolved — UML 2.4.1
  • Disposition Summary:

    This issue has already been resolved by, or no longer applies to, the UML 2.5 Beta 1 specification.
    Disposition: Closed - No Change

  • Updated: Fri, 6 Mar 2015 20:58 GMT