UML Elearning
UML Elearning
UML Elearning
the artifacts of software systems. It is also used for business modeling and other non-
software systems.
The features of UML are as follows:
• Represents a collection of best engineering practices that have proven successful
in the modeling of large and complex systems.
• It also offers a standard way to write blueprints of a system. It includes conceptual
things, such as business processes and system functions. It also offers concrete
things, such as programming language statements, database schema, and reusable
software components.
The two main components of a use case diagram are use cases and actors.
1. The use case:
Is an external view of the system that represents the action performed to
complete a task.
It also describes a sequence of actions that provides value to an actor.
2. An actor represents a user or another system that will interact with the
system that you are modeling.
• The illustration displays the relationship between actors and use cases.
To draw a use case diagram, start by listing all the users of the system. Then, think
from the user’s perspective and list all the functionalities a user might want a system
to provide.
A collaboration diagram illustrates the interaction between the objects by using a static
spatial structure. Numbering the messages indicates the sequence of messages. The UML
uses a decimal numbering scheme.
The components of a collaboration diagram are as follows:
• Links: It is represented by a continuous line between objects, and it indicates the
exchange of messages.
• Named objects
• Messages
An example for a collaboration diagram is displayed here.
The example diagram displayed here models the login part of an online banking system.
Logging in consists of entering a valid social security number, personal id number, and
then submitting the information for validation.
Logging in can be factored into four non-overlapping states: Getting SSN, Getting PIN,
Validating, and Rejecting. From each state comes a complete set of transitions that
determine the subsequent state.
In the given example,
• States are represented with the rounded rectangles.
• Transitions are represented by the arrows from one state to another.
• Events or conditions that trigger transitions are written beside the arrows.
• In the illustration, there are two self-transitions, one on Getting SSN and another
on Getting PIN.
• The initial state, that is, the black circle is a dummy to start the action.
• Final states are also dummy states that terminate the action.
The action that occurs as a result of an event or condition is expressed in the form of
action. While in its validating state, the object does not wait for an outside event to
trigger a transition. Instead, it performs an activity. The result of that activity determines
its subsequent state.
• An activity diagram is used to model a single operation of a business process.
• While a state chart diagram focuses attention on an object undergoing a process,
an activity diagram focuses on the flow of activities involved in a single process.
• The activity diagram shows how those activities depend on one another.
• It is used to describe a complicated algorithm.
• It is also used to model applications with parallel processes.
COMPONENT DIAGRAM
A component is as follows:
• A source code component
• A run-time component
• An executable component
DEPLOYMENT DIAGRAM
For example, the connections may represent direct hardware coupling line RS-232 cable.
An Ethernet connection may also represent indirect coupling, such as satellite-to-ground
communication.