130 likes | 332 Views
OOD – Use Case Realizations UML's Sequence Diagram. Chapter 11 pp . 327-349. Where are we?. System Sequence Diagram (Ch5). shows interactions between an actor & the system. Use Case: “Create New Customer”. Lifelines Actor Object Message Return Message. Sequence Diagrams.
E N D
OOD – Use Case Realizations UML's Sequence Diagram Chapter 11 pp. 327-349
System Sequence Diagram (Ch5) • shows interactions between an actor & the system Use Case: “Create New Customer” • Lifelines • Actor • Object • Message • Return Message
Sequence Diagrams • (def) model of the interactions between objects within a single use case scenario (i.e. an instance of a use case) • Interactions (i.e. messages) Lifeline Object Activation bar : Object creation : Message Return
125 : A : B doThis() • A method is being invoked • From the originating/sending object (A) • To the destination object (B) • B is responsible for implementing the method doThis() • * [true/false]returnValue:= messageName(parameter)
Use Case: “Cancel an Order” Sequence Diagram (Note: Domain Layer only) Design Class Diagram Add methods to the Design Class Diagram
3 Layer Design Types of Classes View Layer Domain Layer Data Access Layer Database CustomerDA Customer Table Order Table OrderDA OrderItem Table OrderItemDA …. ….
Use Case: “Create New Customer” Sequence Diagram Here is a: 3 Layer Design Note: We will only be modeling the Actor & the Domain layer. Actor View Domain Data Access
Sequence Diagram Use Case: “Place a Phone Order” Note: Domain Layer only Design Class Diagram Add methods to the Design Class Diagram