Olivier,
In Rational Rose when you 'drag' a class onto a Sequence Diagram the model
actually creates an instance of that class. You can name the instance if you
want - implying you have decided on an object name. Also, you can have
multiple instances of the same class on a sequence diagram.
This is consistent with the idea of a sequence diagram - it models the
behaviour of (a subset of) your classes for a specific sequence of messages
(events).
Don't think of a sequence diagram as 'representing' the system at a certain
stage ... rather think of it as 'capturing the systems behaviour' at a
certain stage. It is important to include only instances of the classes that
are actually involved in the specific behaviour.
In essence if there is a message passed from one object to another in a
sequence diagram then there must be some relationship between those classes.
So, you can approach the sequence diagram in two ways - either as a means of
identifying relationships; or as a means of identifying the mesages
necessary given an existing set of relationships. (Indeed, usually you will
have both approaches simultaneously.)
Anyway, to answer your basic question - a sequence diagram, by definition,
contains instances of classes, so you have the right idea (basically).
Stephen Kelly.
> -----Original Message-----
> From: Olivier Chauvineau [mailto:[EMAIL PROTECTED]]
> Sent: 26 June 2001 14:21
> To: [EMAIL PROTECTED]
> Subject: (ROSE) instance diagrams
>
>
>
> Hi All.
>
> I modelized a system with :
> - a class diagram : showing associations,
> inheritance links,
> - an activity diagram : representing the activity of my
> system
>
> (and also state diagrams for some classes, but this is out of
> the scope for
> my question).
>
> Now, I would like to add some sequence diagrams to represent
> this system at
> different stages of its life (for exemple:
> SystemBeforeStepInTheFirstActivity,
> SystemAfterStepOutTheFirstActivity,
> etc...), showing interactions between different objects.
>
> For each sequence diagram, I would like to represent all the
> instances of
> all the classes involved: that is a graph of objects. it was
> my first idea,
> but I might be wrong? I think that it could bring an
> interesting view of the
> system: which classes has been instanciated? Which
> associations has been
> instanciated? How the objects are connected? etc...
>
> Thus, I want to use instance diagrams to represent all these
> objects (that
> is different instances of my class diagram): I think it is
> one a the diagram
> proposed by UML? But how can I manage this kind of diagram
> with ROSE? I
> can't find it in the menus?
>
> Is that correct to have this approach? (it is in the scope of
> a reverse
> engineering activity). Maybe, I don't need instance diagram to bring
> something more for the understanding?
> Thank you.
>
>
> > \\\///
> >
> >
> > ( oo )
> >
> (
> > .. )
> >
> -------------------------------------------------------m------
> m-----------
> > ---------------
> > Olivier Chauvineau
> > Analyste-programmeur, D�veloppement / Programmer Analyst,
> Development
> > Les Syst�mes Proxima Lt�e / Proxima Systems Ltd.
> >
> > T�l. :+1.514.448.4122 / T�l�c. :+1.514.875.5167
> >
> > mailto:[EMAIL PROTECTED]
> >
> >
> --------------------------------------------------------------
> ------------
> > ------------------
> >
> **************************************************************
> **********
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages:
> http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> **************************************************************
> ***********
>
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************