SlideShare uma empresa Scribd logo
1 de 12
UML Basic Structural Modeling 1
UML
Basic Structural Modeling
Part II
UML Basic Structural Modeling 2
Basic Structural Modeling
• Classes
Attributes, Operations, Responsibilities
• Relationships
Dependency, Generalization, Association, Role,
Multiplicity, Aggregation
• Common Mechanisms
Specifications, Adornments, Common Divisions,
Extensibility Mechanisms
• Diagrams
Class , Object , Component , Deployment Dagrams
UML Basic Structural Modeling 3
Common Mechanisms
Specifications
Adornments
Notes
Common Divisions
Extensibility Mechanisms
stereotypes
tagged values
constraints
UML Basic Structural Modeling 4
Adornments: Note
• Adornment that stands alone
• Note is a graphical symbol for rendering constraints
or comments attached to an element
• Used to specify things like requirements,
oservations, reviews, and explanations
• Can be simple text,an embedded URL, a link to a
document
Note
UML Basic Structural Modeling 5
Adornments: Note
• Examples
See URL
Shuttle.nasa.gov
Mission
full_name : string
Shuttle
start_engines()
stop_engines()
fuel_level() : integer
launch(t:time)
Launch time is
computed from
ephemeris
UML Basic Structural Modeling 6
Stereotypes
• Allows to extend the vocabulary of the UML
• Allows to create new building blocks, specific to
your problem
• Can be applied to any element (Class, Attribute,
Operation, …)
• Can be represented by
<< stereotype >>
new icon
both
UML Basic Structural Modeling 7
Stereotypes
a class can have a stereotype indicating what basic type
of class it is (e.g. controller, actor, interface)
represent a metaclassification of the class
appear within guillemets in normal type above the class
name
Window
size : Area = (100, 100)
visibility : Boolean = invisible
display ()
hide ()
«user interface»
UML Basic Structural Modeling 8
Operation Stereotypes
stereostypes can also be used to group together
operations with common characteristics
represent a metaclassification of the operation
BadSocket
throw()
log (String)
«helper»
setSocket(Socket)
«access»
getID():SocketID
setID(SocketID)
«exception»
UML Basic Structural Modeling 9
Stereotypes Examples
Shuttle
weight : Integer
age : Integer
status: enum = on-ground
<< NASA Object >>
Spacecraft
UML Basic Structural Modeling 10
Tagged Values
• Apply to any element of the UML
• Metadata that applies to the element not its instances
• Represent arbitrary information expressed in text form
• Commonly used to store Project Management
information
• Examples:
author of an element Author=John Smith
testing status Test = No
version number Version # = 4.2
UML Basic Structural Modeling 11
Constraints
restrict the values that object or links can assume
expressed as arbitrary expressions enclosed in braces
near the constrained elements
often use navigation expressions
constraints between two elements are depicted using a
dotted, labeled line
Astronaut
Member-of
Crew
Commander-of
{subset}
4..6 *
*1
UML Basic Structural Modeling 12
Constraint Examples
employer
CompanyemployeePerson
boss worker
{person.employer =
person.boss.employer}
*
*

Mais conteúdo relacionado

Mais procurados

Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Marwa Ali Eissa
 
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...Luca Berardinelli
 
Executable UML Roadmap (as of September 2014)
Executable UML Roadmap (as of September 2014)Executable UML Roadmap (as of September 2014)
Executable UML Roadmap (as of September 2014)Ed Seidewitz
 
Uml with detail
Uml with detailUml with detail
Uml with detailHamza Khan
 
Object Oriented Analysis &amp; Design
Object Oriented Analysis &amp; DesignObject Oriented Analysis &amp; Design
Object Oriented Analysis &amp; Designkpthakershy
 
Lecture-03 Introduction to UML
Lecture-03 Introduction to UMLLecture-03 Introduction to UML
Lecture-03 Introduction to UMLartgreen
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxNwabueze Obioma
 
Code Generation 2014 - ALF, the Standard Programming Language for UML
Code Generation 2014  - ALF, the Standard Programming Language for UMLCode Generation 2014  - ALF, the Standard Programming Language for UML
Code Generation 2014 - ALF, the Standard Programming Language for UMLJürgen Mutschall
 
UML: Once More with Meaning
UML: Once More with MeaningUML: Once More with Meaning
UML: Once More with MeaningEd Seidewitz
 
The Epsilon Pattern Language
The Epsilon Pattern LanguageThe Epsilon Pattern Language
The Epsilon Pattern LanguageDimitris Kolovos
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to umlTony Huynh
 

Mais procurados (20)

Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)
 
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
 
Bridge Design Pattern
Bridge Design PatternBridge Design Pattern
Bridge Design Pattern
 
UML Modeling in Java
UML Modeling in JavaUML Modeling in Java
UML Modeling in Java
 
Chapter3
Chapter3Chapter3
Chapter3
 
Executable UML Roadmap (as of September 2014)
Executable UML Roadmap (as of September 2014)Executable UML Roadmap (as of September 2014)
Executable UML Roadmap (as of September 2014)
 
Uml with detail
Uml with detailUml with detail
Uml with detail
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
Object Oriented Analysis &amp; Design
Object Oriented Analysis &amp; DesignObject Oriented Analysis &amp; Design
Object Oriented Analysis &amp; Design
 
Component Diagram
Component DiagramComponent Diagram
Component Diagram
 
Staruml
StarumlStaruml
Staruml
 
Lecture-03 Introduction to UML
Lecture-03 Introduction to UMLLecture-03 Introduction to UML
Lecture-03 Introduction to UML
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
Code Generation 2014 - ALF, the Standard Programming Language for UML
Code Generation 2014  - ALF, the Standard Programming Language for UMLCode Generation 2014  - ALF, the Standard Programming Language for UML
Code Generation 2014 - ALF, the Standard Programming Language for UML
 
UML: Once More with Meaning
UML: Once More with MeaningUML: Once More with Meaning
UML: Once More with Meaning
 
Case stydy cs701
Case stydy cs701 Case stydy cs701
Case stydy cs701
 
The Epsilon Pattern Language
The Epsilon Pattern LanguageThe Epsilon Pattern Language
The Epsilon Pattern Language
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to uml
 

Destaque

Destaque (8)

UML
UMLUML
UML
 
Unit 06: The Web Application Extension for UML
Unit 06: The Web Application Extension for UMLUnit 06: The Web Application Extension for UML
Unit 06: The Web Application Extension for UML
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
 
Uml Common Mechanism
Uml Common MechanismUml Common Mechanism
Uml Common Mechanism
 
Real Time Software Design in Software Engineering SE13
Real Time Software Design in Software Engineering SE13Real Time Software Design in Software Engineering SE13
Real Time Software Design in Software Engineering SE13
 
Ch20-Software Engineering 9
Ch20-Software Engineering 9Ch20-Software Engineering 9
Ch20-Software Engineering 9
 
Ooad Uml
Ooad UmlOoad Uml
Ooad Uml
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 

Semelhante a Uml struct2

Introduction To Uml
Introduction To UmlIntroduction To Uml
Introduction To Umlguest514814
 
UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015
UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015
UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015Luca Berardinelli
 
UML and Case study
UML and Case study UML and Case study
UML and Case study Mihika-QA
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manualPraseela R
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to umlPRABU M
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentationanasz3z3
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGERaval Chirag
 
4.o o design tools=uml -_lecture 4
4.o o design tools=uml -_lecture 44.o o design tools=uml -_lecture 4
4.o o design tools=uml -_lecture 4Warui Maina
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)hrajak5
 
06-unit-iintrouml25sep2015-160901172758.pptx
06-unit-iintrouml25sep2015-160901172758.pptx06-unit-iintrouml25sep2015-160901172758.pptx
06-unit-iintrouml25sep2015-160901172758.pptxSindhu Mani
 
Chapter-2 UML and UML Diagrams.pdf
Chapter-2 UML and UML Diagrams.pdfChapter-2 UML and UML Diagrams.pdf
Chapter-2 UML and UML Diagrams.pdfAkfeteAssefa
 

Semelhante a Uml struct2 (20)

Apostila UML
Apostila UMLApostila UML
Apostila UML
 
Introduction To Uml
Introduction To UmlIntroduction To Uml
Introduction To Uml
 
UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015
UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015
UML Modeling and Profiling Lab - Advanced Software Engineering Course 2014/2015
 
Class diagram
Class diagramClass diagram
Class diagram
 
UML and Case study
UML and Case study UML and Case study
UML and Case study
 
Ooad static diagram
Ooad static diagramOoad static diagram
Ooad static diagram
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
 
l1_introuml.pdf
l1_introuml.pdfl1_introuml.pdf
l1_introuml.pdf
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
4.o o design tools=uml -_lecture 4
4.o o design tools=uml -_lecture 44.o o design tools=uml -_lecture 4
4.o o design tools=uml -_lecture 4
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)
 
Uml
UmlUml
Uml
 
06-unit-iintrouml25sep2015-160901172758.pptx
06-unit-iintrouml25sep2015-160901172758.pptx06-unit-iintrouml25sep2015-160901172758.pptx
06-unit-iintrouml25sep2015-160901172758.pptx
 
UML Intro
UML IntroUML Intro
UML Intro
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
Slides chapter 11
Slides chapter 11Slides chapter 11
Slides chapter 11
 
Chapter-2 UML and UML Diagrams.pdf
Chapter-2 UML and UML Diagrams.pdfChapter-2 UML and UML Diagrams.pdf
Chapter-2 UML and UML Diagrams.pdf
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 

Mais de Student

Cloud computing
Cloud computingCloud computing
Cloud computingStudent
 
Keyword research
Keyword researchKeyword research
Keyword researchStudent
 
Agile Process models
Agile Process modelsAgile Process models
Agile Process modelsStudent
 
Virtual technology
Virtual technologyVirtual technology
Virtual technologyStudent
 
Student management system
Student management systemStudent management system
Student management systemStudent
 
Ip services
Ip servicesIp services
Ip servicesStudent
 
Process models
Process modelsProcess models
Process modelsStudent
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++Student
 
Application layer chapter-9
Application layer chapter-9Application layer chapter-9
Application layer chapter-9Student
 
Database recovery
Database recoveryDatabase recovery
Database recoveryStudent
 
computer networks layers
computer networks layerscomputer networks layers
computer networks layersStudent
 
Stack application
Stack applicationStack application
Stack applicationStudent
 

Mais de Student (12)

Cloud computing
Cloud computingCloud computing
Cloud computing
 
Keyword research
Keyword researchKeyword research
Keyword research
 
Agile Process models
Agile Process modelsAgile Process models
Agile Process models
 
Virtual technology
Virtual technologyVirtual technology
Virtual technology
 
Student management system
Student management systemStudent management system
Student management system
 
Ip services
Ip servicesIp services
Ip services
 
Process models
Process modelsProcess models
Process models
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++
 
Application layer chapter-9
Application layer chapter-9Application layer chapter-9
Application layer chapter-9
 
Database recovery
Database recoveryDatabase recovery
Database recovery
 
computer networks layers
computer networks layerscomputer networks layers
computer networks layers
 
Stack application
Stack applicationStack application
Stack application
 

Uml struct2

  • 1. UML Basic Structural Modeling 1 UML Basic Structural Modeling Part II
  • 2. UML Basic Structural Modeling 2 Basic Structural Modeling • Classes Attributes, Operations, Responsibilities • Relationships Dependency, Generalization, Association, Role, Multiplicity, Aggregation • Common Mechanisms Specifications, Adornments, Common Divisions, Extensibility Mechanisms • Diagrams Class , Object , Component , Deployment Dagrams
  • 3. UML Basic Structural Modeling 3 Common Mechanisms Specifications Adornments Notes Common Divisions Extensibility Mechanisms stereotypes tagged values constraints
  • 4. UML Basic Structural Modeling 4 Adornments: Note • Adornment that stands alone • Note is a graphical symbol for rendering constraints or comments attached to an element • Used to specify things like requirements, oservations, reviews, and explanations • Can be simple text,an embedded URL, a link to a document Note
  • 5. UML Basic Structural Modeling 5 Adornments: Note • Examples See URL Shuttle.nasa.gov Mission full_name : string Shuttle start_engines() stop_engines() fuel_level() : integer launch(t:time) Launch time is computed from ephemeris
  • 6. UML Basic Structural Modeling 6 Stereotypes • Allows to extend the vocabulary of the UML • Allows to create new building blocks, specific to your problem • Can be applied to any element (Class, Attribute, Operation, …) • Can be represented by << stereotype >> new icon both
  • 7. UML Basic Structural Modeling 7 Stereotypes a class can have a stereotype indicating what basic type of class it is (e.g. controller, actor, interface) represent a metaclassification of the class appear within guillemets in normal type above the class name Window size : Area = (100, 100) visibility : Boolean = invisible display () hide () «user interface»
  • 8. UML Basic Structural Modeling 8 Operation Stereotypes stereostypes can also be used to group together operations with common characteristics represent a metaclassification of the operation BadSocket throw() log (String) «helper» setSocket(Socket) «access» getID():SocketID setID(SocketID) «exception»
  • 9. UML Basic Structural Modeling 9 Stereotypes Examples Shuttle weight : Integer age : Integer status: enum = on-ground << NASA Object >> Spacecraft
  • 10. UML Basic Structural Modeling 10 Tagged Values • Apply to any element of the UML • Metadata that applies to the element not its instances • Represent arbitrary information expressed in text form • Commonly used to store Project Management information • Examples: author of an element Author=John Smith testing status Test = No version number Version # = 4.2
  • 11. UML Basic Structural Modeling 11 Constraints restrict the values that object or links can assume expressed as arbitrary expressions enclosed in braces near the constrained elements often use navigation expressions constraints between two elements are depicted using a dotted, labeled line Astronaut Member-of Crew Commander-of {subset} 4..6 * *1
  • 12. UML Basic Structural Modeling 12 Constraint Examples employer CompanyemployeePerson boss worker {person.employer = person.boss.employer} * *