Top Banner
UML- Static modeling and Dynamic Modeling
13
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dynamic and Static Modeling

UML- Static modeling and Dynamic Modeling

Page 2: Dynamic and Static Modeling

What is Static Modeling?

Static Modeling is used to represent the static constituents of a Software such as :

1.Classes,2.Objects,3.Interfaces and4.Their relationship with each other.

Page 3: Dynamic and Static Modeling

Diagrams used in Static Modeling

Static Modeling include two diagrams

1.Class Diagram – these diagrams are used to represent the static elements such as :

a. Classes,b. Attributes andc. Relationship between classes

2.Object Diagram – these diagrams are used to represent the instance of the static elements and it also represent the properties of particular instance of a class.

Page 4: Dynamic and Static Modeling

Class DiagramsThe class Diagram has three compartment

1. First compartment represents the name of the class.2. Second compartment represents the attributes of the class.3. Third compartment represents operation of the class.

Class Name

Attributes of the class

Functions/Methods of the class

Class Diagram

Page 5: Dynamic and Static Modeling

Object DiagramThese diagram are used to represent the properties of a particular instance of a class, these diagrams are in rectangular shape include two compartments.

1. First compartment represents the name of the Object and the class.

2. Second compartment represents the attributes and the values of the object.

Object Name : Class Name

Attribute Name=Current Value

Object Diagram

Page 6: Dynamic and Static Modeling

Relationships between class and object DiagramAll the elements in any software system are connected to each other either physically or logically. So the relationship among classes and object are divided into six forms :

• Association,• Dependency,• Generalization,• Realization,• Recursive aggregation and• Qualified association

Page 7: Dynamic and Static Modeling

What is Dynamic Modeling?

Dynamic Modeling is used to represent the behavior of the static constituents of a software , here static constituents includes, classes , objects, their relationships and interfaces

Dynamic Modeling also used to represents the interaction, workflow, and different states of the static constituents in a software.

Page 8: Dynamic and Static Modeling

Diagrams used in Dynamic ModelingDynamic Modeling include three diagrams

1.Interaction Diagram 2.Object Diagram3.Activity Diagram

Dynamic Modeling

Interaction Diagram Object Diagram Activity Diagram

Sequence Diagram

Communication Diagram

Page 9: Dynamic and Static Modeling

Interaction Diagram

Interaction Diagram –The interaction diagrams are used to visualize the interactive behaviour of the system.So to visualize the interactive behaviour of the dynamic system there's a need to use :

• Sequence diagram- The sequence diagram captures the time sequence of message flow from one object to another

• Collaborative/Communication diagram- Collaboration diagram describes the organization of objects in a system taking part in the message flow.

Page 10: Dynamic and Static Modeling

Sequence Diagram

Sequence Diagram –The sequence diagram captures the time sequence of message flow from one object to another

Page 11: Dynamic and Static Modeling

Communication Diagram

Collaborative/Communication diagram- Collaboration diagram describes the organization of objects in a system taking part in the message flow.

Page 12: Dynamic and Static Modeling

State machine Diagram

State machine diagram- State machine represents the various states of an object that change in response to events during its lifetime. Here, a state refers to the condition of an object during its existence in memory.

• The state of the object would not change until there’s no relative event occurs.

• The object have only two statea) Initial state (starting state)-Represented by a black circleb) Final state (completion of execution)- Represented by a

black circle surrounded by a ring.

Page 13: Dynamic and Static Modeling

Activity Diagram

Activity diagram- Activity diagrams are not only used for visualizing dynamic nature of a system but they are also used to construct the executable system by using forward and reverse engineering techniques.Activity diagram also considered as flow chart just because of visual style but it is not an Flow-Chart.