Reg Exp Layers by association to class (OCL) [message #1769741] |
Thu, 03 August 2017 02:17  |
Eclipse User |
|
|
|
Hi there, I'm new to UML/OCL/Papyrus an the lack of forum exchange about this gives me a feeling I might be on the wrong path:
Working on a class diagramm I would like to layer a) all objects that are members of a composition and b) all interfaces that inherit from another interface. That is, I would say, layering by direct and indirect association.
In papyrus I could do this by simply adding elements to a layer. More convenient would be the use of Reg Exp Layers, which select all elements returning TRUE on an OCL boolean expression.
But I would also like to put all (downwards?) associated elements of 'myclass' on that layer. Any suggestions?
Thank you.
PS: Cross post from Stackoverflow (with no answers)
|
|
|
|
|
Re: Reg Exp Layers by association to class (OCL) [message #1769960 is a reply to message #1769871] |
Mon, 07 August 2017 02:47   |
Eclipse User |
|
|
|
Allright, thank you. I can well follow your answers. Although what I am doing is also closely related to software development, I wasn't quite aware to be so totally in that world using UML. We are modeling something more "real", a facility structure. And we are, too, integrating different roles/views in that model. At this point all my classes have more or less direct associations in real live.
An example: "A box is an asset. An example of a box is a cardbox. Boxes are also geometric objects, for example cuboids which would make them rectangles in the horizontal projection. Boxes are storaging devices. A storaging devices has an empty volume, ... . Boxes can be made out of... ."
So there are some main classes/interfaces representing different views and everythin that is an asset can also take a role in each of the other views. For the development of the model I would have found it convenient to use the layering functionality but it is also, of course, possible to make a single model for each view.
Thanks again for your support.
André
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04519 seconds