SlideShare a Scribd company logo
Introduction to Agile Visual Modeling
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
Words are not enough to derive the solution




                “I have a five volume set of the Decline and Fall of the Roman
                Empire, sitting on my bookshelf at home in proper order. Each
                volume is 4 cm. thick and each cover is .1 cm. thick. The covers
                and book pages are made of paper. If a bookworm eats through
                from the 1st page of volume 1 to the last page of volume 5, how
                many centimeters of paper will the bookworm eat through?”


   Please feel free to ask questions to help clarify your understanding

Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                      3
The task of the software development team is to
                     engineer the illusion of simplicity




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   4
Engineering the illusion of simplicity is difficult because…




                                                                Copyright © 2010 Jurgen Appelo




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                    5
Because there are so many elements to it




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   6   6
because…

                                                                                     Chen
                                                Information
                                                Engineering          Individual              Martin/IE

                                                                                                        Merise
                                      OMT

                                                                                                          UML
                            OOAD

                                                                      Team
                   Data                                                                                    Gane-Sarson
                  Modeling

                                                                                                             IDEFx
              Process
              Modeling


                OOSE
                                                                    Enterprise



                                        MSD                                       Rational
                                        Visio               MSD                   Software   Rational
                                                           Visual                 Modeler     Data
                                                                      Smart
                                                           Studio                            Modeler
                                                                      Draw
                                                                                                                         7

Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
because…
Categories of ALM & different points of view
            Requirements
            Analysis & Design
            Coding
            Testing
            Deployment
            Issue management
            Workflow (Task
             management)
            Project management
            Change management
            Configuration
             management
            Build management
            Release management
            Monitoring and reporting
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   8
Model driven system-software
            development and delivery
                    to the rescue




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   9
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   10
Account & Policy                            Level 1 Bus.
    Management                                  Capability                            Business       Process Premium
                                                                                      Process        Payment
        Manage Account &                             Level 2 Bus.
        Policy Billing                               Capability                       Process Step /
                                                                                                     Schedule Payment
                                                                                      Activity
             Ability to maintain                          Business
             premium payments                             Requirement


                                     Business                        User
                                                                                As a Customer I want the ability to schedule
        Customer                                                                a future-dated premium payment so that I
                                     Roles                           Story      can manage my cash flow and budget

  Ability to support
  500,000 payment Constraints
  customers                                                                                      The Payment Schedule Date
                                                                                                 must be on or before the
                                                                                   Business      Payment Due Date.
   Premium Payment Amount                                                          Rules         A payment may not be
                                                                Business Data                    scheduled if the Payment
   Premium Payment Schedule Date
                                                                Elements                         Status is ‘overdue’.
   Premium Payment Frequency


Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                                                  11
Elements of business modeling




    Business modeling is a disciplined approach to creating and maintaining a set of business-
    owned information assets that serve as a blueprint for the planning and execution of strategy

    Business modeling provides a common, enterprise-level business language and framework for
    documenting how the business is structured
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                       12
Process premium payment




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   13
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   14
Elements of application architecture
                                                                Project Resource Management




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                 15
System Use Case Modeling




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   16
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   17
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   18
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   19
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   20
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   21
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   22
Notation and Process




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   23
Object Oriented
                                                                Object Modeling   Software Engineering
                                                                   Technique             OOSE
      Object Oriented                                                OMT
     Analysis and Design
           OOAD




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                            24
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   25
Business Modeling




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   26
Class/Object Modeling




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   27
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   28
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   29
// class Person                                          Example output
       // with two private fields name and age
       // two public methods to retrieve fields                    int main() {
       (called "getters")                                               cout << "Creating a
       // and public non-default constructor                       person..." << endl;
       class Person {                                                   Person
       public:                                                     johnDoe("John Doe",
           Person(string name, int age) {                          25);
               this->name = name;                                       cout << "Person's
               this->age = age;                                    name: " <<
           }                                                       johnDoe.getName() <<
           string getName() {                                      endl;
               return name;                                             cout << "Person's
           }                                                       age: " <<
           int getAge() {                                          johnDoe.getAge() <<
               return age;                                         endl;
           }                                                            return 0;
       private:
           string name;
           int age;
       };
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
                                                                                     visibility   30
Types of data models




      Conceptual Data Model                                     Logical Data Model   Physical Data Model




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                              31
A conceptual data model identifies the
                                                                highest-level relationships between the
                                                                different entities. Features of conceptual
                                                                data model include:
                                                                • includes the important entities and the
                                                                    relationships among them
                                                                • no attribute is specified
                                                                • no primary key is specified




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                                32
A logical data model describes the data in as much
  detail as possible, without regard to how they will be
  physically implemented in the database.

  Features of a logical data model include:
  • all entities and relationships between them including
    cardinality




  •       all attributes for each entity are specified
  •       the primary key for each entity is specified
  •       foreign keys (keys identifying the relationship between different
          entities) are specified
  •       normalization occurs at this level (there are actually 5 levels)




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                 33
A physical data model represents how the
model will be built in the database. Features
of a physical data model include:
        • specification all tables and columns
        • foreign keys are used to identify
           relationships between tables
        • denormalization may occur based on
           user requirements
        • physical considerations may cause the physical data model to be
          quite different from the logical data model
        • physical data model will be different for different RDBMS; for
          example, data type for a column may be different between
          MySQL and SQL Server
     The steps for physical data model design are as follows:
         convert entities into tables
         convert relationships into foreign keys
         convert attributes into columns
         modify the physical data model based on physical constraints/
          requirements                           Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   34
Comparing elements of the three levels of data models

           Elements                                  Conceptual     Logical       Physical
           Entity names                                                      
           Entity relationship                                               
           Attributes                                                         
           Primary key                                                                      
           Foreign key                                                                      
           Table names                                                                       
           Column names                                                                      
           Column data types                                                                 




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.                                    35
Logical data model using UML Class Diagram




Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   36
Hands-on exercise
       Multiplicity
    1 no more than one

  0..1 zero or one

    * many

  0..* zero or many

  1..* one or many
 Natural language is not enough
                                                                 The task of the software development team is to
                                                                  engineer the illusion of simplicity in the world of
                                                                  complex and complicated system-software
                                                                  development
                                                                 Modeling is a synergistic blend of people, process,
                                                                  notation and tool
                                                                 Models depict business architecture, application
                                                                  architecture, information & data architecture,
                                                                  and infrastructure architecture that progressively
                                                                  refines our knowledge, requirements, and design
                                                                  across multiple viewpoints
                                                                 There are numerous types of modeling techniques
                                                                  and notations:
                                                                    ERD – Chen, Merise, Martin, etc.
                                                                    UML – class, activity, sequence, etc.
                                                                 We don't show an insight-inspiring picture just
                                                                  because it saves a thousand words; we show it
                                                                  because it elicits the thousand words that make
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
                                                                  the greatest difference                             38
Backup Slides
Copyright © 2008 – 2012 Russell Pannone. All rights reserved.   40

More Related Content

PPTX
Agile labs 2011
PDF
Talk IT_ Oracle_정봉기_111025
PDF
Intelligent Sales & Risk Performance Management Cognos Pb Map Info2008
PDF
Directory Search Companies Need Better Tools
PPTX
Increase Agility & ROI: BPM in Business Support Systems
PDF
Aras PLM Software Integration Basics
PDF
Infrastructure Trends -Jan 2010
PDF
Aras How To Think About Aras Integrations
Agile labs 2011
Talk IT_ Oracle_정봉기_111025
Intelligent Sales & Risk Performance Management Cognos Pb Map Info2008
Directory Search Companies Need Better Tools
Increase Agility & ROI: BPM in Business Support Systems
Aras PLM Software Integration Basics
Infrastructure Trends -Jan 2010
Aras How To Think About Aras Integrations

What's hot (20)

PPTX
Sii Poland Nearshore It Services Linked In
PDF
Program Meeting: 'Outsourcing' (St. Louis, Sep 2010)
PDF
IPM_E_8.2.2012
PDF
IPM_E_8.2.2012
PDF
IPM_E_8.2.2012
PPTX
Make Your Business More Flexible with Scalable Business Process Management So...
PDF
HSM_E_24.2.12
PPTX
Right people Consultants
PDF
IPM_E_3.2.12
PPTX
Web dispatching & data collection
PDF
Win and Manage more Government Business with GovWin CRM
PDF
Q3 2009 Small Business Specialist Pal Meeting February 2009 Final
PPTX
SYSFORETAIL – ERP SOLUTION FOR RETAILERS
PPT
Semantics to energize the full Services Spectrum: Ontological approach to be...
PDF
Sapphire, Atlanta, 2007
PDF
Dirk Krafzig Enterprise S O Aand Dependency Mngt
PDF
TAUS MT SHOWCASE, Strategies for Building Competitive Advantage and Revenue f...
PPTX
Vv fishbone analysis_charts_final
PDF
Radovan Janecek Avoiding S O A Pitfalls
Sii Poland Nearshore It Services Linked In
Program Meeting: 'Outsourcing' (St. Louis, Sep 2010)
IPM_E_8.2.2012
IPM_E_8.2.2012
IPM_E_8.2.2012
Make Your Business More Flexible with Scalable Business Process Management So...
HSM_E_24.2.12
Right people Consultants
IPM_E_3.2.12
Web dispatching & data collection
Win and Manage more Government Business with GovWin CRM
Q3 2009 Small Business Specialist Pal Meeting February 2009 Final
SYSFORETAIL – ERP SOLUTION FOR RETAILERS
Semantics to energize the full Services Spectrum: Ontological approach to be...
Sapphire, Atlanta, 2007
Dirk Krafzig Enterprise S O Aand Dependency Mngt
TAUS MT SHOWCASE, Strategies for Building Competitive Advantage and Revenue f...
Vv fishbone analysis_charts_final
Radovan Janecek Avoiding S O A Pitfalls
Ad

Viewers also liked (20)

PPT
Database 3 Conceptual Modeling And Er
PDF
Data modelling 101
PPTX
Legacy IT vs. Modern IT
PDF
Product Design Engineer (Career Information Presentation)
PPT
DATASTAGE AND QUALITY STAGE 9.1 ONLINE TRAINING
PDF
Database relationship
PDF
Proyecto completo
PDF
Diseño de una estrategia para la diseminación de la información...
PPSX
Bloque Pacie
PDF
Antecedentes LOE 2009 Venezuelsa
PDF
3isystem fase3
PDF
Normalizing agile and lean product development and aim
PDF
Agile and Lean Business Proposition
PPT
Modelo Educativo Transformador de Vidas
PDF
Diseño de una estrategia para la búsqueda de informacion.
DOC
6. introducción
PDF
Haz que la realidad cobre vida
PPTX
Agile product development for the business
PDF
Forecasting total cost and duration of Product Backlog
PDF
Lean Agile and Respect for People
Database 3 Conceptual Modeling And Er
Data modelling 101
Legacy IT vs. Modern IT
Product Design Engineer (Career Information Presentation)
DATASTAGE AND QUALITY STAGE 9.1 ONLINE TRAINING
Database relationship
Proyecto completo
Diseño de una estrategia para la diseminación de la información...
Bloque Pacie
Antecedentes LOE 2009 Venezuelsa
3isystem fase3
Normalizing agile and lean product development and aim
Agile and Lean Business Proposition
Modelo Educativo Transformador de Vidas
Diseño de una estrategia para la búsqueda de informacion.
6. introducción
Haz que la realidad cobre vida
Agile product development for the business
Forecasting total cost and duration of Product Backlog
Lean Agile and Respect for People
Ad

Similar to Agile needs resurgence of visual modeling (20)

PDF
Why modeling matters ?
PPT
European Business Rules Conference 2005 : Rule Standards
PDF
Semantic Enterprise Architecture
PDF
Opportunities in challenging_times-steve_robinson
 
PDF
Opportunities In Challenging Times - Steve Robinson
PDF
Opportunities in challenging_times-steve_robinson
 
PPTX
Function Point Analysis: Size Matters - No Matter What You Have Been Told!
PDF
IT Shared Services Costing
PPTX
Infomation models for agile bi
PPT
WebSphere Technical Conference 2009 : Enhancing your BPM Solution with ILOG J...
PDF
Smart Micro Credit Business Suite
PDF
Ba course content intensive
PDF
Implementation of oracle e business suite
PPTX
Presentatie capgemini academy v10 eng
PDF
Acl Presentation 3 4 10 Final
PDF
Alfresco & Kofax - scan, manage, collaborate
PPT
Model Runway Part 2 Design Best Practices at Blue Cross BlueShield
PDF
PLM Implementation services
PPTX
Newgen Solutions for Telecom
PDF
InfosysPublicServices - Member Liability Estimator Solution | MLE Applications
Why modeling matters ?
European Business Rules Conference 2005 : Rule Standards
Semantic Enterprise Architecture
Opportunities in challenging_times-steve_robinson
 
Opportunities In Challenging Times - Steve Robinson
Opportunities in challenging_times-steve_robinson
 
Function Point Analysis: Size Matters - No Matter What You Have Been Told!
IT Shared Services Costing
Infomation models for agile bi
WebSphere Technical Conference 2009 : Enhancing your BPM Solution with ILOG J...
Smart Micro Credit Business Suite
Ba course content intensive
Implementation of oracle e business suite
Presentatie capgemini academy v10 eng
Acl Presentation 3 4 10 Final
Alfresco & Kofax - scan, manage, collaborate
Model Runway Part 2 Design Best Practices at Blue Cross BlueShield
PLM Implementation services
Newgen Solutions for Telecom
InfosysPublicServices - Member Liability Estimator Solution | MLE Applications

More from Russell Pannone (18)

PDF
Agile Lean Kanban in the Real World - A Case Study
PDF
AcceptCriteria_TestCases_TestScripts
PDF
Agile Lean Kanban in the real world
PDF
The Role of Quality Assurance in the World of Agile Development and Scrum
PDF
Agile & Lean & Kanban in the Real World - A Case Study
PDF
Risk guideline
PDF
What is an agile coach
PDF
Agile-Lean requirements position statement
PDF
Agile and lean product development the fundamentals
PDF
5 Levels of Agile Planning Explained Simply
PDF
Product backlog stories_acceptancecriteria_size_priority
PDF
How To Know Your Stories Are At The Right Level Of Detail
PDF
Agile Lean Scrum ITIL V2
PDF
Agile Business Driven Development
PDF
Project Management And Being Agile
PDF
Creating A Product Backlog
PDF
Conducting An Agile Retrospective
PDF
The World of Agile/Lean Product Development and Delivery with Scrum Made Easy
Agile Lean Kanban in the Real World - A Case Study
AcceptCriteria_TestCases_TestScripts
Agile Lean Kanban in the real world
The Role of Quality Assurance in the World of Agile Development and Scrum
Agile & Lean & Kanban in the Real World - A Case Study
Risk guideline
What is an agile coach
Agile-Lean requirements position statement
Agile and lean product development the fundamentals
5 Levels of Agile Planning Explained Simply
Product backlog stories_acceptancecriteria_size_priority
How To Know Your Stories Are At The Right Level Of Detail
Agile Lean Scrum ITIL V2
Agile Business Driven Development
Project Management And Being Agile
Creating A Product Backlog
Conducting An Agile Retrospective
The World of Agile/Lean Product Development and Delivery with Scrum Made Easy

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Modernizing your data center with Dell and AMD
cuic standard and advanced reporting.pdf
20250228 LYD VKU AI Blended-Learning.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
Network Security Unit 5.pdf for BCA BBA.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Monthly Chronicles - July 2025
Understanding_Digital_Forensics_Presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Modernizing your data center with Dell and AMD

Agile needs resurgence of visual modeling

  • 1. Introduction to Agile Visual Modeling Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
  • 2. Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
  • 3. Words are not enough to derive the solution “I have a five volume set of the Decline and Fall of the Roman Empire, sitting on my bookshelf at home in proper order. Each volume is 4 cm. thick and each cover is .1 cm. thick. The covers and book pages are made of paper. If a bookworm eats through from the 1st page of volume 1 to the last page of volume 5, how many centimeters of paper will the bookworm eat through?” Please feel free to ask questions to help clarify your understanding Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 3
  • 4. The task of the software development team is to engineer the illusion of simplicity Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 4
  • 5. Engineering the illusion of simplicity is difficult because… Copyright © 2010 Jurgen Appelo Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 5
  • 6. Because there are so many elements to it Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 6 6
  • 7. because… Chen Information Engineering Individual Martin/IE Merise OMT UML OOAD Team Data Gane-Sarson Modeling IDEFx Process Modeling OOSE Enterprise MSD Rational Visio MSD Software Rational Visual Modeler Data Smart Studio Modeler Draw 7 Copyright © 2008 – 2012 Russell Pannone. All rights reserved.
  • 8. because… Categories of ALM & different points of view  Requirements  Analysis & Design  Coding  Testing  Deployment  Issue management  Workflow (Task management)  Project management  Change management  Configuration management  Build management  Release management  Monitoring and reporting Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 8
  • 9. Model driven system-software development and delivery to the rescue Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 9
  • 10. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 10
  • 11. Account & Policy Level 1 Bus. Management Capability Business Process Premium Process Payment Manage Account & Level 2 Bus. Policy Billing Capability Process Step / Schedule Payment Activity Ability to maintain Business premium payments Requirement Business User As a Customer I want the ability to schedule Customer a future-dated premium payment so that I Roles Story can manage my cash flow and budget Ability to support 500,000 payment Constraints customers The Payment Schedule Date must be on or before the Business Payment Due Date. Premium Payment Amount Rules A payment may not be Business Data scheduled if the Payment Premium Payment Schedule Date Elements Status is ‘overdue’. Premium Payment Frequency Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 11
  • 12. Elements of business modeling Business modeling is a disciplined approach to creating and maintaining a set of business- owned information assets that serve as a blueprint for the planning and execution of strategy Business modeling provides a common, enterprise-level business language and framework for documenting how the business is structured Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 12
  • 13. Process premium payment Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 13
  • 14. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 14
  • 15. Elements of application architecture Project Resource Management Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 15
  • 16. System Use Case Modeling Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 16
  • 17. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 17
  • 18. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 18
  • 19. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 19
  • 20. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 20
  • 21. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 21
  • 22. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 22
  • 23. Notation and Process Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 23
  • 24. Object Oriented Object Modeling Software Engineering Technique OOSE Object Oriented OMT Analysis and Design OOAD Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 24
  • 25. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 25
  • 26. Business Modeling Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 26
  • 27. Class/Object Modeling Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 27
  • 28. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 28
  • 29. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 29
  • 30. // class Person Example output // with two private fields name and age // two public methods to retrieve fields int main() { (called "getters") cout << "Creating a // and public non-default constructor person..." << endl; class Person { Person public: johnDoe("John Doe", Person(string name, int age) { 25); this->name = name; cout << "Person's this->age = age; name: " << } johnDoe.getName() << string getName() { endl; return name; cout << "Person's } age: " << int getAge() { johnDoe.getAge() << return age; endl; } return 0; private: string name; int age; }; Copyright © 2008 – 2012 Russell Pannone. All rights reserved. visibility 30
  • 31. Types of data models Conceptual Data Model Logical Data Model Physical Data Model Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 31
  • 32. A conceptual data model identifies the highest-level relationships between the different entities. Features of conceptual data model include: • includes the important entities and the relationships among them • no attribute is specified • no primary key is specified Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 32
  • 33. A logical data model describes the data in as much detail as possible, without regard to how they will be physically implemented in the database. Features of a logical data model include: • all entities and relationships between them including cardinality • all attributes for each entity are specified • the primary key for each entity is specified • foreign keys (keys identifying the relationship between different entities) are specified • normalization occurs at this level (there are actually 5 levels) Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 33
  • 34. A physical data model represents how the model will be built in the database. Features of a physical data model include: • specification all tables and columns • foreign keys are used to identify relationships between tables • denormalization may occur based on user requirements • physical considerations may cause the physical data model to be quite different from the logical data model • physical data model will be different for different RDBMS; for example, data type for a column may be different between MySQL and SQL Server  The steps for physical data model design are as follows:  convert entities into tables  convert relationships into foreign keys  convert attributes into columns  modify the physical data model based on physical constraints/ requirements Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 34
  • 35. Comparing elements of the three levels of data models Elements Conceptual Logical Physical Entity names   Entity relationship   Attributes  Primary key   Foreign key   Table names  Column names  Column data types  Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 35
  • 36. Logical data model using UML Class Diagram Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 36
  • 37. Hands-on exercise Multiplicity 1 no more than one 0..1 zero or one * many 0..* zero or many 1..* one or many
  • 38.  Natural language is not enough  The task of the software development team is to engineer the illusion of simplicity in the world of complex and complicated system-software development  Modeling is a synergistic blend of people, process, notation and tool  Models depict business architecture, application architecture, information & data architecture, and infrastructure architecture that progressively refines our knowledge, requirements, and design across multiple viewpoints  There are numerous types of modeling techniques and notations:  ERD – Chen, Merise, Martin, etc.  UML – class, activity, sequence, etc.  We don't show an insight-inspiring picture just because it saves a thousand words; we show it because it elicits the thousand words that make Copyright © 2008 – 2012 Russell Pannone. All rights reserved. the greatest difference 38
  • 40. Copyright © 2008 – 2012 Russell Pannone. All rights reserved. 40