facebook

collaboration and activity diagrams

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #238411 Reply

    lujhuang
    Member

    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?

    #238437 Reply

    Riyad Kalla
    Member

    I’ve asked someone from the UML team to reply, sorry for the confusion.

    #238450 Reply

    Kapil Kapre
    Member

    @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

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: collaboration and activity diagrams

You must be logged in to post in the forum log in