- This topic has 2 replies, 3 voices, and was last updated 19 years, 1 month ago by Kapil Kapre.
-
AuthorPosts
-
lujhuangMemberThe tutorial didn’t cover how to draw collaboration and activity diagrams. Are there examples out there?
I just tried to draw a collaboration diagram with a couple of classes, but I don’t seem to be able to see the java classes in the collaboration diagram. Some other tools use ‘:MyClass’ to denote an object of the MyClass to be used in collaboration or sequence diagrams. Is there similar convention in MyUML for this? How can I get the methods defined for a class from the collaboration diagram? (I guess I am preparing MyUML against some commercial UML tools that I used before, where you can see the methods from a class and select one as the connection between the invoking and invoked objects.)
Can someone explain?
Riyad KallaMemberI’ve asked someone from the UML team to reply, sorry for the confusion.
Kapil KapreMember@lujhuang wrote:
The tutorial didn’t cover how to draw collaboration and activity diagrams. Are there examples out there?
I just tried to draw a collaboration diagram with a couple of classes, but I don’t seem to be able to see the java classes in the collaboration diagram. Some other tools use ‘:MyClass’ to denote an object of the MyClass to be used in collaboration or sequence diagrams. Is there similar convention in MyUML for this? How can I get the methods defined for a class from the collaboration diagram? (I guess I am preparing MyUML against some commercial UML tools that I used before, where you can see the methods from a class and select one as the connection between the invoking and invoked objects.)
Can someone explain?
lujhuang,
Yes this is possible. Try the following steps.
1. Start with a fresh class diagram containing the class whose features you want to use in the collaboration diagram.
2. Click the class and then click the ‘new collaboration diagram’ button in the diagram toolbar. The collaboration will be created with this class as the toplevel namespace.
3. Create a Classifier Role in the Collaboration Diagram with a name such as /abc:MyClass. (Not the :MyClass is not specifically part of the name so just click the Classifier Role and start typing) You will see the class’ features appear under Available Features under the Properties for that Classifier Role.
Hope this helps you,
Kapil -
AuthorPosts