Static modeling represents the static elements of software such as classes, objects, and interfaces and their relationships. It includes class diagrams and object diagrams. Class diagrams show classes, attributes, and relationships between classes. Object diagrams show instances of classes and their properties. Dynamic modeling represents the behavior and interactions of static elements through interaction diagrams like sequence diagrams and communication diagrams, as well as activity diagrams.
Static Modeling defines classes, objects, interfaces, and their relationships. It includes Class and Object Diagrams to illustrate properties and relationships.
Dynamic Modeling represents software behavior, including interactions and states through diagrams like Interaction, Sequence, and State Machine Diagrams.
Activity Diagrams visualize dynamic systems and assist in system construction using forward and reverse engineering techniques.
Static Modeling isused to represent the static constituents of a
Software such as :
1.Classes,
2.Objects,
3.Interfaces and
4.Their relationship with each other.
3.
Static Modeling includetwo 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.
4.
The class Diagramhas 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
5.
These diagram areused 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
6.
All the elementsin 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
7.
Dynamic Modeling isused 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.
Interaction Diagram –Theinteraction 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.
10.
Sequence Diagram –Thesequence diagram captures the time
sequence of message flow from one object to another
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.
13.
Activity diagram- Activitydiagrams 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.