Unit 2-Basic Behavioural Modelling
Unit 2-Basic Behavioural Modelling
Modelling
Use Cases
• A use case describes a set of sequences, in which each sequence
represents the interaction of the things outside the system (its actors)
with the system itself (and its key abstractions).
• It captures the intended behavior of the system (or subsystem, class,
or interface) without having to specify how that behavior is
implemented.
• A use case represents a functional requirement of your system as a
whole.
• A use case involves the interaction of actors and the system.
• It is represented as an ellipse.
• Every use case must have a name that distinguishes it from other use
cases: simple name and path name
Cont..
Actors
• Actor represents a coherent set of roles that users of use cases play
when interacting with these use cases.
• an actor represents a role that a human, a hardware device, or even
another system plays with a system
• Actors may be connected to use cases by association
Use Cases & Flow of Events
• Flow of events include how and when the use case starts and ends
when the use case interacts with the actors and what objects are
exchanged, and the basic flow and alternative flows of the behavior.
• The behavior of a use case can be specified by describing a flow of
events in text.
• There can be Main flow of events and one or more Exceptional flow
of events.
Use Cases and Scenarios
• A scenario is a specific sequence of actions that illustrates behavior.
• Scenarios are to use cases, as instances are to classes means that
scenario is basically one instance of a use case.
• For each use case, there will be primary scenarios and secondary
scenarios.
Use Cases and Collaborations
• Collaborations are used to implement the behavior of use cases with
society of classes and other elements that work together.
• It includes static and dynamic structure
Use Case Diagrams
• A use case diagram is a diagram that shows a set of use cases and
actors and their relationships.
• Use case diagrams commonly contain Use cases, Actors, Dependency,
generalization, and association relationships.
• Use case diagrams may contain packages, certain times instances of
use cases, notes and constraints.
• Apply use case diagrams to model the static use case view of a system
by modeling the context of a system and by modeling the
requirements of a system
Use case diagrams
• Figure shows the context of a credit card validation system, with an
emphasis on the actors that surround the system
Activity Diagrams