Wa0028.
Wa0028.
• Things
• Relationships
• Diagrams
• Things
• Things are the most important building blocks of UML. Things can be −
• Structural
• Behavioral
• Grouping
• Annotational
UML - Use Case Diagrams
The sequence diagram represents the UML, which is used to visualize the The collaboration diagram also comes under the UML representation which is
sequence of calls in a system that is used to perform a specific functionality. used to visualize the organization of the objects and their interaction.
The sequence diagram are used to represent the sequence of messages that The collaboration diagram are used to represent the structural organization of
are flowing from one object to another. the system and the messages that are sent and received.
The sequence diagram is used when time sequence is main focus. The collaboration diagram is used when object organization is main focus.
The sequence diagrams are better suited of analysis activities. The collaboration diagrams are better suited for depicting simpler interactions
of the smaller number of objects.
Statechart Diagrams
• Statechart diagram is one of the five UML diagrams
used to model the dynamic nature of a system.
• They define different states of an object during its
lifetime and these states are changed by events.
• Statechart diagrams are useful to model the reactive
systems.
• Statechart diagram describes the flow of control from
one state to another state. States are defined as a
condition in which an object exists and it changes when
some event is triggered.
• The most important purpose of Statechart diagram is to
model lifetime of an object from creation to termination.
• Notation of a State Machine Diagram
• Following are the notations of a state machine diagram
enlisted below:
• Initial state: It defines the initial state (beginning) of a system, and it is
represented by a black filled circle.
• Final state: It represents the final state (end) of a system. It is denoted by a filled
circle present within a circle.
• Decision box: It is of diamond shape that represents the decisions to be made on
the basis of an evaluated guard.
• Transition: A change of control from one state to another due to the occurrence
of some event is termed as a transition. It is represented by an arrow labeled with
an event due to which the change has ensued.
• State box: It depicts the conditions or circumstances of a particular object of a
class at a specific point of time. A rectangle with round corners is used to
represent the state box.
Statechart diagrams
• Following are the main purposes of using Statechart
diagrams −
• To model the dynamic aspect of a system.
• To model the life time of a reactive system.
• To describe different states of an object during its life
time.
• Define a state machine to model the states of an object.
• Before drawing a Statechart diagram we should clarify
the following points −
• Identify the important objects to be analyzed.
• Identify the states.
• Identify the events.
UML Activity Diagram
a) A component
NODE
• Example of a Component Diagram
• A component diagram for an online shopping system is
given below:
• The component diagram can be used for the followings:
1.To model the components of the system.
2.To model the schemas of a database.
3.To model the applications of an application.
4.To model the system's source code.
UML Deployment Diagram
Following deployment diagram represents the working of HTML5 video player in the browser:
Deployment diagrams
• Deployment diagrams can be used for,
1.Modeling the network topology of a system.
2.Modeling distributed systems and networks.
3.Forward and reverse engineering processes.
Organization Diagrams
• Organization Diagrams
• Organization diagrams are an extension of systems
diagrams that are modified so that they can be used to
describe the basic structure of an organization, the
relationship of the organization to its external
environment, and the relationships among the
departmental units within the organization.
Organization Diagrams