UML Diagrams: Sequence Diagrams The Requirements Model, And The Dynamic .

1y ago
18 Views
2 Downloads
1.96 MB
58 Pages
Last View : 15d ago
Last Download : 3m ago
Upload by : Aarya Seiber
Transcription

UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU

Outline Review of previous Lecture The Requirements Model and the Analysis model Importance of Sequence Diagrams Rules of sequence diagrams Use Cases and Sequence Diagrams The System Sequence Diagrams The Sound Recorder Example The E-Commerce Example Other Examples

Review of Previous lecture Review of development phases and UML Development - Overview Introduction and importance of Use Case Diagrams Use Case Diagram Rules Examples of Use Case diagrams Requirements Elicitation Process 1. Identify Actors 2. Identify Scenarios 3. Identify Use Cases 4. Refine Use Cases 5. Identify Relationships between actors and Use Cases 6. Identify Initial Analysis Objects 7. Identify Non-functional requirements

Requirements, Use cases, and Scenarios

UML Development - Overview ACTORS USE CASES REQUIREMENTS ELICITATION Time SCENARIOS Requirements Engineering System/Object SEQUENCE DIAG. ANALYSIS ANALYSIS Specify Domain CLASS DIAGRAM(S) Objects StateChart DIAGRAMs OPERATION CONTRACTS Architectural Design SUBSYSTEM CLASS/ Include OR COMPONENT Design Objects DIAGRAMS DEPLOYMENT DIAGRAM DESIGN SEQUENCE DIAG. DESIGN DIAGRAMS Detailed DESIGN Object Design IMPLEMENTATION CHOICES IMPLEMENTATION IMPLEMENTATION Activity DIAGRAMS PROGRAM D A T A D I C T I O N A R Y

Where are we in the Requirements Engineering ? Requirements Engineering focus: elicitation and analysis

The Requirements Model and the Analysis Model The Requirements Elicitation Process Functional/ Nonfunctional Requirements Use Case Diagrams/ Sequence Diagrams (the system level) The Object-Oriented Static Analysis - Class Diagrams Analysis Dynamic Analysis - State Diagrams/ Process Refined Sequence Diagrams (The object level)

Outline The Requirements Model and the Analysis model Introduction to Requirements Engineering Importance of Sequence Diagrams Rules of sequence diagrams Use Cases and Sequence Diagrams The System Sequence Diagrams The Sound Recorder Example The E-Commerce Example Other Examples

Importance of Sequence Diagrams Depict object interactions in a given scenario identified for a given Use Case Specify the messages passed between objects using horizontal arrows including messages to/from external actors Time increases from Top to bottom

Rules of Sequence Diagrams Sequence Initiation Object1:C1 Object2:C2 Click Update Button updateStatus( ) User

Rules of Sequence Diagrams Identify objects needed to support use cases, determine sequence of internal events following the external initiating event Diagrams that are not initiated with an external actor represent only a partial sequence Partial sequence diagrams should clearly identify the actor initiated sequence diagrams from which they are launched

Example of Sequence Diagrams Notation

Rules of Sequence Diagrams Messages specified on interactions can be synchronous or asynchronous Object1:C1 Object2:C2 updateStatus( ) Object3:C3 Object1:C1 generateMessage( ) Object2:C2 calcRoute( ) route Implicit Returns Synchronous call Explicit Return

Rules of Sequence Diagrams Asynchronous call Object1:C1 {active} Object2:C2 {active} asynchronous Call () callBack ()

Rules of Sequence Diagrams Display operation names on call arrows factory: cmd pktCToCHeaderFactory c:client buildHeader( char * ) header header: cmd pktCToCCommandHeader «create»

Rules of Sequence Diagrams Compound and Simple Iteration :Subsystem :Resource :InterfaceContainer :Interface :Interface :DiscreteFD :DiscreteFD getInterfaceContainer() * [for all Interfaces in Container] { Find( ) setState( ) amMasterSI( ) * [for all Interfaces in Container] publishState() setOn( ) / setOff( )

Numbering the Sequence of Interactions

‘included’ sequence diagrams CMM:process target:process Application Process with CIF Command Request includes Process Command Request sequence Command Request Command Response Command Response includes Process Command Response sequence

Showing alternate behavior in a sequence diagram :CmdHandler :CmdValidater :CmdRouter issueCommand( ) validateCommand( ) User Application [if valid command] routeCommand( ) [if invalid command] logError( ) display(status) :EventLog :StatusDialog

Showing Extension Point :CmdHandler :CmdValidater :CmdRouter issueCommand( ) validateCommand( ) User Application routeCommand( ) Extension Point [invalid command] abort command request and send system message display( status) :StatusDialog

Rules of Sequence Diagrams Showing alternate behavior in a sequence diagram

Communication/Collaboration Diagrams They Specify similar information of interactions without the time axis

Specifying Timing Requirements CMM : process target : process User Application a: Command Create Transaction b: Command {b.receiveTime a.sendTime 50ms} c: Response Remove Transaction d: Response {d.receiveTime a.sendTime 1s}

Specifying Timing Requirements

Specifying Timing Requirements (Data rates in notes)

Specifying Timing Requirements: on interactions

Specifying Timing Requirements (ave and max)

Specifying Timing Requirements: (Timeout events)

Outline The Requirements Model and the Analysis model Introduction to Requirements Engineering Importance of Sequence Diagrams Rules of sequence diagrams Use Cases and Sequence Diagrams The System Sequence Diagrams The Sound Recorder Example The E-Commerce Example Other Examples

Recall Requirements Elicitation Process The process of requirements elicitation consists of the following steps 1. 2. 3. 4. 5. 6. 7. Identify Actors Identify Scenarios Identify Use Cases Refine Use Cases Identify Relationships between actors and Use Cases Identify Initial Analysis Objects Identify Non-functional requirements

Requirements Elicitation Process Step 4. Refining Use Cases System Sequence Diagrams System sequence diagrams establish the dynamic behavior in terms of key scenarios of the system for each use case The system sequence diagram models a scenario of the system interactions with the environment for a given use case Input/output events are clearly identified in each sequence diagram, The State of the system before and after each event are also depicted Different diagrams model scenarios with the normal flow of events and the abnormal flow of events

Sequence Diagrams and Use Cases System Sequence Diagram System: S Actor2 Actor1 S1 E11 List of Guide Words S2 E12 E21 List of Guide Words List of Guide Words S3 E31 The use case diagram Of system S List of Guide Words E41 List of Guide Words E22 List of Guide Words S4 E32 List of Guide Words The sequence diagram of use case UC1 for system S

UML Use Case Diagrams: The Requirements Model Case Study

UML Use Case Diagrams: The Requirements Model- System Seq. Diags. Digital Sound Recorder Case Study A sequence diagram displays object interactions arranged in a time sequence capturing a specific scenario of interactions in a use case supported by the system System Sequence Diagram for Play Massage Scenario: Normal Flow Time

Sys. Seq. Diagram for Alarm sounding while playing Massage Scenario

Sys. Seq. Diag. for Alarm while stand-by followed by No-power event.

The ATM Example

This is for the Banking Service Subsystem

Example: Use Case Diagram of the E-Commerce System Browse Catalog Process Delivery Order Confirm Shipment Customer Supplier Place Requisition Send Invoice Bank Confirm Delivery

Place Requisition Scenario

Confirm Delivery Scenario

Send Invoice Scenario

Confirm Shipment Scenario

Another Example: Pace Maker Use-Case model

Pace Maker Sys. Seq. Diag

Seq. Diag. at the object level (The Analysis Model)

A Simple Example of Using UML2 EXAMPLE: SATELLITE CONTROL SYSTEM

Example of Software Architecture Using UML2 SATELLITE CONTROL SYSTEM Architecture

A Simple Example Using UML2 SATELLITE CONTROL SYSTEM Architectural behavior

The sequence diagram of use case UC1 for system S Actor1 Actor2 System: S S 1 S 2 S 3 S 4 E 11 List of Guide Words List of Guide Words List of Guide Words List of Guide Words List of Guide Words E 21 E 12 E 22 E 32 E 41 E 31 List of Guide Words List of Guide Words The use case diagram Of system S. UML Use Case Diagrams: The Requirements Model

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

a time period. There are seven behavioral diagrams: Use Case Diagrams, Activity Diagrams, State Machine Diagrams, Communication Diagrams, Sequence Diagrams, Timing Diagrams and Interaction Overview Diagrams. UML 2 has introduced Composite Structure, Object, Timing and Interaction Overview diagrams.

UML unifies a number of visual design methodologies in software engineering, business modeling and management, database design, and others. UML Class diagrams are a subset of UML that is suitable for conceptual modeling of classes and databases Most used type of UML diagrams UML is also a graphic language for modeling dynamic aspects of a

Automatic test case generation from UML diagrams has re-ceived considerable attention from researchers [22, 7, 28]. There have been attempts to generate test cases from UML activity diagrams [16, 25]. Others have worked on UML state chart diagrams [4]. UML activity diagram-based test case gen-