contents   previous




2. Collaboration diagrams

Collaboration diagrams will not be stressed in this course. They can also be used to represent object interactions. Here is an example from an early (somewhat adhoc) design of the jukebox. This example has a "Money Manager" object which is actually an overall control object in this particular approach. There is a secondary control object called "UserSelection". Note that this design bears little resemblence to the ananysis model used as an example in Figures 1 and 2.

An arrow drawn from one object to another represents "navigability" in the sense that the the first object makes direct use of the second object. Edges without arrows should be treated as if they had two arrow, and so were bidirectional or "bi-navigable". Also, such a diagram might be used in a restricted way, demonstrating only the various object interactions for a particular use case.

We will discuss some of the details of this collaboration diagram, but will not spend much time on these (following the lead of Bruegge-Dutoit, who don't even mention them). Notice that this diagram does not make clear the order of the various events. This can be accommodated however by first directing all edges and then numbering these. Actually, two systems for numbering exist for this purpose.



Figure III.3




next