You are on page 1of 15

UML Diagram

Unified Modeling Language, is a standardized modeling language used in software


engineering for visualizing, specifying, constructing, and documenting software systems.
A UML diagram, then, is a graphical representation of a system's structure, behavior, or
interactions using the elements and conventions defined by UML.
Scenario: Preparing UML Diagram for Donation Management System

1. USECASE DIAGRAM:
A use case diagram is a type of UML diagram that depicts the interactions
between different actors and the system itself. It is particularly useful for
capturing and visualizing the functional requirements of a system from the end-
user's perspective.

Figure: Use Case diagram for Donation Management System


Table 1.1 : Use Case Description (Make Donation)

Use-case Identifier UC1: Make Donation


Primary Actor Donor
Secondary Actor Admin
Description Donor should be able to donate
Pre-Condition Donor must be logged in
Post-Condition Database is updated
Failures The donation cannot be done

Table 1.2 : Use Case Description (View Donation Usage report)

Use-case Identifier UC2:View Donation Usage Report


Primary Actor Donor
Secondary Actor Admin
Description Donor must be able to view the donation
usage
Pre-Condition Donor must be logged in
Post-Condition Database is updated
Failures Donation report cannot be viewed

Table 1.3 : Use Case Description (View Events)

Use-case Identifier UC3:View Events


Primary Actor Volunteer
Secondary Actor Admin
Description Volunteers must be able to view events
Pre-Condition Donor must be logged in
Post-Condition Database is updated
Failures Events cannot be viewed
Table 1.4 : Use Case Description (Manage Donation)

Use-case Identifier UC4:Manage Donation


Primary Actor Admin
Secondary Actor Donor
Description Admin should be able to manage donations
Pre-condition Trainer information should be gain
Post-Condition Admin must be logged in
Failures Database is not updated

Table 1.6 : Use Case Description (Upload Donation report)

Use-case Identifier UC6: Upload Donation report


Primary Actor Admin
Secondary Actor Donor
Description Admin should be able to upload donation report
Pre-condition The admin must be logged in
Post-Condition Database is updated
Failures Trainer is not deleted

Table 1.7 : Use Case Description (View Registration)

Use-case Identifier UC7: View Volunteer Registration


Primary Actor Admin, Volunteer
Secondary Actor Admin, Volunteer
Description Admin and Volunteer should be able
to view registration information.
Pre-condition Volunteer should fill registration
form
Post-Condition Database is updated
Failures Database is not updated
Table 1.8 : Use Case Description (Make Payment)

Use-case Identifier UC8: Make Payment


Primary Actor Donation
Secondary Actor Admin
Description Student should be able to make
payment for donation
Pre-condition Donor should fill payment form
Post-Condition Database is updated
Failures Database is not updated

Table 1.9 : Use Case Description (View Payment Detail)

Use-case Identifier UC9: View Payment Detail


Primary Actor Admin, Donor
Secondary Actor Admin, Donor
Description Admin and Donor should be able to
view payment information.
Pre-Condition Donor should donate first
Post-Condition Database is updated
Failures Database is not updated

2. Domain Object Model:


A Domain Object Model (DOM) is a conceptual representation of the entities and
their relationships within a specific problem domain. It is a fundamental part of
domain-driven design, a software development approach that focuses on
understanding and modeling the real-world problem domain as a basis for creating
software systems.

Figure: Domain Object Model for Donation Management System

3. Conceptual Class:
A conceptual class is a fundamental concept in object-oriented analysis and
design, which is a representation of a real-world concept or entity within a
problem domain.

Figure: Conceptual Class for Donation Management System

4. Descriptive Class:
Descriptive class is used in the context of providing detailed descriptions or
explanations for classes within a system. In software development, classes are
typically part of object-oriented design, and they encapsulate data and behavior
related to a particular entity or concept.

Figure: Descriptive Class for Donation Management System

5. Component Diagram:
A component diagram in the Unified Modeling Language (UML) is a type of
diagram that illustrates the organization and relationships among components
within a system. In software engineering, a component represents a modular and
replaceable part of a system that encapsulates its implementation and provides a
well-defined interface.

Figure: Component Diagram for Donation Management System


6. Activity Diagram:
An activity diagram is a type of Unified Modeling Language (UML) diagram used
to represent the flow of activities and actions within a system or a specific
business process. It provides a visual representation of the steps, actions, and
decisions involved in a particular work flow or scenario.

Figure: Activity Diagram for Donation Management System


7. Sequence Diagram:
A sequence diagram is a type of Unified Modeling Language (UML) diagram that
illustrates the interactions and messages exchanged among different components
or objects within a system over a specific period of time. Sequence diagrams are
commonly used in software engineering to visually represent the dynamic
behavior of a system, particularly focusing on the sequence of messages
exchanged between objects.

Figure: Sequence Diagram for Donation Management System


8. Deployment Diagram:
A deployment diagram in the Unified Modeling Language (UML) is a type of
diagram that visualizes the physical deployment of software components and
artifacts on hardware nodes in a distributed system. It provides a high-level view
of how software and hardware elements are connected and distributed across
different nodes, such as servers, workstations, or devices, in a networked
environment.

Figure: Deployment Diagram for Donation Management System


9. State Machine Diagram:
A state machine diagram is a type of Unified Modeling Language (UML) diagram
that represents the dynamic behavior of a system in terms of states, transitions
between states, and events that trigger these transitions.

Figure: State Machine Diagram for Donation Management System


3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E
%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell
%20id%3D%222%22%20value%3D%22Donor%22%20style%3D%22rounded
%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3B%22%20vertex%3D
%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22160%22%20y%3D%22210%22%20width%3D%22110%22%20height%3D
%2240%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%223%22%20value%3D%22Payment%22%20style%3D%22rounded
%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3B%22%20vertex%3D
%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22510%22%20y%3D%22210%22%20width%3D%22110%22%20height%3D
%2240%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%224%22%20value%3D%22Donation%22%20style%3D
%22rounded%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3B%22%20vertex
%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22510%22%20y%3D%22340%22%20width%3D%22110%22%20height%3D
%2240%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%225%22%20value%3D%22%22%20style%3D%22endArrow
%3Dnone%3Bhtml%3D1%3Brounded%3D0%3BentryX%3D0%3BentryY
%3D0.5%3BentryDx%3D0%3BentryDy%3D0%3B%22%20edge%3D
%221%22%20target%3D%223%22%20parent%3D%221%22%3E
%3CmxGeometry%20width%3D%2250%22%20height%3D
%2250%22%20relative%3D%221%22%20as%3D%22geometry%22%3E
%3CmxPoint%20x%3D%22270%22%20y%3D%22230%22%20as%3D
%22sourcePoint%22%2F%3E%3CmxPoint%20x%3D%22450%22%20y%3D
%22310%22%20as%3D%22targetPoint%22%2F%3E%3CArray%20as%3D
%22points%22%3E%3CmxPoint%20x%3D%22270%22%20y%3D%22230%22%2F
%3E%3C%2FArray%3E%3C%2FmxGeometry%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%226%22%20value%3D%22%22%20style%3D%22endArrow
%3Dnone%3Bhtml%3D1%3Brounded%3D0%3BentryX%3D0.5%3BentryY
%3D1%3BentryDx%3D0%3BentryDy%3D0%3B%22%20edge%3D
%221%22%20source%3D%224%22%20target%3D%223%22%20parent%3D
%221%22%3E%3CmxGeometry%20width%3D%2250%22%20height%3D
%2250%22%20relative%3D%221%22%20as%3D%22geometry%22%3E
%3CmxPoint%20x%3D%22400%22%20y%3D%22360%22%20as%3D
%22sourcePoint%22%2F%3E%3CmxPoint%20x%3D%22560%22%20y%3D
%22250%22%20as%3D%22targetPoint%22%2F%3E%3C%2FmxGeometry%3E
%3C%2FmxCell%3E%3CmxCell%20id%3D%227%22%20value%3D
%221%22%20style%3D%22text%3Bhtml%3D1%3BstrokeColor%3Dnone
%3BfillColor%3Dnone%3Balign%3Dcenter%3BverticalAlign
%3Dmiddle%3BwhiteSpace%3Dwrap%3Brounded%3D0%3B%22%20vertex
%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22270%22%20y%3D%22200%22%20width%3D%2260%22%20height%3D
%2230%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%228%22%20value%3D%22*%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22450%22%20y%3D
%22200%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%229%22%20value%3D%22Admin%22%20style%3D%22rounded
%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3B%22%20vertex%3D
%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22160%22%20y%3D%22330%22%20width%3D%22110%22%20height%3D
%2240%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%2210%22%20value%3D%22%22%20style%3D%22endArrow
%3Dnone%3Bhtml%3D1%3Brounded%3D0%3BentryX%3D0%3BentryY
%3D0.5%3BentryDx%3D0%3BentryDy%3D0%3B%22%20edge%3D
%221%22%20target%3D%224%22%20parent%3D%221%22%3E
%3CmxGeometry%20width%3D%2250%22%20height%3D
%2250%22%20relative%3D%221%22%20as%3D%22geometry%22%3E
%3CmxPoint%20x%3D%22270%22%20y%3D%22360%22%20as%3D
%22sourcePoint%22%2F%3E%3CmxPoint%20x%3D%22320%22%20y%3D
%22310%22%20as%3D%22targetPoint%22%2F%3E%3C%2FmxGeometry%3E
%3C%2FmxCell%3E%3CmxCell%20id%3D%2211%22%20value%3D%22*
%22%20style%3D%22text%3Bhtml%3D1%3BstrokeColor%3Dnone
%3BfillColor%3Dnone%3Balign%3Dcenter%3BverticalAlign
%3Dmiddle%3BwhiteSpace%3Dwrap%3Brounded%3D0%3B%22%20vertex
%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22560%22%20y%3D%22310%22%20width%3D%2260%22%20height%3D
%2230%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell
%20id%3D%2212%22%20value%3D%221%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22610%22%20y%3D
%22215%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2213%22%20value%3D%221%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22270%22%20y%3D
%22330%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2214%22%20value%3D%22*%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22510%22%20y%3D
%22310%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2215%22%20value%3D%22makes%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22370%22%20y%3D
%22190%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2216%22%20value%3D%22For%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22570%22%20y%3D
%22280%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2217%22%20value%3D%22manages%22%20style%3D%22text%3Bhtml
%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign
%3Dcenter%3BverticalAlign%3Dmiddle%3BwhiteSpace%3Dwrap
%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22395%22%20y%3D
%22330%22%20width%3D%2260%22%20height%3D%2230%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3C%2Froot%3E%3C
%2FmxGraphModel%3E

You might also like