Presentation is loading. Please wait.

Presentation is loading. Please wait.

UML an overview Compiled by:Dr. Avi Rosenfeld Based on:

Similar presentations


Presentation on theme: "UML an overview Compiled by:Dr. Avi Rosenfeld Based on:"— Presentation transcript:

1 UML an overview Compiled by:Dr. Avi Rosenfeld Based on:
חומר מד"ר דיין

2 UML Topics 1. The general picture 2. Use Cases 3. Class Diagrams
4. Sequence Diagram 5. State Chart Diagram

3 General Picture: 4+1 view
Use Case view Understandability Logical View Functionality Process View Performance Scalable Throughput Implementation View Software management Deployment View System topology Delivery Installation

4

5 UML Diagrams UML includes diagrams for use cases
static structures (class and object diagrams) behavior (state-chart, activity, sequence and collaboration diagrams) implementation (component and deployment diagrams). For data modeling purposes UML uses class diagrams, to which constraints in a textual language may be added

6 Diagrams in UML A Diagram is the graphical presentation of a set of elements, most often rendered as a connected graph of things and relationships. UML includes 9 such diagrams. 1. Class Diagram. V 2. Object Diagram. V 3. Use Case Diagram. V 4. Sequence Diagram. V 5. Collaboration Diagram. 6. State Chart Diagram. V 7. Activity Diagram. 9. Deployment Diagram.

7 Class Diagrams Class Diagrams describe the static structure of a system, or how it is structured rather than how it behaves. These diagrams contain the following elements. Classes, which represent entities with common characteristics or features. These features include attributes, operations and associations. Associations, which represent relationships that relate two or more other classes where the relationships have common characteristics or features. These attributes and operations.

8 Class Diagram Skill Name: String Desc: String Create(): Skill
setName(): (Name:String) getName(): String setDesc(): (Desc:String) getDesc(): String destroy()

9 An Object and Object Instances
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

10 Classes and Objects PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

11 Class Hierarchy PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

12 Object Diagrams Object Diagrams describe the static structure of a system at a particular time. Whereas a class model describes all possible situations, an object model describes a particular situation. Object diagrams contain the following elements: Objects, which represent particular entities. These are instances of classes. Links, which represent particular relationships between objects. These are instances of associations. .

13 דוגמא של כספומט

14 Class Diagram for Manage Appointment
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

15 תלות בין אובייקטים טרמינולוגיה של יחס יחס בשם Association
אפשר לתת שם ל-association. כאשר נותנים שם ל-association, יש גם כיוון: ראה את השם Executes. אפשר גם לציין תפקיד role name . דוגמא

16 סוגים יש יחס מושג Multiplicity
ערכים שמופיעים בקצוות הקו המקשר שתי מחלקות. כל ערך אומר כמה אובייקטים מכל מחלקה משתתפים ב- association .

17 Multiplicity PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

18 Composition יחס בשם Aggregation רשימת היחסים
יחס זה הוא יחס חלש. הוא ממודל בעזרת hollow diamond (יהלום חלול). רשימת היחסים היחס One-to-One relationship היחס One-to-Many relationship היחס Many-to-One relationship

19 Aggregation

20 Aggregation and Generalization Associations
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

21 Composition

22 Use case diagrams Use Case Diagrams
Use Case Diagrams describe the functionality of a system and users of the system. These diagrams contain the following elements: Actors, which represent users of a system, including human users and other systems. Use Cases, which represent functionality or services provided by a system to users.

23 High Level Use Case Diagram
Manage Resources Resource Manager Manage Projects Project Manager System Admin System Administrator

24 Unassign Skill from Resource Assign Skill from Resource
Managing Resources Use Case Diagram Add Skill Remove Skill Find Skill Update Skill Resource Manager Add Resource Find Resource Remove Resource Update Resource Unassign Skill from Resource Assign Skill from Resource

25 Actors

26 Use Case PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

27 Use-Case Diagram for Specialized Actor
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

28 Extends or Uses Associations
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

29 Steps in Creating the Use Case Diagram
1. Identify use cases 2. Draw the system boundary 3. Place use cases on the diagram Group use cases into packages Add special use case associations 4. Identify the actors 5. Add associations PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

30 Sequence Diagrams Sequence Diagrams describe interactions among classes. These interactions are modeled as exchange of messages. These diagrams focus on classes and the messages they exchange to accomplish some desired behavior. Sequence diagrams are a type of interaction diagrams. Sequence diagrams contain the following elements: Class roles, which represent roles that objects may play within the interaction. Lifelines, which represent the existence of an object over a period of time. Activations, which represent the time during which an object is performing an operation. Messages, which represent communication between objects.

31 Sequence Diagram

32 Sequence Diagram PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

33 Steps in Creating a Sequence Diagram
1. Identify classes 2. Add actions 3. Place lifeline and focus of control PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

34 Syntax for Sequence Diagram
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

35 Statechart Diagrams Statechart (or state) diagrams describe the states and responses of a class. Statechart diagrams describe the behavior of a class in response to external stimuli. These diagrams contain the following elements: States, which represent the situations during the life of an object in which it satisfies some condition, performs some activity, or waits for some occurrence. Transitions, which represent relationships between the different states of an object.

36 Sequence Diagram PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

37 State Chart Diagram

38 Statechart Concepts A dynamic model showing changes of state of a single class over time in response to events along with its responses and actions Typically not used for all classes, but just to help simplify the design of algorithms for methods of complex classes PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

39 Statechart Diagram for a Hospital Patient
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

40 Syntax for Statechart Diagram
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

41 The Life of an Order PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

42 Steps for Creating a Statechart Diagram
1. Identify the states 2. Identify the transitions PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

43 Statechart Diagram for an Order
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.


Download ppt "UML an overview Compiled by:Dr. Avi Rosenfeld Based on:"

Similar presentations


Ads by Google