Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:

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.
ESE Einführung in Software Engineering 7. Modeling Behaviour Prof. O. Nierstrasz.
© 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
Interaction Diagrams Activity Diagram State Machine Diagram
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.
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Activity Diagrams. What is Activity Diagrams?  Activity diagrams are a technique to describe procedural logic, business process, and work flow.  An.
Sequence Diagram. What is Sequence Diagram?  Sequence Diagram is a dynamic model of a use case, showing the interaction among classes during a specified.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Modern Systems Analysis and Design Fifth Edition Jeffrey A
SE-565 Software System Requirements More UML Diagrams.
Software Design Processes and Management
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
CS451 Introduction to Software Engineering Behavioral Modeling.
Unified Modeling Language
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.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
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.
Information System Design IT60105
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
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.
UML: State Chart Diagrams
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
Chapter 3: Introducing the UML
University of Southern California Center for Systems and Software Engineering 9/20/2010© USC-CSSE Activity Diagrams for Business Workflows and.
Modeling Object Lifecycles and State-Dependent Behavior ©SoftMoore ConsultingSlide 1.
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.
Kyung Hee University System Functional Model OOSD 담당조교 석사과정 이정환.
Activity Diagrams. Notation Activity1()cActivity2() 1. Activities 2. Transition.
Activity Diagram.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
Appendix 3 Object-Oriented Analysis and Design
Activity Diagrams.
State Machine Diagram.
Unified Modeling Language
Activity and State Transition Diagram
Activity Diagram.
Visit for more Learning Resources
State Machine Diagrams
UML State 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
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
CSC 422 Kutztown University Dr. Spiegel
UML State machine diagram
Process Modeling: Activity/Swimlane Diagrams
Week 12: Activity & Sequence Diagrams
Activity Diagrams.
BPMN - Business Process Modeling Notations
Activity diagram It supports visual representation of sequences of actions that target a certain result. May be built for one or many use cases or for.
Activity Diagrams for Business Workflows and Scenarios
Appendix 3 Object-Oriented Analysis and Design
Object-Oriented Analysis & Design
Presentation transcript:

Ch5: Software Specification

1 Dynamic modeling using UML  Static models:  Dynamic models:

2 Statechart diagrams  Objects have both behavior and state:  Some objects are more complicated than some other objects.

3 Statechart diagrams (contd..)  Depicts:  Known as:  External vs. internal events:  State:  Transition:  State-space explosion:

4 Notation for statechart diagrams State: Marks a mode of the object Indicated using a rectangle with rounded corners Name of the state is written inside the rectangle Activities that occur in the state may also be represented Indicate the invocation of methods in the state Some activities are performed upon entry, some upon exit and some continuously irrespective of the event which caused to transition to that state. State Activities

5 Notation for statechart diagrams State Entry: method1() Exit: method2() Ev1: method3() Ev2: Method4() Ev1/method3() Ev2/method4()

6 Notation for statechart diagrams (contd..) Transition: Marks the changing of object state Triggered by an internal or external event Represented by a directed arrow from the current state to the next state Event name written above, below or alongside the arrow Action indicates the name of the method that will be invoked upon reaching the next state [EventName] [Guard]/Action

7 Notation for statechart diagrams (contd..) Initial state: State of the object before any transitions State when instantiated Marked using a solid circle Only one initial state is allowed

8 Notation for statechart diagrams (contd..) Final state: End state Marks the destruction of the object Represented using a solid circle with a surrounding circle

9 Notation for statechart diagrams (contd..) Super State: Used when many transitions lead to a certain state Show all the transitions from each state to the given state Super state is used to show that all the states inside the super state transition to the given state State Action State Action

10 Generic statechart diagram State1 do/activity State2 do/activity State3 do/activity Event/[Condition] Event

11 Statechart diagram: Order entry system checking do/check item dispatching do/initiate delivery Waiting cancelled [Not all items checked]/ getNextItem [All items checked && Some items not in stock] Item received [Some item not in stock] delivered [Cancelled] [All items checked && All items available] shipped ItemList

12 Statechart diagram: Order entry system checking do/check item dispatching do/initiate delivery Waiting Cancelled Delivery Super state

13 Statechart diagrams  Hierarchical statechart diagrams:

14 Drawing statechart diagrams  Initial and final states:  Determine the intermediate states that the object can be in:  Identify the transitions:

15 Activity diagrams  Document workflows in a system  States:  Transitions:

16 Notation for activity diagrams Activity states: Mark an action by an object Represented using rounded rectangles Same notation as in the statechart diagram Action State

17 Notation for activity diagrams (contd..) Transition Upon completion of one activity state, processing moves to another activity state Transitions mark this movement Represented by a directed arrow

18 Notation for activity diagrams (contd..) Swimlanes: Divide activities according to objects Arrange the objects in the column format Activities by that object are placed in the column Objects at the top of the column, vertical bars separate the columns Customer

19 Notation for activity diagrams (contd..) Initial state: Marks the entry point into the diagram Notation is a solid circle Same as that of a statechart diagram Only one initial state

20 Notation for activity diagrams (contd..) Final state: Mark the end of the modeled workflow Multiple final states Represented using a solid circle surrounded by another circle Same as the statechart diagram

21 Notation for activity diagrams (contd..) Synchronization bar: Parallel activities Split processing (“fork”) or resume processing (“join”) Modeled as solid rectangles Multiple transitions going in and/or out

22 Notation for activity diagrams (contd..) Branch & merge: Represents conditional behavior or branching. Only one of the branches is executed. All branches are followed by a merge to indicate the end of the conditional behavior started by the branch. Represented by a diamond

23 Generic activity diagram Activity1 Activity2 Activity3 Activity4Activity5 Activity6 Fork Branch Merge Join End Start

24 Activity diagram for order processing system Receive order Send invoice Fill Order Overnight Delivery Regular Delivery Receive Payment Close order SalesAgent Stockroom