Experiment No: 05 Aim: Theory:: What Is A USE Case Diagram?
Experiment No: 05 Aim: Theory:: What Is A USE Case Diagram?
Experiment No: 05 Aim: Theory:: What Is A USE Case Diagram?
Aim: Design USE case diagram, state diagram for given scenario.
Theory:
Actor
Someone interacts with use case (system
function).
Similar to the concept of user, but a user
can play different roles
Actor has a responsibility toward the
system (inputs), and Actor has
expectations from the system (outputs).
Use Case
System function (process - automated or Use Case
manual)
i.e. Do something
Each Actor must be linked to a use case,
while some use cases may not be linked to
actors.
Communication Link
Actors may be connected to use cases by
associations, indicating that the actor and
the use case communicate with one
another using messages.
Boundary of system
The system boundary is potentially the
System
entire system as defined in the
requirements document.
For example, for an ERP system for an
organization, each of the modules such as
personnel, payroll, accounting, etc.
Identifying Actors
Actors are external entities that interact with your system. It can be a person,
another system or an organization. In a banking system, the most obvious actor
is the customer. Other actors can be bank employee or cashier depending on
the role you’re trying to show in the use case.
Questions:
1. What is the Importance of Use Case Diagrams?
ANS :
ANS :
Yes , There is difference between use cases and functional
requirements because the use case diagrams are a graphical
representation of the systems requirements, whereas
functional requirements are in text form. Use cases can also
have text but the main focus is on the diagram itself,
whereas in functional requirements the focus is on the
written text.
Conclusion:
11
EXPERIMENT NO: 06
Theory:
What is a Sequence diagram?
A sequence diagram shows object interactions arranged in time
sequence. It depicts the objects and classes involved in the scenario
and the sequence of messages exchanged between the objects needed
to carry out the functionality of the scenario. Sequence diagrams are
sometimes called event diagrams or event scenarios. Sequence
diagrams are preferred by both developers and readers alike for their
simplicity.
12
Fig: Example of sequence diagram
Scenario:
1. Government wish to transfer subsidy to those farmer's bank
account having land less than 2 hectares.
a. Farmer needs to register themselves on a provided
website.
b. Farmer needs to upload required documents.
c. Inspection team inspects farmer document and land.
d. Government successfully transfers the subsidy in farmer's
bank account.
14
Questions:
15
2. Draw State diagram for given scenario.
16
2. Comparison between sequence diagram and state diagram.
ANS :
SEQUENCE DIAGRAM STATE DIAGRAM
CONCLUSION :
17
EXPERIMENT NO:07
Aim: Draw E-R diagr, DFD and create data dictionary for above system.
Theory:
What is Entity?
An entity is any object in the system that we want to model and
store information about. Entities are usually recognizable concepts,
either concrete or abstract, such as person, places, things, or events
which have relevance to the database.
Some specific examples of entities are Employee, Student, Lecturer .
ER Diagram Uses:
When documenting a system or process, looking at the system in
multiple ways increases the understanding of that system.
ERD diagrams are commonly used in conjunction with a data
flow diagram to display the contents of a data store.
18
weak entity is an entity that must defined by a
foreign key relationship with another entity as it
cannot be uniquely identified by its own
attributes alone.
Relationship
Relationships are represented by diamond-shaped box. Name of the
relationship is written inside the diamond-box. All the entities
(rectangles) participating in a relationship, are connected to it by a
line.
relationship.
11
0
one instance of an entity on the left and more than one
instance of an entity on the right can be associated with the
relationship. It depicts many-to-many relationship.
Advantages of ER Diagram:
Disadvantages of ER Diagram:
11
2
DFD Symbols:
There are four basic symbols that are used to represent a data-flow diagram.
Process
A process receives input data and produces output with a different
content or form. Processes can be as simple as collecting input data
and saving in the database, or it can be complex as producing a
report containing monthly sales of all retail stores in the northwest
region.
Every process has a name that identifies the function it
performs. The name consists of a verb, followed by a singular noun.
Example:
Apply Payment
Calculate Commission
Verify Order
Data Flow
A data-flow is a path for data to move from one part of the
information system to another. A data-flow may represent a single
data element such the Customer ID or it can represent a set of data
element (or a data structure).
Example:
Customer info (Last Name, FirstName, SS#, Tel #, etc.)
Order info (Ordered, Item#, Order Date, Customer, etc.).
Data Store
A data store or data repository is used in a data-flow diagram to
represent a situation when the system must retain data because one
or more processes need to use the stored data in a later time.
External Entity
11
3
It Is also known as actors, sources or sinks, and terminators, external
entities produce and consume data that flows between the entity and
the system being diagrammed. These data flows are the inputs and
outputs of the DFD.
0- level DFD:
1- level DFD:
2- level DFD:
11
5
Active Data Dictionary
If the structure of the database or its specifications change at any
point of time, it should be reflected in the data dictionary. This is
the responsibility of the database management system in which the
data dictionary resides.
The data dictionary base tables are the first objects created in
any Oracle database. They are created in the system tablespace
and must remain there. The data dictionary base tables store
information about all user-defined objects in the database.
Questions:
11
6
1. Draw the ER diagram for given scenario 1?
ANS :
11
7
2. Draw DFD diagram for given scenario 2?
ANS :
11
8
3. Create data dictionary for given scenario 1?
ANS :
NAME DATA REQUIRED MAX
TYPE FIELDS
ANS :
Data dictionaries are used to provide detailed information
about the contents of a dataset or database, such as the
names of measured variables, their data types or formats,
and text descriptions. A data dictionary provides a concise
guide to understanding and using the data. A data
dictionary contains metadata i.e. data about the database.
The data dictionary is very important as it contains
information such as what is in the database, who is
allowed to access it, where is the database physically
stored etc.
CONCLUSION:
After performing the practicle based on E-R diagram, DFD
and create data dictionary I learnt about ER diagram , DFD
diagram and creating data dictionary on the given scenario
and I am able to draw diagrams on given secenario
Theory:
Activity diagram:
Activity diagram is another important diagram in UML
to describe the dynamic aspects of the system.
Activity diagram is basically a flowchart to represent the
flow from one activity to another activity. The activity
can be described as an operation of the system.
The control flow is drawn from one operation to another.
This flow can be sequential, branched, or concurrent.
Activity diagrams deal with all type of flow control by
using different elements such as fork, join, etc
The basic purposes of activity diagrams are similar to
other four diagrams. It captures the dynamic behaviour
of the system. Other four diagrams are used to show the
message flow from one object to another but activity
diagram is used to show message flow from one activity
to another.
Fig: Activity Diagram
Questions:
ANS :
10 20 10 10 Total