I. Interaction Diagram Notation (Larman Ch 15, Fowler) A. preview ------------------------------------------ INTERACTION DIAGRAMS (Ch 15) Used to illustrate object designs. Types: - sequence diagrams simpler, clearly shows sequence - collaboration diagrams good for branching, iteration ------------------------------------------ B. notational highlights ------------------------------------------ NOTATIONAL GOTCHAS Things to watch out for: instances are underlined start with a colon |-----------| | :Register | (should be underlined) |-----------| classes are not underlined, no colon |-----------| | Math | (not underlined) |-----------| multiobjects (collections) have double boxes |-----------| |-----------| | | :Set |-| (should be underlined) |-----------| ------------------------------------------ C. Example collaboration diagram ------------------------------------------ EXAMPLE COLLABORATION DIAGRAM (15.2) | | makePayment(cashTendered) | | | v | |-----------| | :Register | |-----------| | | 1: makePayment(cashTendered) | | | v | |-----------| | :Sale | |-----------| | | | 1.1: create(cashTendered) | | | v | |------------| | :Payment | |------------| ------------------------------------------