uml
DESCRIPTION
TRANSCRIPT
Unified Modeling Language
[UML]
•UML
•UML diagrams
•UML diagram classification
•Class diagrams
•Sequence diagrams
agenda
UML
Standard methodology language for specifying, visualizing, constructing, and documenting all the work products or artifacts of a software system.
the reasons behind modeling can be summed up in two words:
• readability – ( brings clarity – ease of understanding )
• reusability
MODEL
A model is a pattern of something to be made.
It’s a representation of something in the real world.
UML is . . .
•NOT a method or methodology.•does NOT indicate a particular
process.•NOT a programming language
UML diagrams1. use case 2. class3. sequence4. collaboration5. state 6. activity
7. component8. deployment9. entity-relationship
UML diagram classification
• Static• Dynamic• Implementation
• Static
• Dynamic
• Implementation
• use case
• class
• sequence
• collaboration
• state
• activity
• deployment
• component
use case dgms
• DESCRIBES the relationships and dependencies between a group of Use Cases and the Actors participating in the process.
• NOT suited to represent the design, and canNOT describe the internals of a system.
• It tells , what the system should do but do NOT — and canNOT — specify how this is to be achieved.
actor & useCase
• Actors is an external entity (outside of the system) that interacts with the system by participating (and often initiating) a Use Case.
• Actors do NOT represent the physical people or systems, but their role.
• UseCase descriptions explains the processes or activities that take place in the Use Case.
• It’s related to at least one actor.
• Has an initiator (i.e. an actor).
• Leads to a relevant result (a result with “business value”).
use case dgms contd . . .
class dgms
• Class defines the attributes and the methods of a set of objects.
• In UML, Classes are represented by rectangles, with the name of the class, and can also show the attributes and operations of the class in two other “compartments” inside the rectangle.
• + for public
• # for protected
• - for private
generalization
BASE
DERIVED
associationsEMPLOYEECOMPANY 1 1..
*
aggregation
WHEELCAR
composition
CHAPTERBOOK 1.. *
sequence dgms
• Shows the message exchange (i.e. method call) between
several Objects in a specific time-delimited situation.
• Objects are represented through vertical dashed lines, with
the name of the Object on the top. The time axis is also
vertical, increasing downwards, so that messages are sent
from one Object to another in the form of arrows with the
operation and parameters name.
States dgms
• Shows the different states of an Object during its life and the stimuli that cause the Object to change its state.
activity dgms
• It describes the sequence of activities in a system with the help of Activities. Activity Diagrams are a special form of State Diagrams, that only (or mostly) contains Activities.
EA diagram classification
Behavioral
Structural
Behavioral Diagrams
Portrays the behavioral features of a system or business function.
1)Activity Diagrams
2)Use Case Diagrams
3)State Machine Diagrams
4)Timing Diagrams
5)Sequence Diagrams
6)Communication Diagrams
7)Interaction Overview Diagrams
Structural Diagrams
Portrays the structural elements composing a system or function.
1)Class Diagrams
2)Composite Structure Diagrams
3)Component Diagrams
4)Deployment Diagrams
5)Object Diagrams
6)Package Diagrams
Class diagrams
Sequence diagrams
Merci