I need to do diagrams like the one below, i.e., classes containing inner classes which show their attributes and operations. Any guess how can I do this using Papyrus?
You can't do that in Papyrus. There are two ways to represent nested classifiers:
- Compartment: The classes are represented inline in a "nested classifier" compartment. You only see the Classifier's name and its visibility (Text only, just like an association or a property)
- Containment link: You can draw a "Containment link" between two classes. They will be displayed side-by-side, and you can display the structure/contents of the Nested classifier.
With Composite Diagrams, you can show the inner Structure of a classifier, but you cannot display the attributes (parts) inline, in a distinct compartment. And you can't display operations at all.
Once again, thanks for answering Camille.
Is there any way I can create a custom diagram of this kind (showing the attributes and operations compartments) using Papyrus?
On 16/05/2013 18:57, tina tony wrote:
> hi everyone,
>
> hope someone can help me with this problem.
>
> i want to write an operation like this: getID(): int but papyrus automaticaly write i like this way : getID():int()
>
> what can i do to write my operations on my own?
>
> thanks very much for helping