Shanghai Jiao Tong University 上海交通大学 Object Oriented Analysis and Design Other UML Diagrams 上海交通大学软件工程中心
Shanghai Jiao Tong University 上海交通大学软件工程中心 Object Oriented Analysis and Design Other UML Diagrams
Outline Statechart diagrams ◆Deployment diagrams Component diagrams Object Oriented Analysis and Design 2
Object Oriented Analysis and Design 2 Outline Statechart diagrams Deployment diagrams Component diagrams
Review:An Object Has State The state of an object is one of the possible conditions in which an object may exist. The state of an object normally changes over time. ☐Name:J Clark 口Employee ID:567138 HireDate:07/25/1991 Status:Tenured Discipline:Finance MaxLoad:3 Name:J Clark Employee ID:567138 Date Hired:July 25,1991 Status:Tenured Discipline:Finance Professor Clark Maximum Course Load:3 classes Object Oriented Analysis and Design 3
Object Oriented Analysis and Design 3 Review: An Object Has State The state of an object is one of the possible conditions in which an object may exist. The state of an object normally changes over time. Name: J Clark Employee ID: 567138 Date Hired: July 25, 1991 Status: Tenured Discipline: Finance Maximum Course Load: 3 classes Name: J Clark Employee ID: 567138 HireDate: 07/25/1991 Status: Tenured Discipline: Finance MaxLoad: 3 Professor Clark
What Are Statechart Diagrams? A statechart diagram shows a state machine. It specifies the sequence of states that an object can be in: The events and conditions that cause the object to reach those states The actions that take place when those states are reached Sample Sample State 1 State 2 Object Oriented Analysis and Design
Object Oriented Analysis and Design 4 What Are Statechart Diagrams? A statechart diagram shows a state machine. It specifies the sequence of states that an object can be in: ▪ The events and conditions that cause the object to reach those states ▪ The actions that take place when those states are reached Sample State 1 Sample State 2
Drawing States A state is represented as a rounded rectangle on a statechart diagram. As a comparison,note the subtle difference between a state and an activity Sample Sample State 1 Activity Object Oriented Analysis and Design 5
Object Oriented Analysis and Design 5 Drawing States A state is represented as a rounded rectangle on a statechart diagram. As a comparison, note the subtle difference between a state and an activity. Sample State 1 Sample Activity