Uml
description
Transcript of Uml
![Page 1: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/1.jpg)
UML
Unified Modeling Language
![Page 2: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/2.jpg)
Use Case Diagram
System:something that performs a function (a piece or multiple pieces of software that performs some sort of function for its use)
the actor and the use cases are part of a single system
![Page 3: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/3.jpg)
Actors: something that uses our system (person, another system)The actor is the entity that initiates the use case.
An actor Use case
![Page 4: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/4.jpg)
Relationships:
Association is the communication path between the actor and a use case that is participates in.
Inclusion enables you to reuse one use case's steps inside another use case
![Page 5: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/5.jpg)
Extension
allows you to create a new use case by adding steps to an existing use case
![Page 6: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/6.jpg)
Generalization
use cases can inherit from one another. The child use case inherits behavior and meaning from the parent, and adds its own behavior.
wherever You can apply the child, you apply the parent. The generalization relationship can exist between
actors as well as use cases
![Page 7: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/7.jpg)
![Page 8: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/8.jpg)
![Page 9: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/9.jpg)
Class Diagram
Relationships:Two classes can relate to each other with a line and an association name.
A pointer that shows the direction of the association follows the association name.
![Page 10: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/10.jpg)
Multiplicity: Multiplicity allows us to indicate how many objects of one class relate to one object of another class.
![Page 11: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/11.jpg)
Roles:
The use of a role in a class diagram helps the reader to understand what the first class does for the second.
![Page 12: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/12.jpg)
Examination Web Site System
![Page 13: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/13.jpg)
![Page 14: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/14.jpg)
Selling System
![Page 15: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/15.jpg)
![Page 16: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/16.jpg)
The Elevator simulation
![Page 17: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/17.jpg)
Person riding the elevator to the second floor
![Page 18: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/18.jpg)
Person walking away from elevator
![Page 19: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/19.jpg)
![Page 20: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/20.jpg)
Use-case diagram for elevator simulation from user's perspective
Use-case diagram from the perspective of a Person.
![Page 21: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/21.jpg)
A more detailed level
Elevator controller
Floor button
Elevator buttonElevator motor
Door motorOpen door
close door
Move up
Move down
![Page 22: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/22.jpg)
Starting to model the Classes for the Elevator Simulation
![Page 23: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/23.jpg)
Classes with attributes
![Page 24: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/24.jpg)
Identifying Class Operations
An operation of a class is a service that the class provides to the clients (users) of that class.
![Page 25: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/25.jpg)
Verb phrases for each class in simulatorClass Verb phrases
Elevator moves to other floor, arrives at a floor, resets elevator button, rings elevator bell, signals its arrival, opens its door, closes its door
ElevatorShaft turns off light, turns on light, resets floor button
Person walks on floor, presses floor button, presses elevator button, rides elevator, enters elevator, exits elevator
Floor [none in the problem statement]
FloorButton requests elevator
ElevatorButton closes elevator door, signals elevator to move to opposite floor
FloorDoor signals person to enter elevator (by opening)
ElevatorDoor signals person to exit elevator (by opening), opens floor door, closes floor door
Bell [none in the problem statement]
Light [none in the problem statement]
ElevatorModel creates person
![Page 26: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/26.jpg)
Classes with attributes and operations
![Page 27: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/27.jpg)
االعتبار Use Case Diagramارسم بعين األخذ بعد التالي للتطبيقالتالية : المتطلبات
![Page 28: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/28.jpg)
![Page 29: Uml](https://reader036.fdocuments.in/reader036/viewer/2022081413/546763c7af79599b108b4ac6/html5/thumbnails/29.jpg)