Book a Demo

Author Topic: navigability and OCL  (Read 5650 times)

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
navigability and OCL
« on: October 24, 2006, 02:31:25 pm »
UML 2.1 superstructure states, that UML tools can traverse through a non-navigable association ends.
So suppose there is a metamodel's fragment:
class A and class B are associated with a association with the association ends endA and endB respectively. endB end is non-navigable.

Does it mean, that it's possible to write OCL expression using navigation through the non-navigable endB end?

context A
inv: endB.name <> 'test'

However model's (which conforms to metamodel) objects ClassA (instance of metamodel's class A) won't be able to use endB association end?
« Last Edit: October 24, 2006, 02:50:14 pm by SF_lt »
registertm everything to SparX

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: navigability and OCL
« Reply #1 on: November 02, 2006, 05:46:16 am »
If you give us a reference in the UML specification, we'll have another go at answering your question...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: navigability and OCL
« Reply #2 on: November 02, 2006, 07:44:52 am »

UML Superstructure v2.1, p. 39, right after the 8963 issue
registertm everything to SparX