190 likes | 215 Views
A Student Guide to Object-Oriented Development. Chapter 8 Activity diagrams. Activity diagrams. show the internal flow of control in a process can be used to model processing at different levels e.g. high-level workflows in an organization detail of what happens in a use case
E N D
A Student Guide to Object-Oriented Development Chapter 8 Activity diagrams
Activity diagrams • show the internal flow of control in a process • can be used to model processing at different levels e.g. • high-level workflows in an organization • detail of what happens in a use case • detail of how an operation works
Activity diagrams • can be used to represent • sequence • selection • iteration • can also illustrate where different activities can be carried out in parallel
Activity Diagram (UML) Decision point Synchronization bar End Task UML and C++ A Practical Guide To Object-Oriented Development
Activity Diagrams Activity diagrams extend statechart diagrams and present a sequence of "activities" and how the execution path progresses from one activity to another. UML and C++ A Practical Guide To Object-Oriented Development
Activity Diagrams Activity diagrams can also present: • decision points: conditions that change the flow of actions • parallel execution paths • objects affected by actions UML and C++ A Practical Guide To Object-Oriented Development
Initial state Select Course Check Schedule Check Pre-requisites Action state [checks completed] [checks failed] Assign to Course Resolve Conflict [student added to course] Update Schedule Final state Example: Activity Diagram