Академический Документы
Профессиональный Документы
Культура Документы
Q-1 what are the Elements of Use Case Diagrams explain in details.
Use case diagrams are used to gather the requirements of a system including internal and
external influences.
These requirements are mostly design requirements.
So when a system is analyzed to gather its functionalities use cases are prepared and
actors are identified.
1. Actor:
An actor describes any entity (or entities) that perform certain roles in a given system.
The different roles the actor represents are the actual business roles of users in a given
system.
An actor in a use case diagram interacts with a use case.
For example, for banking application, a customer entity represents an actor in the
application.
Similarly, the person who provides service at the counter is also an actor.
An actor is shown as a stick figure in a use case diagram depicted "outside" the system
boundary, as shown in the below figure.
2. Use case:
A use case in a use case diagram is a visual representation of separate business functionality
in a system.
As the first step in identifying use cases, you should list the discrete business functions in
your problem statement.
It provides the process of the system.
Each of these business functions can be classified as a potential use case.
A use case is shown as an ellipse in a use case diagram.
1
UNIT-3 OOAD SEM-4
3. System boundary:
A relationship between two use cases is basically a dependency between the two use
cases.
Defining a relationship between two use cases is the decision of the modeler of the use case
diagram.
Include:
When one use case is represent as using the functionality of another use case in a diagram, this
relationship between the use cases is named as an include relationship.
In an include relationship, a use case includes the functionality described in another use case as a part of
its process flow.
2
UNIT-3 OOAD SEM-4
Ex.: one would not confirm the patient record without making an appointment.
Extend:
In an extend relationship between two use cases, the child use case adds to the existing
functionality and characteristics of the parent use case.
An extend relationship is depicted with a directed arrow having a dotted shaft, similar to the
include relationship.
The stereotype "<<extend>>" identifies the relationship as an extend relationship.
The only relationship allowed between actors on use case diagram is Generalization.
This is useful in defining overlapping roles between actors.
3
UNIT-3 OOAD SEM-4
Class diagram is not only used for visualizing, describing and documenting
different part of a system but also for constructing executable code of the
software application.
The class diagram describes the attributes and operations of a class on the
system.
The class diagrams are generally used in the modeling of object oriented
systems because they are the only UML diagrams which can be drawing directly
with object oriented languages.
Purpose:
* Elements:
1. Class
2. Attribute
4
UNIT-3 OOAD SEM-4
3. Generalization
4. Association
An association indicates that objects of one class have a relationship with objects
of another class.
5. Multiplicity
A multiplicity allows for statements about the number of objects that are involved
in an association.
6. Aggregation
An aggregation is a special case of an association, It provide whole/part
relationship.
5
UNIT-3 OOAD SEM-4
Object diagrams are derived from class diagrams so object diagrams are
dependent upon class diagrams.
Object diagrams represent an example of a class diagram.
The basic concepts are similar for class diagrams and object diagrams.
The difference is that a class diagram represents an abstract model consisting
of classes and their relationships. But an object diagram represents an
instance at a particular moment which is concrete in nature.
Object diagrams are used to give a set of objects and their relationships as an
instance.
It means the object diagram is more close to the actual system behavior .the
purpose of the object diagram can be summarized as:
Object relationships of a system.
Static view of an interaction.
Understand object behavior and their relationship from practical
perspective.
6
UNIT-3 OOAD SEM-4
7
UNIT-3 OOAD SEM-4