Uml

29
UML Unified Modeling Language

description

 

Transcript of Uml

Page 1: Uml

UML

Unified Modeling Language

Page 2: Uml

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

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

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

Extension

allows you to create a new use case by adding steps to an existing use case

Page 6: Uml

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
Page 8: Uml
Page 9: Uml

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

Multiplicity: Multiplicity allows us to indicate how many objects of one class relate to one object of another class.

Page 11: Uml

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

Examination Web Site System

Page 13: Uml
Page 14: Uml

Selling System

Page 15: Uml
Page 16: Uml

The Elevator simulation

Page 17: Uml

Person riding the elevator to the second floor

Page 18: Uml

Person walking away from elevator

Page 19: Uml
Page 20: Uml

Use-case diagram for elevator simulation from user's perspective

Use-case diagram from the perspective of a Person.

Page 21: Uml

A more detailed level

Elevator controller

Floor button

Elevator buttonElevator motor

Door motorOpen door

close door

Move up

Move down

Page 22: Uml

Starting to model the Classes for the Elevator Simulation

Page 23: Uml

Classes with attributes

Page 24: Uml

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

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

Classes with attributes and operations

Page 27: Uml

االعتبار Use Case Diagramارسم بعين األخذ بعد التالي للتطبيقالتالية : المتطلبات

Page 28: Uml
Page 29: Uml