Diagrams I CT 2622
Diagrams I CT 2622
Contents
Drawings and diagrams................................................................................................................................. 1
1 – Event list .................................................................................................................................................. 2
2 – Use case description ............................................................................................................................... 3
3 / 14 – Class diagrams / Domain model class diagrams .............................................................................. 6
16 – Generalization / specialization relationships ...................................................................................... 11
Whole part relationships ........................................................................................................................ 12
4 – Communication diagram ....................................................................................................................... 14
5 – use case diagram ................................................................................................................................... 17
6 – Activity Diagrams .................................................................................................................................. 24
7 – Sequence Diagram ................................................................................................................................ 29
8 – State machine diagram ......................................................................................................................... 41
9 – Entity relationship diagram ................................................................................................................... 53
12 – UML interaction diagram .................................................................................................................... 61
13 – CRC cards............................................................................................................................................. 71
1 – Event list
Definition:
Description:
Example:
How To:
Brief use case description - often one-sentence description that provides a quick
overview of a use case
Use case - A use case is a methodology used in system analysis to identify, clarify,
and organize system requirements.
Use case description - a textual model that lists and describes the processing
details for a use case
Example:
How To:
The first and second compartments are used to identify the use case and the specific scenario within
the use case (if needed) that is being documented.
The third compartment identifies the event that triggers the use case.
The fifth compartment identifies the actor or actors. (Actors are shown as stick figures on use case
diagrams.)
The sixth compartment identifies other use cases and the way they are related to this use case.
The seventh compartment identifies stakeholders who are interested parties other than specific actors.
The tenth compartment in the template describes the detailed flow of activities of the use case.
3 / 14 – Class diagrams / Domain model class diagrams
Definition:
Domain classes - classes that describes objects from the problem domain
The UML class diagram is used to show classes of objects for a system. One type
of UML class diagram that shows the things in the users’ problem domain is
called the domain model class diagram
camelBack or camelCase notation - when words are concatenated to form a single word and the first
letter of each embedded word is capitalized
Domain model class diagram - a class diagram that only includes classes from the problem domain
Association class - an association that is also treated as a class; often required in order to capture
attributes for the association
Example:
How To:
Class diagram
Multiplicity of association
Association class
16 – Generalization / specialization relationships
Inheritance - the concept that specialization classes inherit characteristics of the generalization class.
Abstract - class a class that only exists in a model so subclasses can inherit from it.
Example:
Whole part relationships
Definition:
Whole-part relationships - relationships between classes in which one class is a part or a component
portion of another class.
Composition - a type of whole-part relation-ship in which the component parts cannot exist as individual
objects apart from the total composition.
Example:
4 – Communication diagram
Definition:
Example:
How to:
.
5 – use case diagram
Definition: A UML use case diagram is the primary form of
system/software requirements for a new software program
underdeveloped. Use cases specify the expected behavior (what), and
not the exact method of making it happen (how). Use cases once
specified can be denoted both textual and visual representation
(i.e. use case diagram).
Use case diagram - the UML model used to illustrate use cases and their relationships to actors
«includes» relationship - a relationship between use cases in which one use case is stereotypically
included within the other use case
Example:
How To:
6 – Activity Diagrams
Definition:
Activity diagram - a UML diagram that describes user (or system) activities, the person or component
that completes each activity, and the sequential flow of these activities
Synchronization bar - an activity diagram component that either splits a control path into multiple
concurrent paths or recombines concurrent paths
Swimlane - an activity diagram component that divides the workflow activities into groups showing
which agent performs which activity
Example:
How To:
7 – Sequence Diagram
Definition:
lifeline, or object lifeline - the vertical line under an object on a sequence diagram to
show the passage of time for the object
State - a condition during an object’s life when it satisfies some criterion, performs some action, or waits
for an event
State machine diagram - a diagram showing the life of an object in states and transitions
Pseudostate - the starting point of a state machine diagram, indicated by a black dot
concurrency or concurrent states - the condition of being in more than one state at a time
concurrent paths when one or more states in a path are parallel to one or more states in another path
Example:
How To:
9 – Entity relationship diagram
Definition:
Data entities - the term used in ERD modeling to describe things about which the system needs to store
information
Entity-relationship diagram (ERD) a diagram consisting of data entities, their attributes, and their
relationships
Example:
How To:
12 – UML interaction diagram
Definition:
Example:
.
How To:
13 – CRC cards
Definition:
CRC cards - include a set of cards, with each card representing a class
CRC cards - a brainstorming and design technique for designing interactions in use cases by assigning
responsibilities and collaborations for classes
Example:
How To:
Steps: