Professional Documents
Culture Documents
Nified Odeling Anguage: Rajthilak S
Nified Odeling Anguage: Rajthilak S
Nified Odeling Anguage: Rajthilak S
Rajthilak S
GO TO USER ROLES PAGE
End user
Project Manager
System Engineer
Developer
Tester
Maintainer
Multidimensional Reality
Many Stakeholders
multiple views , multiple blueprints
GO TO USER ROLES PAGE
Models
A model plays the analogous role in software development that blueprints and
other plans (site maps, elevations, physical models) play in the building of a
skyscraper.
Modeling is the only way to visualize the design and check it against
requirements before one starts to code.
Models are also the vehicle for communication with various stake holders.
GO TO USER ROLES PAGE
What is UML?
used for business modeling and modeling of other non-software systems too
UML 2.0
GO TO USER ROLES PAGE
Evolution of UML
OMG
GO TO USER ROLES PAGE
Basic OO Terms
The domain is the actual world from which the problem comes.
Objects have things they know (attributes) and things they can do (behaviors
or operations).
Classes are the "blueprints" for objects. A class wraps attributes (data) and
behaviors (methods or functions) into a single distinct entity. Objects are
instances of classes.
GO TO USER ROLES PAGE
State
State
Class
Diagrams
Use
UseCase Diagrams
Use Case UseCase
Case
Diagrams
Diagrams State
State
Object
Use Case
Sequence Diagrams
Diagrams Diagrams
Diagrams
Diagrams
Diagrams Diagrams
Diagrams
Scenario
Scenario State
State
Collaboration
Diagrams Component
Diagrams
Diagrams
Diagrams Models Diagrams
Diagrams
Scenario
Scenario
Component
Component
Statechart
Diagrams Deployment
Diagrams
Diagrams
Diagrams
Diagrams Activity Diagrams
Diagrams
GO TO USER ROLES PAGE
Every use case diagram has actors, use cases, and communications.
GO TO USER ROLES PAGE
Introduction to UML
GO TO USER ROLES PAGE
Introduction to UML
GO TO USER ROLES PAGE
Introduction to UML
GO TO USER ROLES PAGE
Include Relationship
The behavior of the inclusion use case is common to two or more use cases.
The result of the behavior that the inclusion use case specifies, not the behavior itself, is
important to the base use case.
GO TO USER ROLES PAGE
Introduction to UML
GO TO USER ROLES PAGE
CLASS DIAGRAM
Structural overview of a system by showing its classes and the relationships
among them
Static diagrams
Static relations:
Associations
Subtypes
Static structure:
Attributes
Operations
Created along with use case diagrams
CLASS DIAGRAM
Symbol Access
+ public
- private
# protected
GO TO USER ROLES PAGE
Class Operations
Operations are normally called functions, but they are inside a class and can be
applied only to objects of that class.
Class-Association
The association has a name - the descriptive term, often a verb, for the
association.
Each association has two association ends; each end is attached to one of the
classes in the association. An end can be explicitly named with a label. This
label is called a role name (association ends are often called roles).
GO TO USER ROLES PAGE
Reflexive Associations
subdirectory 2 0..*
0..*
Directory File
0..1
parent
GO TO USER ROLES PAGE
Class Navigability
transports *
Car Person
Zero or more (0..infinite): * passenger
transports 1..*
1 or more (1..infinite): 1..* Car Person
passenger
Class - Generalization
A specialization / generalization relationship, in which objects of the
specialized element (child) are substitutable for objects of the
generalized element (parent).
Superclass – the generalization of another class, the child.
Subclass – the specialization of another class, the parent.
Vehicle
power venue
power venue
{overlapping} {overlapping}
Truck Sailboat
GO TO USER ROLES PAGE
Generalization - characteristics
Specialization - characteristics
CONSTRAINTS
GO TO USER ROLES PAGE
1 1
1 .*
Monitor Floor
GO TO USER ROLES PAGE
Package Diagram
PACKAGE DIAGRAM
GO TO USER ROLES PAGE
The Sequence diagram lists objects horizontally, and time vertically, and
models these messages over time.
GO TO USER ROLES PAGE
Actor Represents an external person or entity that interacts with the system
Group Groups related header elements into subsystems or components being modeled and
are laid out horizontally at the top of the diagram.
GO TO USER ROLES PAGE
Message
Synchronous Message
Asynchronous Message
Create Message
Destroy Message
Action
GO TO USER ROLES PAGE
Block(Loop or Conditional)
Page Break
Return Message
Free Note
Flow Note
Diagram links
GO TO USER ROLES PAGE
Sequence Diagram-Example
GO TO USER ROLES PAGE
GO TO USER ROLES PAGE
SEQUENCE DIAGRAM
GO TO USER ROLES PAGE
can be used to flesh out the details of one or more use cases
GO TO USER ROLES PAGE
COLLABORATION DIAGRAM
COLLABORATION DIAGRAM
GO TO USER ROLES PAGE
Sequence Diagram
Reserving a copy of book in Library
GO TO USER ROLES PAGE
Collaboration Diagram
Reserving a copy of book in Library
GO TO USER ROLES PAGE
A statechart diagram shows the possible states of the object and the
transitions that cause a change in state.
Our example diagram models the login part of an online banking system.
Logging in consists of entering a valid social security number and personal id
number, then submitting the information for validation.
Uses
The life history of a given class, usecase, operation
The events that cause a transition from one state to another
The actions that result from a state change
GO TO USER ROLES PAGE
ACTIVITY DIAGRAM
ACTIVITY DIAGRAM
GO TO USER ROLES PAGE
Implementation diagrams
Component Diagram
62
Components include
source code components
binary code components
executable components
Introduction to UML
GO TO USER ROLES PAGE
Component Diagram
GO TO USER ROLES PAGE
Deployment Diagram
65
Introduction to UML
GO TO USER ROLES PAGE
Deployment Diagram
GO TO USER ROLES PAGE
The current official version of UML and its associated specifications can be
downloaded from OMG Specifications Catalog page for Modeling and Metadata
Specifications at
http://www.omg.org/technology/documents/modeling_spec_catalog.
htm#UML
GO TO USER ROLES PAGE
UML Certification
OCUP
OMG Certified UML Professional
Link : http://www.omg.org/uml-certification/
GO TO USER ROLES PAGE
References
Web References :
http://www.uml.org/
http://dn.codegear.com/article/31863
http://www-128.ibm.com/developerworks/rational/library/3101.html
http://www.andrew.cmu.edu/course/90-754/umlucdfaq.html
Book References :
User Guide for UML by Grady Booch, Ivar Jacobson and James Rumbaugh
Thank You