Dynamic and Static Modeling

40,441 views

Published on

Published in: Technology, Education

Dynamic and Static Modeling

  1. 1. Static Modeling is used to represent the static constituents of a Software such as : 1.Classes, 2.Objects, 3.Interfaces and 4.Their relationship with each other.
  2. 2. Static Modeling include two diagrams 1.Class Diagram – these diagrams are used to represent the static elements such as : a. Classes, b. Attributes and c. 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.
  3. 3. The 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
  4. 4. These 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
  5. 5. All 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
  6. 6. 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.
  7. 7. Dynamic Modeling include three diagrams 1.Interaction Diagram 2.Object Diagram 3.Activity Diagram Dynamic Modeling Interaction Diagram Object Diagram Activity Diagram Sequence Diagram Communication Diagram
  8. 8. 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.
  9. 9. Sequence Diagram –The sequence diagram captures the time sequence of message flow from one object to another
  10. 10. Collaborative/Communication diagram- Collaboration diagram describes the organization of objects in a system taking part in the message flow.
  11. 11. 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 state a) Initial state (starting state)-Represented by a black circle b) Final state (completion of execution)- Represented by a black circle surrounded by a ring.
  12. 12. 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.

×