class, sequence and uml model. has actors and use cases
TRANSCRIPT
![Page 1: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/1.jpg)
DiagramsClass, Sequence and UML Model
![Page 2: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/2.jpg)
Has actors and use cases
Use Case
![Page 3: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/3.jpg)
Actors - entities whose behavior appears in the "Actor's Actions" column,
*the entities whose behavior appears in the "System's Response" column are also actors
Use case - sequence of actions that provide something of measurable value to an actor
Actors /Use cases
![Page 4: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/4.jpg)
Example
![Page 5: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/5.jpg)
Use Case
![Page 6: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/6.jpg)
Example
![Page 7: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/7.jpg)
circle
Class Diagram
![Page 8: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/8.jpg)
UML Model
![Page 9: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/9.jpg)
A UML diagram that depicts:◦ interactions between objects.◦ how the business currently works by showing how
various business objects interact. Purpose:
1. Model flow of control2. Identify synchronization3. Illustrate typical scenarios
Sequence Diagram
![Page 10: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/10.jpg)
The focus is less on messages themselves and more on the order in which messages occur.
The diagram conveys this information along 2 dimensions: ◦ the vertical dimension shows, top down, the time
sequence of messages/calls as they occur, ◦ the horizontal dimension shows, left to right, the
object instances that the messages are sent to.
Elements
![Page 11: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/11.jpg)
Example I
Creating sequence diagram
![Page 12: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/12.jpg)
read them from top to bottom. As time increases, it depicts events
happening in the system, Also shows how various parts of the system
react to each other.
Steps
![Page 13: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/13.jpg)
Purchase order
Example
![Page 14: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/14.jpg)
MHC - system
![Page 15: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/15.jpg)
Encoding data sequence diagram
![Page 16: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/16.jpg)
ATM Sequence Diagram
![Page 17: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/17.jpg)
Sequence Diagram (Transaction)
![Page 18: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/18.jpg)
Creating a new event in calendar
Sequence diagram
![Page 19: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/19.jpg)
These illustrate the dynamic nature of a system by modeling the flow of control from activity to activity.
An activity represents an operation on some class in the system that results in a change in the state of the system.
Activity Diagram
![Page 20: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/20.jpg)
Example
![Page 21: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/21.jpg)
Another Example
![Page 22: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/22.jpg)
depict the various states that an object may be in and the transitions between those states.
State Diagram
![Page 23: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/23.jpg)
Define states – condition or situation Describe state – add more information on
each state Describe Transitions – join with arrows Define transition triggers – define events Define guard/Constraints – set constraints
on the transition triggers
Steps to draw state diagram
![Page 24: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/24.jpg)
State diagram for bank amount
Example
![Page 25: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/25.jpg)
Weather station state diagram
![Page 26: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/26.jpg)
The Deployment Diagram helps to model the physical aspect of an Object-Oriented software system.
It models the run-time configuration in a static view and visualizes the distribution of components in an application.
Generally, it involves modeling the hardware configurations together with the software components that lived on.
Deployment diagram
![Page 27: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/27.jpg)
For a simple reservation system
Example
![Page 28: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/28.jpg)
A Communication diagram models the interactions between objects or parts in terms of sequenced messages.
Communication diagrams represent a combination of information taken from Class, Sequence, and Use Case Diagrams describing both the static structure and dynamic behavior of a system.
Communication diagrams show which elements each one interacts with better, whereas, sequence diagrams show the order in which the interactions take place more clearly.
Collaboration/communication Diagram
![Page 29: Class, Sequence and UML Model. Has actors and use cases](https://reader031.vdocuments.us/reader031/viewer/2022020417/56649e385503460f94b28426/html5/thumbnails/29.jpg)
Example