70 likes | 246 Views
Sequence Diagrams. Richard Hopkins rph@nesc.ac.uk UML for Use Cases NeSC, Edinburgh, Jan 5/6 2006. Sequence Diag. . Sequence Diag. . The Role of Sequence Diagrams. Sequence diagram = sequence of interactions between actors = one path through Use-Case structure = one (derived) scenario.
E N D
Sequence Diagrams Richard Hopkins rph@nesc.ac.uk UML for Use Cases NeSC, Edinburgh, Jan 5/6 2006
Sequence Diag. Sequence Diag. The Role of Sequence Diagrams • Sequence diagram = sequence of interactions between actors • = one path through Use-Case structure = one (derived) scenario Partially articulated requirements to elucidate use case – how system interacts with other actors – Business Model Capture Requirements Requirements Use Case Diag. … Construct Model of Overall system Class Diag. Structure to express design – how system components interact with each other and external actors – Software Model … Behaviour
Borrower Authoriser A Sequence Diagram Library Authenticator Bank logon (credentials) authenticate (credentials) extendLoan (book) overdue (£fine) payfine (CC#) debit (CC#, credentials, £fine) authenticate (credentials) extendLoan (book) authoriseLoanExtension (book) Scenario : Extend Loan on an Overdue Book
Borrower Borrower Constituents of Sequence Diagrams (human) actor Library logon (credentials) (system) actor Library lifeline extendLoan (book) overdue (£fine) payfine (CC#) activation message reply extendLoan (book) 4. payfine (CC#) (numbered) message details e.g. operation and parameteres
Features of Sequence Diagrams • A single case walk-through, corresponds to a scenario • may be a derived scenario • Visual representation of interactions during the behaviour • Can show information flow • Can have greater sophistication • branch points • self-messages • Synchronous vs. asynchronous messages • Of more use in software design
Practical – Sequence Diagrams • 1 – Individually (20 mins) • take one path through the Use Case Structure of your group for previous exercise • or use group C – most interaction potential • do the sequence diagram for it – using either pencil and paper, or Visual Paradigm for UML • First – group splits up the paths • 2 – Group (20 mins) • Each individual shows the sequence diagram to rest of group • How easy? • How useful? • 3 – Group Discussion