|
Re: Reasons of the 'Not all members are distinguishable' warning [message #1178456 is a reply to message #1178258] |
Sat, 09 November 2013 17:21 |
|
Hi, Tomas,
This can be caused not only by the actual owned members of a namespace,
but also imported members that have names clashing with owned members.
This is one reason why element imports can specify aliases.
Unfortunately, the UML2 implementation of the
namespace-members-are-distinguishable constraint doesn't encode in the
problem marker references to the indistinguishable members, so you will
just have to work it out for yourself. You could possibly use an OCL
query to find them. Something like (totally untested) in the context
of uml::Namespace:
let ns = self in
ns.members->select(e |
ns.members->exists(m | m <> e and not
m.isDistinguishableFrom(e, ns)))
HTH,
Christian
On 2013-11-09 14:13:14 +0000, Tomas Sandkvist said:
> I'm having trouble to realize where these messages are coming from. How
> hard I look I can't see if there is some element having the same name
> as another, so perhaps that is not the problem?
>
> Any suggestions appreciated!
>
> Regards,
> Tomas Sandkvist
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03362 seconds