Форум Сообщества Аналитиков

Общий раздел => Теория моделирования и нотации => UML SysML и пр. => Тема начата: slatvick от 23 Октября 2008, 18:37:46

Название: Чем отличается Navigable Composition и NonNavigable Composition
Отправлено: slatvick от 23 Октября 2008, 18:37:46
Не могу понять чем отличается Navigable Composition и NonNavigable Composition

Пример из спецификации: Figure 7.8 - Instances diagram of the Kernel package
Название: Re: Чем отличается Navigable Composition и NonNavigable Composition
Отправлено: bas от 24 Октября 2008, 15:17:49
Навигация показывает область видимости. Т.е. InstanceSpecification может иметь доступ к Slot и Slot может иметь доступ к InstanceSpecification, а вот ValueSpecification не может иметь доступ к Slot.
Название: Re: Чем отличается Navigable Composition и NonNavigable Composition
Отправлено: slatvick от 24 Октября 2008, 16:34:21
Спасибо за ответ.

Подтверждаю и расширяю ответ цитатой из спецификации:

-> UML Superstructure Specification v2.1.2, стр.41:
"Navigability means instances participating in links at runtime (instances of an association) can be accessed efficiently from instances participating in links at the other ends of the association. The precise mechanism by which such access is achieved is implementation specific. If an end is not navigable, access from the other ends may or may not be possible, and if it is, it might not be efficient. Note that tools operating on UML models are not prevented from navigating associations from non-navigable ends. ".