Other communication links 4. The receiving object is global This is the case when a reference to an object can be obtained using a static method The stereotype <global>, ora [g] symbol is used in this case 5. The objects communicate over a network We suggest to write <<network www.oseng.com O Lethbridge/Laganiere 2001 Chapter 8: Modelling Interactions and behaviour 16
© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 16 Other communication links 4. The receiving object is global. - This is the case when a reference to an object can be obtained using a static method. - The stereotype «global», or a [G] symbol is used in this case. 5. The objects communicate over a network. - We suggest to write «network»
How to choose between using a sequence or collaboration diagram Sequence diagrams Make explicit the time ordering of the interaction Use cases make time ordering explicit too So sequence diagrams are a natural choice when you build an interaction model from a use case Make it easy to add details to messages -Collaboration diagrams have less space for this www.oseng.com O Lethbridge/Laganiere 2001 Chapter 8: Modelling Interactions and behaviour 17
© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 17 How to choose between using a sequence or collaboration diagram Sequence diagrams • Make explicit the time ordering of the interaction. —Use cases make time ordering explicit too —So sequence diagrams are a natural choice when you build an interaction model from a use case. • Make it easy to add details to messages. —Collaboration diagrams have less space for this