Chapter 9 Part II System Behavior Interactions Adapted

Chapter 9, Part II: System Behavior - Interactions (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer © Prentice Hall, 2004 9 -1

Outline - Analysis Class Diagram (Fully Fledged Class Diagram; read skill) - Interactions by Sequence Diagram (read & write skill) - Interactions by Collaboration Diagram - (read skill) Chapter 9 © Prentice Hall, 2004 2

Goal: Get to a Fully Fledged Class Diagram G Chapter 9 © Prentice Hall, 2004 3

Activity Diagram of Analyzing Information Systems Analyze System’s Processes (Use Case Diagrams/Descriptions, Data Flow Diagrams) Represent System’s Logic (Activity Diagram, Decision Tables) Represent System’s Data (Conceptual Data Model. Partial Class Diagram; Object-Relational Notation) Represent System’s Interactions (Sequence Diagram, Collaboration Diagram) Finalize Class Diagram Chapter 9 © Prentice Hall, 2004 4

Categorizing (Stereotyping) Classes (Analysis Classes) Corresponds to conceptual data model classes – Data Chapter 9 Connections between actors and use cases – User Interface, other interfaces © Prentice Hall, 2004 Performs behaviors associated with inner workings of use cases – Managing transactions, logic, business rules 5

Chapter 9 © Prentice Hall, 2004 6

Sequence Diagram l. A UML diagram that shows the interaction between objects to perform critical pieces of use case behavior in a time-ordered manner l Interactions are in the form of messages l Behavioral responsibilities are assigned to message recipients Chapter 9 © Prentice Hall, 2004 7

Symbols in a Sequence Diagram l Object: Box or class stereotype symbol l Object’s lifetime: Dotted vertical line l Focus of Control: Thin bars; periods of time when object is behaving (fulfilling responsibilities). l Message: Labeled horizontal arrows between objects. Run one or both ways (message-response). Chapter 9 © Prentice Hall, 2004 8

Chapter 9 © Prentice Hall, 2004 9

Typically, actors interact with boundary classes, which in turn interact with control classes (if exist), which in turn interact with entity classes. Chapter 9 © Prentice Hall, 2004 10

Chapter 9 © Prentice Hall, 2004 11

Collaboration Diagram l. A UML diagram that shows the interactions between objects to perform critical pieces of the use case behavior l Unlike sequence diagrams, collaboration diagrams have no spatial representation of time; sequences of messages are shown by numbering. Chapter 9 © Prentice Hall, 2004 12

Chapter 9 © Prentice Hall, 2004 13

Analysis Class Diagram • Fully fledged Class Diagram with both data and operations (methods, responsibilities). Operations (behaviors) are specified at the bottom of a class box. Operations fulfill the classes’ responsibilities. Chapter 9 © Prentice Hall, 2004 14
- Slides: 14