Activity and State Transition Diagram

Slides:



Advertisements
Similar presentations
© 2005 by Prentice Hall Appendix 3 Object-Oriented Analysis and Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George.
Advertisements

UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
Activity Diagrams in UML. Definition Activity diagrams represent the dynamics of the system. They are flow charts that are used to show the workflow of.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Information System Design IT60105
7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.
Interaction Diagrams Activity Diagram State Machine Diagram
Activity Diagrams [Arlow and Neustadt, 2005] CS 425 / 625 Seminar on Software Engineering University of Nevada, Reno Department of Computer Science & Engineering.
UML Activity Diagrams In UML an activity diagram is used to display the sequence of actions They show the workflow from start to finish Detail the many.
SE 555 Software Requirements & Specification 1 Activity Diagrams.
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
7M822 UML Activity Diagrams 6 October 2008.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
Activity Diagrams Derived from several techniques: Event diagrams of Jim Odell SDL state modeling techniques Workflow modeling Petri nets Especially useful.
SE-565 Software System Requirements More UML Diagrams.
Lecture 6 Unified Modeling Language (UML)
BPMN By Hosein Bitaraf Software Engineering. Business Process Model and Notation (BPMN) is a graphical representation for specifying business processes.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
UNIT- Venkata Ratnam K1 BEHAVIORAL MODELING.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
9-1 © Prentice Hall, 2004 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
9-1 © Prentice Hall, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
Systems Analysis and Design in a Changing World, Fourth Edition
 Building Block Building Block  Things in the UML Things in the UML  Structural Things Structural Things  Behavioral Things Behavioral Things  Grouping.
Chapter 14: Activity Diagrams November 2015 [Arlow and Neustadt, 2005] CS 425/625 Senior Projects University of Nevada, Reno Department of Computer Science.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
UML Activity Diagrams.
Chapter 3: Introducing the UML
Activity Diagramming by Andrzej Rosolski Stanisław Gliniewicz.
Interaction Models (2): Activity Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh.
Activity Diagrams. Notation Activity1()cActivity2() 1. Activities 2. Transition.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
UML Chapter 17.
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
Activity Diagram.
Visit for more Learning Resources
State Machine Diagrams
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Activity Diagrams.
Business System Development
UML Activity Diagrams.
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
UML Activity Diagrams & State Charts
Process Modeling: Activity/Swimlane Diagrams
Week 12: Activity & Sequence Diagrams
Chapter 14: Activity Diagrams
Activity Diagrams.
CIS 375 Bruce R. Maxim UM-Dearborn
Chapter 14: Activity Diagrams
Chapter 14: Activity Diagrams
CIS 375 Bruce R. Maxim UM-Dearborn
Appendix 3 Object-Oriented Analysis and Design
Object-Oriented Analysis & Design
Interaction Models (2): Activity Diagrams
Presentation transcript:

Activity and State Transition Diagram

32.1 State Transition Diagram A state transition diagram shows the states of a single object, the events or the messages that cause a transition from one state to another and the action that result from a state change. A state transition diagram will not be created for every class in the system. Components of State Transition Diagram: Start State Stop state State Transition

32.2 Semantics of every components State: A state is a condition during the life of an object when it satisfies some condition, performs some action, or waits for an event. The UML notation for a state is a rectangle with rounded corners. Special states: There are two special states. Start state: Each state diagram must have one and only one start state. Notation for start state is “filled solid circle”. Stop State: An object can have multiple stop states. Notation for stop state is bull’s eye.

32.4 Semantics of every components Contd... State transition: A state transition represents a change from an originating to a successor state. Transition label: event name[guard condition] / action

32.5 State Transition Diagram for Account class request and fill the form for new saving account[ validate ] / process Open transaction request[ validate ] / update() transactionStrart / Transfer_to_main_ledger () Operational Dormant no transaction / Transfer_to_Dormant_Ledger fill_the_request_form/update() Fraud or authorized instruction[Validate] / lockAccount() matter_resolved[ validate ] / unlockAccount() close seized fill_the_request_form / update() Note:Account can be closed from open state as well

32.6 More about State Diagram: A state diagram will not be created for every class. state diagrams are used only for those classes that exhibit interesting behavior. State diagrams are also useful to investigate the behavior of user interface and control classes. State diagram are used to show dynamics of a individual class

Activity diagrams are recommended in the following situations: It is a special kind of state diagram and is worked out at use case level. These are mainly targeted towards representing internal behavior of a use case. Flowcharts are normally limited to sequential process; activity diagrams can handle parallel process. Activity diagrams are recommended in the following situations: Analyzing use case Dealing with multithreaded application Understanding workflow across many use cases.

32.8 Activity Diagram Contd.. Activity diagrams show the flow of control between activities They can model the sequential and concurrent steps in a computational process They can also model the flow of an object as it moves from state to state at different points in the activity

32.9 When we use an activity diagram ? we can choose the order in which to do things. It expresses the essential sequencing rules to follow. It is different from a flow chart in that it shows parallel processes, not just sequential processes. Shows a set of activities, the flow from activity to activity. Represents the dynamic view of a system. Models the function of a system

32.10 Activity Diagram Symbols Action state: In a conceptual diagram an activity is a task that needs to be done – either by a human or a computer In a specification-perspective diagram or an implementation-diagram, an activity is a method on a class State transition In an activity diagram the states are activities representing the performance of operations. The transitions are triggered by the completion of the operations. A transition is a relationship between two states. This transition indicates that control is passed from the first state of the second state once the work of the source state is complete. The emphasized functional flow of control, transitions can be labelled, and contain parameters, guard conditions and action expressions. Initial state A pseudo state to establish the start of the event into an actual state. Final state Signifies when a state transition ends. Decision As in a flowchart, a conditional flow of control is modelled using the decision element. A decision is shown by labelling each output transition of a decision with a different guard condition. SwimLane It is a “package” for organizing activities within a class. Each zone or lane represents the responsibilities of a particular class or department. Swimlanes depict both the activity diagram’s logic along with the depiction (voorstelling,beschrijving) of responsibility. To use swimlanes, you must arrange your activity diagrams into vertical zones separated by dashed lines. Transitions may cross swimlane boundaries. Merge Branch bar The merge branch bar symbol is also known as a “synchronization bar”. It merges concurrent transitions to a single target. It splits a single transition into parallel transitions.

32.11 Modelling an Operation Collect the abstractions that are involved in this operation. This includes the operation‘s parameters, the attributes of eh enclosing class, and certain neighbouring classes. Identify the preconditions at the operation‘s initial state and the post conditions at the operation‘s final state.

32.12 Modelling an Operation contd.. Begin at the operation‘s initial state, specify the activities and actions that take place over time and render them in the activity diagram as their activity states and action states. Use branching as necessary to specify conditional paths and iteration. If this operation is owned by an active class, use forking and joining as necessary to specify parallel flows of control.

32.13 Activity Diagram for date to date : Log in of a subscriber   32.13 Activity Diagram for date to date : Log in of a subscriber