> ----------
> From:         Peter Lindgren[SMTP:[EMAIL PROTECTED]]
> Reply To:     Peter Lindgren
> Sent:         15 November 2000 7:13
> To:   [EMAIL PROTECTED]
> Subject:      Re: (ROSE) Re: How To write in the Sequence Diagram
> 
> 
> krishna srinivasa wrote:
> > 
> > I would like to know how to depict this in rose 98 -
> > sequence diagram.
> > 
> > i work in vb
> > i have an interface class.
> > i have the implementing class.
> > the implementing class has private functions
> > implementing the interface.
> > the implementing class is a public class.
> > should i show (the implementing class)?
> 
> Yes you show only the implementing class and
> not the interface class, since a sequence
> diagram shows instances (objects), not classes.
> The fact that your implementing class
> implements an interface is showed in a class
> diagram.
> 
Actually, it is valid to show interfaces in Sequence Diagrams, but you have
to have a reason for doing it.

(1) The calling class is the focus:
Show the calling class, the interface. The calls are between caller and the
interface. Also put a note on the diagram to say that the interface
implementer does something in the background.

(2) The implementing class is the focus:
Show the implementing class's instance and the instances/interfaces that it
calls. The caller is probably some faceless (i.e. classless) instance so
that we can have an originating class for the message.

(3) You are illustrating a pattern:
That's the hard bit. You need to show both the interface and its
implementation. I got round this until now by showing the implementing
class's instance and a note saying that it implements an interface. I
welcome a better suggestion.


Regards,
Huseyin Angay
www.karabash.co.uk
Karabash Ltd.

        (...)


> /Peter
> -- 
> Peter Lindgren                             Bachelor of Computer
> Engineering
> ERIEYE C2 Software Design
> http://www.ericsson.com/erisoft
> Get your own AWACS:
> http://www.ericsson.se/microwave/2-Products/erieye.asp
> --- Opinions above, expressed or implicit, are my personal opinons only
> ---
> ************************************************************************
> * 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
*
*************************************************************************

Reply via email to