Sachin Se File
Sachin Se File
Sachin Se File
ues.1)Define UML.
Q
Ans.) Unified Modeling Language (UML) is a standardizedgeneral-purpose modeling
language in the field of software engineering. It provides a set of graphical notations
for representing and visualizing the design of software systems. UML was developed
to help system designers, architects, and developers to communicate and
understand the structure, behaviour, and interactions of complex systems.
● A n entity represents a thing that can have data stored about it. It could be a
physical object (like a car), a concept (such as an address), or an event (like
student enrollment in a course).
● Entities are usually depicted as rectangles on an ERD, with the entity name
written inside the rectangle
● Representation:
Relationship:
● A relationship defines how two entities are related to each other. It represents
the connections between entities.
● Relationships are represented as lines connecting two entities on the ERD.
These lines often have labels (such as “enrolls,” “registers,” or “completes”) to
describe the relationship.
● Representation:
Attribute:
xternal entities represent entities outside the system that interact with it. These can be
E
users, other systems, or data sources. They are represented by squares or rectangles.
rocesses:
P
Processes represent actions or transformations performed on data within the system. They
are depicted by circles or ovals.
ata Stores:
D
Data stores represent where data is held within the system. They can be databases, files, or
any other storage medium. Data stores are represented by rectangles with two parallel lines
at the top and bottom.
ata Flows:
D
Data flows represent the movement of data between processes, data stores, and external
entities. They are represented by arrows showing the direction of data flow.
Use Case Diagram is a graphical representation of the interactions between users (actors)
A
and a system, showcasing the various ways the system can be used. It helps in identifying
and organizing system functionalities from the perspective of users.
ctors:Actors represent the users or external systemsinteracting with the system being
A
modeled. They are depicted by stick figures or simple shapes.
se Cases:Use cases represent specific functionalitiesor tasks that users can perform
U
within the system. They are represented by ovals.
ssociation:A line connecting an actor toa use case, indicating that the actor is
A
involved in performing that use case.
Use Case Diagrams are widely used in software development for several reasons:
equirements Analysis:Use Case Diagrams help in eliciting and understanding system
R
requirements by capturing user interactions and system functionalities.
esign Validation:Use Case Diagrams help in validatingthe proposed design of the system
D
by ensuring that all user interactions and system functionalities are properly captured.
asis for Testing:They provide a basis for definingtest cases and scenarios, ensuring that
B
the system is tested thoroughly against user requirements.
ystem Architecture Design:Use Case Diagrams aidin designing the system architecture by
S
identifying major system components and their interactions with users.
4.Activity Diagram
■ T
ransitions:Arrows connecting activities, indicatingthe flow
from one activity to another.
■ D
ecision Points (Decisions):Represented by diamonds.They
denote choices or conditions that determine the path the
process takes.
■ F
orks and Joins:Forks split the flow into parallelpaths, while
joins merge them back together.
■ S
wimlanes:These separate responsibilities or roleswithin the
system. Each swimlane contains activities related to a specific
actor or component.
■ S
tart and End Nodes:Indicate the beginning and endof the
process.
ere’s a simple example of an activity diagram for a word processing application:
H
!Word Processor Activity Diagram
○ T he steps include opening the word processing package, creating a file,
typing the document, handling graphics or spreadsheets, saving the file,
printing a hard copy, and finally exiting the application.
. Usage in Software Development:
3
○ Activity diagrams are valuable in software development for several
reasons:
■ Workflow Modelling:They help model how activitiesare
coordinated, especially when there are overlapping or parallel
activities.
■ Use Case Coordination:When multiple use cases interact,
activity diagrams show how they relate to one another.
■ Business Workflows:They identify candidate use casesby
examining business workflows.
■ Pre- and Post-Conditions:Activity diagrams definethe context
(pre- and post-conditions) for use cases.
■ Object Operations:They model complex workflows relatedto
operations on objects.
5.Sequence Diagram
equence Diagram
S
a. Define the Diagram:
A Sequence Diagram is a type of interaction diagram that shows how objects interact in a
particular sequence over time to accomplish a specific task or scenario. It illustrates the
flow of messages between objects or components within a system and is particularly useful
for modelling the dynamic behaviour of systems, especially during runtime.
. Define the components of the diagram with pictorial representation with each
b
explanation:
ctor:An actor represents an external entity (suchas a user or another system) that
A
interacts with the system. In sequence diagrams, actors are usually depicted as stick figures
or simple shapes.
ifeline:A lifeline represents the existence of anobject over a period of time during the
L
sequence of interactions. It is depicted as a vertical dashed line extending from the object
down the sequence diagram.
ptional Fragment:An optional fragment representsa condition or alternative flow within the
O
sequence of interactions. It is depicted as a dashed box with a label indicating the condition.
6.class diagram
Class Diagram(CD)
. Define the components of the diagram with pictorial representation with each
b
explanation:
7.Object Diagram
Object Diagram
. Define the components of the diagram with pictorial representation with each
b
explanation:
bjects:Objects represent instances of classes inthe system. They are depicted by
O
rectangles with the object name and its attributes and values listed inside. Each
object is an instance of a specific class and may have associations with other
objects.
ebugging:They can be used for debugging purposesby representing the state of
D
objects during runtime, helping developers identify and diagnose issues in the
system.
esting:They can be used for test case design andvalidation by providing a detailed
T
view of object instances and their interactions, facilitating the identification of test
scenarios.
. Define the components of the diagram with pictorial representation with each
b
explanation:
I nitial State:The Initial State represents the startingpoint of the state machine. It is
depicted by a filled circle with an arrow pointing to the initial state.
inal State:The Final State represents the completionor termination of the state
F
machine. It is depicted by a filled circle surrounded by a larger circle.