How Are Classes Found? Classes can be discovered using various artifacts. Use-Case BuyerRecord PersonalPlannerForm Specification Stakeholder Requests (from Analysis Model) (from Analysis Model) Classes Glossary Object Oriented Analysis and Design 6
Object Oriented Analysis and Design 6 How Are Classes Found? Classes can be discovered using various artifacts. Use-Case Specification Glossary Stakeholder Requests Classes
Outline ◆Classes Interaction diagrams Sequence diagrams ◆ Collaboration diagrams ◆ Interaction diagram comparison ◆Reports Object Oriented Analysis and Design 7
Object Oriented Analysis and Design 7 Classes Interaction diagrams Sequence diagrams Collaboration diagrams Interaction diagram comparison Reports Outline
Objects Need to Collaborate ◆ Objects are useless unless they can collaborate to solve a problem. Each object is responsible for its own behavior and status. No one object can carry out every responsibility on its own. How do objects interact with each other? They interact through messages. Object Oriented Analysis and Design 8
Object Oriented Analysis and Design 8 Objects Need to Collaborate Objects are useless unless they can collaborate to solve a problem. ▪ Each object is responsible for its own behavior and status. ▪ No one object can carry out every responsibility on its own. How do objects interact with each other? ▪ They interact through messages
Objects Interact with Messages A message shows how one object asks another object to perform an operation. Message getCourseOfferings(forSemester) RegistrationController :CourseCatalogSystem Object Oriented Analysis and Design 9
Object Oriented Analysis and Design 9 Objects Interact with Messages A message shows how one object asks another object to perform an operation. : Car buyer Message :RegistrationController :CourseCatalogSystem getCourseOfferings(forSemester)
What Is an Interaction Diagram? An interaction diagram models the dynamic aspects of the system by showing relationships among objects and the messages they may dispatch. There are two types of interaction diagrams Sequence 吴 Collaboration Sequence Diagram Collaboration Diagram Object Oriented Analysis and Design 10
Object Oriented Analysis and Design 10 What Is an Interaction Diagram? An interaction diagram models the dynamic aspects of the system by showing relationships among objects and the messages they may dispatch. There are two types of interaction diagrams. ▪Sequence ▪ Collaboration Collaboration Diagram Sequence Diagram