(responding to Juan Manuel Moreno Beltran)
> Hello everybody, I�m student of object oriented analysis and design > I wish some help about UML and sequence diagrams: > > Class diagram: > > A -> B -> C (-> is an association) > > A a is an object of A, B of B, c of C > > How to model in a sequence diagram: > > a searches an existent object b > When "a" creates an existent "b", "c" is created. UML deals with this fairly well, but Rose doesn't manage quite so well. If you're not using Rose for code generation, I would explicitly add the object constructor to the operations, so you can reference it on the sequence diagrams. If you're doing code generation this isn't a good idea because the code generator will try and add this constructor to the code it generates. There are a few alternative approaches. You could label the message with text rather than linking it direct to the method that should be called. You could leave construction off the sequence diagram (I realise this isn't always an option) and document the association B->C to indicate common life cycle, i.e. creation of an instance of B results in creation of an instance of C. None of these approaches are perfect, take your pick. Paul Oldfield any opinions expressed herein are not necessarily those of Mentors of Cally ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum *************************************************************************
