Re: sequence diagram for observer pattern



On 2006-05-28 02:23:21 -0500, "chandra.somesh@xxxxxxxxx" <chandra.somesh@xxxxxxxxx> said:

well the above SD does solve the problem..but what if i need to
represent some messages being passed among individual observers...then
just clubbing the observers as a single object will not be able to
represent that...can we have individual as well as broadcast messages
to be represented using the above representation ??

If you are not generating code then the sequence diagrams are not compiled. No compiler is going to issue an error message. Therefore you may draw anything that makes sense to you and to your readers.

If you are generating code, then you need a language with a much more formal syntax than UML.
--
Robert C. Martin (Uncle Bob)  | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |



.



Relevant Pages

  • Re: CPtrList - Please Help me understand
    ... object of type notice*, and you won't need to do casts at all. ... >Now although bp has a pointer to an object of type B (which we know because we created ... >compiler now happily does the assignment. ... >Generally, casting has no effect on the representation of a value, other than instructing ...
    (microsoft.public.vc.mfc)
  • Re: What I can to do with old PL/1 code?
    ... >> I have IBM Visual Age PL/1 compiler, ... > issues related to limitations on precision and representation of real ... > the same binary precision for all floating point numbers. ...
    (comp.lang.pl1)
  • Re: Trap Representations - c99 [again]
    ... This could happen through missing initialisation of an automatic ... changing the representation via overlaying an array of unsigned char, ... I.e., if an auto is explicitly initialised, it may *never* hold a trap value; no matter how it's been initialised - right? ... Building upon that, every C compiler I've ever used issues a warning along the lines of 'x' is not initialised before it is used - if such a diagnostic is *required* by the c99 standard, then traps should never occur - if of course you're paying attention to the warnings your compiler issues! ...
    (comp.lang.c)
  • Re: Cant read CString after serialization
    ... I insisted we have a textual representation of the data structures. ... I later wrote the same package for IDL when we were at ... Tartan Laboratories (a compiler company in Pittsburgh). ... David Lamb and John Nestor took ...
    (microsoft.public.vc.mfc)
  • Re: give me some tips
    ... as you can state really deep problems on a sheet of paper within ... I'm not sure exactly where I can use it in a compiler. ... If you introduce an intermediate representation, ... e.g. a tree; if you compile on a translation unit by translation ...
    (comp.lang.c)