REQ - Lecture 4
REQ - Lecture 4
REQ - Lecture 4
Lecture 4
Actor
Use Case Symbols
• Actor is a role, not an individual.
– Involved with the functioning of the system at
some basic level
– Represented by stick figures
• Use case represents a single system function.
– Represented as an eclipse
Use Case Symbols
• System boundary includes all the relevant use
cases.
– A boundary is the dividing line between the
system and its environment
– Use cases are within the boundary
– Actors are outside of the boundary
– Represented as a box
• It is presented as use case subject in the UML
standard.
Use Case Symbols
• Connection is an association between an actor
and a use case.
– Depicts a usage relationship
– Connection does not indicate data flow
– Actors are connected to use cases with lines
– Use cases are connected to each other with
arrows
Generalization
• Generalization in use case diagram
– Similar to generalization between classes in class
diagram.
• Two usages:
– Between actors
– Between use cases
Generalization
<<include>> and <<extend>>
• <<include>>
– In a system, certain actions may be repeated
– Such a general-purpose action can be written as a
separate use case and then be used by / contained
in other use cases
• <<extend>>
– An extend relationship extends a use case by
adding new behaviors or actions
– The extending use case has all the actions in the
original one, and some more
– Specialized use case extends the general use case
<<include>> relationship
• <<include>> can be used to decompose a use
case into smaller use cases.
• The source use case is incomplete without the
included use cases.
ACTIVITY DIAGRAM
Process Modeling: Activity Diagrams
• Activity Diagrams
– Show the conditional logic for the sequence of
system activities needed to accomplish a business
process.
– Clearly show parallel and alternative behaviors.
– Can be used to show the logic of a use case.
A simple activity diagram
for ordering pizza
Use Activity Diagrams to:
• Depict the flow of control from activity to
activity.
• Help in use case analysis to understand what
actions need to take place.
• Help in identifying extensions in a use case.
• Model work flow and business processes.
• Model the sequential and concurrent steps in
a computation process.
Basic notations for Activity Diagrams
Elements of Activity Diagrams
• Activity: a behavior that an object
carries out while in a particular state
• Branch: a diamond symbol
containing a condition whose results
provide transitions to different paths
of activities
• Merge: a circular symbol where
different paths converge
Elements of Activity Diagrams
• Fork: the beginning of parallel activities