Ch-2 UML Editted
Ch-2 UML Editted
Ch-2 UML Editted
1. Actor
2.Use case
3.System boundary
4. Relationship
⚫ Actor
⚫ What are the system tasks for each actor you have
identified?
⚫ Does the actor need to be informed about certain
occurrences in the system?
⚫ Will the actor need to inform the system about sudden,
external changes?
⚫ Does the system supply the business with the correct
behavior?
⚫ Can all features be performed by the use cases you have
identified?
⚫ What use cases will support and maintain the system?
⚫ What information must be modified or created in the
system?
System Boundary
⚫ It is shown as a rectangle.
⚫ It helps to identify what is external versus
internal, and what the responsibilities of the
system are.
⚫ The external environment is represented only
by actors.
Relationship
<<include>>
⚫ Include --------------------->
⚫ Association: communication between an
actor and a use case; Represented by a solid
line.
⚫ Generalization: relationship between one
general use case and a special use case
(used for defining special alternatives)
− Represented by a line with a triangular arrow
head toward the parent use case.
⚫ Include relationships insert additional behavior
into a base use case.
⚫ use cases that are included as parts of other
use cases.
⚫ Supports reuse of functionality.
⚫ The base use case is incomplete without the
included use case.
⚫ The included use case is mandatory not
optional.
⚫ Class Student {
− Course enrolls[4];
⚫ }
⚫ Class Course {
− Student have[];
⚫ }
OO Relationships: Composition
⚫ Composition: expresses a
relationship among instances of
related classes.
⚫ It is a specific kind of Whole-Part
relationship.
⚫ It expresses a relationship where
an instance of the Whole-class
has the responsibility to create
and initialize instances of each
Part class.
⚫ It may also be used to express a
relationship where instances of
the Part-classes have privileged
access or visibility to certain
attributes and/or behaviors
defined by the Whole-class.
OO Relationships:Aggregation
⚫ Aggregation: expresses a
relationship among instances of
related classes.
⚫ It is a specific kind of Container –
Containee relationship
⚫ It expresses a relationship where an
instance of the Container-class has
the responsibility to hold and
maintain instances of each
Containee-class that have been
created outside the Container-class.
⚫ used to express a more informal
relationship than composition
expresses.
⚫ is appropriate when Container and
Containees have no special access
privileges to each other.
Aggregation vs. Composition
⚫ Modem
⚫ Caching server
⚫ Server
⚫ The application is assumed to be a web-based
application, which is deployed in a clustered
environment using server 1, server 2, and server 3.
The user connects to the application using the
Internet. The control flows from the caching server to
the clustered environment.
⚫ Deployment diagrams can be used −
− To model the hardware topology of a
system.
− To model the embedded system.
− To model the hardware details for a
client/server system.
− To model the hardware details of a
distributed application.
− For Forward and Reverse engineering.
⚫ Deployment diagrams can be used −
− To model the hardware topology of a system.
− To model the embedded system.
− To model the hardware details for a
client/server system.
− To model the hardware details of a
distributed application.
− For Forward and Reverse engineering.