SlideShare a Scribd company logo
UML and OO


         System design
             2010 Autumn

             Morten Bo Nielsen
             Mon@eal.dk
UML and OO
          ●   What is UML?
              ●   Who defines it?
          ●   What does “object oriented” mean?
              ●   What is an object?
              ●   What is a class?
              ●   Why use objects?




System design - Mon@eal.dk                        2
UML
 ●   UML is all about modelling
     ●   And communicating ideas
 ●   Collection of diagrams
     ●   Functional modelling: Use case diagrams
     ●   Structural modelling: Class diagrams
     ●   Behavioural modelling: State machine, sequence
         diagrams, communication diagrams.
     ●   A lot more exists
                                          example project
System design - Mon@eal.dk                                3
Objects and clases
 ●   start here




System design - Mon@eal.dk              4
OOP words
 ●   Class, Object, Instance, Method/Properties,
     (Message passing), Inheritance, Abstraction,
     Encapsulation, Decoupling, Polymorphism




System design - Mon@eal.dk                          5
Why classes?
 ●   Encapsulation
 ●   Code reuse
 ●   Use standardized patterns
 ●   Abstraction
 ●   Modularisation of the code

                                  Note that much of this is
                                  possible without OOP



System design - Mon@eal.dk                                    6
Software example
                     - IP addresses
    Class




    Objects
      IpAddress* IpAddressOfPc1

          = new IpAddress( 192.168.1.100, 255.255.255.0 );

      IpAddress* IpAddressOfPc2

          = new IpAddress( 192.168.1.101, 255.255.255.0 );




System design - Mon@eal.dk                                   7
Physical world - Books
        Class
        “Book” covers everything we would call a “book”

                                                                  Which to use
                                                                  depends on context
        Objects

          1.    Books as defined by ISBN
          2.    Books as in “every book is unique”
               My copy is different from yours


8       SD3 - mon@sde.dk                             25-10-2009


    System design - Mon@eal.dk                                                         8
Inheritance design problem
        Book type is most            Book content is most
           impor tant                     impor tant
               Book                              Book


                                       System Analysis and Design
      Paperback        Hardcover
                                          with UML version 2.0
        book             book
                                            by A. Dennis et al.


                  ISBN: 978-0-471-   Paperback          Hardcover
                      65920-4          book               book




System design - Mon@eal.dk                                          9
UML use case diagrams
 ●   User ← admin actors example.




System design - Mon@eal.dk           10
Factory design pattern




System design - Mon@eal.dk                  11
Example project
 ●   Mashing temperature control.pdf
 ●   Mashing+temperature+control_prcent_2C+part+2.p




System design - Mon@eal.dk                    12

More Related Content

PPT
JavaYDL15
PDF
OO & UML
PPT
OO Development 3 - Models And UML
PDF
Java OO Revisited
PPTX
Design Pattern lecture 1
PPT
Applying OO Concepts
PDF
Object oriented fundamentals_in_java
PPTX
Introduction to OO, Java and Eclipse/WebSphere
JavaYDL15
OO & UML
OO Development 3 - Models And UML
Java OO Revisited
Design Pattern lecture 1
Applying OO Concepts
Object oriented fundamentals_in_java
Introduction to OO, Java and Eclipse/WebSphere

Viewers also liked (13)

PDF
Dependencies, dependencies, dependencies
PPTX
Unified modelling language (UML)
PPT
OOP programming
PPT
Module 3 Object Oriented Data Models Object Oriented notations
PPTX
Packaes & interfaces
PDF
Wrapper classes
PPT
What does OOP stand for?
ODP
Uml
PPTX
Java 103 intro to java data structures
PPT
Object Oriented Design in Software Engineering SE12
KEY
Objects & OO Thinking for Java
PPT
M02 Uml Overview
PDF
8 abstract classes and interfaces
Dependencies, dependencies, dependencies
Unified modelling language (UML)
OOP programming
Module 3 Object Oriented Data Models Object Oriented notations
Packaes & interfaces
Wrapper classes
What does OOP stand for?
Uml
Java 103 intro to java data structures
Object Oriented Design in Software Engineering SE12
Objects & OO Thinking for Java
M02 Uml Overview
8 abstract classes and interfaces
Ad

Similar to Itt1 sd uml and oo (20)

PPTX
Assignment 1 SYD601 2012 rick_danby completed with audio
PPTX
Itp oo mand-d
DOCX
Ooad unit 1
PDF
Design and Implementation in Software Engineering
PPT
Object Oriented Design
PPT
Object Oriented Design
PPT
Unit 1( modelling concepts & class modeling)
PPT
Ooad overview
PPT
Ooad Overview
PDF
Software Engineering : OOAD using UML
PPT
8. design patterns
 
PPTX
Solid Principles Of Design (Design Series 01)
PPT
AI_Module_2_Engineering_Computer_Science.ppt
PPT
Object oriented analysis_and_design_v2.0
PPTX
Software engineering: design for reuse
PPT
Object Oriented Analysis and Design
PDF
Advanced Systems Design with Java UML and MDA 1st Edition Kevin Lano
PPT
uml123 copy
PDF
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
PPT
5 Design Patterns Explained
Assignment 1 SYD601 2012 rick_danby completed with audio
Itp oo mand-d
Ooad unit 1
Design and Implementation in Software Engineering
Object Oriented Design
Object Oriented Design
Unit 1( modelling concepts & class modeling)
Ooad overview
Ooad Overview
Software Engineering : OOAD using UML
8. design patterns
 
Solid Principles Of Design (Design Series 01)
AI_Module_2_Engineering_Computer_Science.ppt
Object oriented analysis_and_design_v2.0
Software engineering: design for reuse
Object Oriented Analysis and Design
Advanced Systems Design with Java UML and MDA 1st Edition Kevin Lano
uml123 copy
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
5 Design Patterns Explained
Ad

More from Morten Nielsen (20)

PDF
Itt1 intro project management
PDF
Itt1 intro knowing and doing
PDF
Itt2 its pki and certificates
PDF
Itt2 its ssl and services
ODP
Itt2 its ids
ODP
Itt2 its encrypted storage
ODP
Itt2 its introduction
PDF
Itt2 its introduction
ODP
Itt3 virtual machines
ODP
Itt1 sd requirements
ODP
Itt3 its acl
ODP
Itt3 its social engineering
ODP
Itet3 its forensics
ODP
Diagram cookbook
ODP
ITET3 Networking P2P
ODP
ITET1 Routing Transport layer.odp
ODP
ITET1 Routing Application layer.odp
ODP
ITET3 ITS governance
ODP
Routing vlans
ODP
Itet2 its social engineering
Itt1 intro project management
Itt1 intro knowing and doing
Itt2 its pki and certificates
Itt2 its ssl and services
Itt2 its ids
Itt2 its encrypted storage
Itt2 its introduction
Itt2 its introduction
Itt3 virtual machines
Itt1 sd requirements
Itt3 its acl
Itt3 its social engineering
Itet3 its forensics
Diagram cookbook
ITET3 Networking P2P
ITET1 Routing Transport layer.odp
ITET1 Routing Application layer.odp
ITET3 ITS governance
Routing vlans
Itet2 its social engineering

Itt1 sd uml and oo

  • 1. UML and OO System design 2010 Autumn Morten Bo Nielsen Mon@eal.dk
  • 2. UML and OO ● What is UML? ● Who defines it? ● What does “object oriented” mean? ● What is an object? ● What is a class? ● Why use objects? System design - Mon@eal.dk 2
  • 3. UML ● UML is all about modelling ● And communicating ideas ● Collection of diagrams ● Functional modelling: Use case diagrams ● Structural modelling: Class diagrams ● Behavioural modelling: State machine, sequence diagrams, communication diagrams. ● A lot more exists example project System design - Mon@eal.dk 3
  • 4. Objects and clases ● start here System design - Mon@eal.dk 4
  • 5. OOP words ● Class, Object, Instance, Method/Properties, (Message passing), Inheritance, Abstraction, Encapsulation, Decoupling, Polymorphism System design - Mon@eal.dk 5
  • 6. Why classes? ● Encapsulation ● Code reuse ● Use standardized patterns ● Abstraction ● Modularisation of the code Note that much of this is possible without OOP System design - Mon@eal.dk 6
  • 7. Software example - IP addresses Class Objects IpAddress* IpAddressOfPc1 = new IpAddress( 192.168.1.100, 255.255.255.0 ); IpAddress* IpAddressOfPc2 = new IpAddress( 192.168.1.101, 255.255.255.0 ); System design - Mon@eal.dk 7
  • 8. Physical world - Books Class “Book” covers everything we would call a “book” Which to use depends on context Objects 1. Books as defined by ISBN 2. Books as in “every book is unique” My copy is different from yours 8 SD3 - mon@sde.dk 25-10-2009 System design - Mon@eal.dk 8
  • 9. Inheritance design problem Book type is most Book content is most impor tant impor tant Book Book System Analysis and Design Paperback Hardcover with UML version 2.0 book book by A. Dennis et al. ISBN: 978-0-471- Paperback Hardcover 65920-4 book book System design - Mon@eal.dk 9
  • 10. UML use case diagrams ● User ← admin actors example. System design - Mon@eal.dk 10
  • 11. Factory design pattern System design - Mon@eal.dk 11
  • 12. Example project ● Mashing temperature control.pdf ● Mashing+temperature+control_prcent_2C+part+2.p System design - Mon@eal.dk 12