SlideShare a Scribd company logo
Chapter 1
Object-Oriented Analysis and Design
Disclaimer
• Slides come from a variety of sources:
– Craig Larman-developed slides; author of this classic textbook.
– Dr. Constantinos Constantinides, University of London
– Slides from the University of Pittsburg
– Slides from many of my existing slides on these same topics
– New slides from sources unknown…
2
Chapter 1
• Chapter one covers a host of many topics central to today’s
technologies.
• These skills are essential in today’s professional community.
• We will talk about (in some detail) iterative development,
evolutionary development, the Unified Process, agile
approaches, UML,
• Later on we will advance into more complex concepts that
address framework design and architectural analysis.
• Please note that the materials are meant to be foundational.
3
Thinking in Objects and UML - 1
• The Unified Modeling Language (UML) is a standard
diagramming notation; sometimes referred to as a blueprint.
• It is NOT OOA/OOD or a method
• Only a notation for capturing objects and the relationships
among objects (dependency; inheritance; realizes; aggregates, . .)
• UML is language-independent
• Analysis and design provide software “blueprints” captured in
UML.
• Blueprints serve as a tool for thought and as a form of
communication with others. 4
Thinking in Objects and UML – 2
• But it is far more essential to ‘think’ in terms of objects as
providing ‘services’ and accommodating ‘responsibilities.’
• Discuss: What is meant by ‘services?’ How indicated?
– How might you think these ‘services’ impact the design of classes?
– How might a client access these services?
– What is encapsulation? How does it relate to reusability? Self-
governance? Design?
• Discuss: What is meant by ‘responsibilities?’
– Encapsulation of data and services?
5
6
Thinking in Terms of Objects and UML - 3
• Object-Oriented Analysis (Overview)
– An investigation of the problem (rather than how a solution is defined)
– During OO analysis, there is an emphasis on finding and describing the
objects (or concepts) in the problem domain.
– For example, concepts in a Library Information System include Book,
and Library.
– High level views found in the application domain.
– Oftentimes called domain objects; entities.
7
Thinking in Terms of Objects and UML - 4
• Object-Oriented Design
– Emphasizes a conceptual solution that fulfills the requirements.
– Need to define software objects and how they collaborate to meet the
requirements.
– For example, in the Library Information System, a Book software object
may have a title attribute and a getChapter method.
• What are the methods needed to process the attributes?
• Designs are implemented in a programming language.
– In the example, we will have a Book class in Java.
8
Thinking in Terms of Objects and UML – 5
From Design to Implementation
Book
title
print()
public class Book {
public void print();
private String title;
}
Book
(concept)
Analysis
investigation
of the problem
Design
logical solution
Construction
code
Domain concept Representation in
analysis of concepts
Representation in an
object-oriented
programming language.
Can you see the services / responsibilities in the Book class?
Thinking in Objects and UML-6
• Then too, there are sets of proven design solutions to problems
that are considered ‘best practices.’
– Certain ‘groupings’ of classes with specific responsibilities / interfaces.
– These provide specific solutions to specific problems.
– Called Design Patterns
• We will discuss (much later) these standard patterns and how to
apply them to develop solutions to common design problems.
9
Thinking in Objects and UML-7
• Of course, design (solution to requirements) ‘assume’ a robust
requirements analysis has taken place.
• Use Cases are often used to capture stories of requirements and
are often views as ‘constituting’ the functional requirements,
but NOT the software quality factors (non-functional
requirements).
• Use Cases are not specifically designed to be object-oriented,
but rather are meant to capture how an application will be used.
• Many methods for capturing requirements.
• We will concentrate on Use Cases (ahead).
10
11
Basic Terms: Iterative, Evolutionary, and Agile
1. Introduction
• Iterative - the entire project will be composed of min-projects
and will iterate the same activities again and again (but on
different part of the project AND with different emphases) until
completion.
• Evolutionary (or incremental) - the software grows by
increments (to be opposed to the traditional, and somewhat old-
fashioned, Waterfall model of software development).
• Agile - we will use a light approach to software development
rather than a very rigid one (which may be needed for a safety-
critical system for example)
• This kind of approach seems better at treating software
development as a problem solving activity; also the use of
objects makes it amenable.
12
Our Approach:
•We need a Requirements Analysis approach with OOA/OOD need
to be practiced in a framework of a development process.
•We will adopt an agile approach (light weight, flexible) in the
context of the Unified Process, which can be used as a sample
iterative development process.
– Within this process, the principles can be discussed.
•Please note that there are several other contexts that may be used,
such as Scrum, XP, Feature-Driven Development, Lean
Development, Crystal Methods and others…and we will look at a
few of these.
13
Why the Unified Process:
• The Unified Process is a popular iterative software development
process.
• Iterative and evolutionary development involves relatively early
programming and testing of a partial system, in repeated cycles.
• It typically also means that development starts before the exact
software requirements have been specified in detail;
• Feedback (based on measurement) is used to clarify, correct and
improve the evolving specification:
• This is in complete contrast to what we usually mean by
engineering!
14
2. What is the Unified Process?
• The UP is very flexible and open and can include other practices
from other methods such as Extreme Programming (XP) or
Scrum for example.
– e.g. XP’s test-driven development, refactoring can fit within a UP
project; So can Scrum’s daily meeting.
– Being pragmatic in adapting a particular process to your needs is an
important skill : all projects are different.
We will be studying all of the topics found in Fig. 1.1
Topics and Skills
UML notation
Requirements
analysis
Principles and
guidelines
Patterns
Iterative
development with
an agile Unified
Process
OOA/D
The Rush to Code
• Critical ability to develop is to think in terms of objects and to
artfully assign responsibilities to software objects.
• Talk at great length in COP 3538 about encapsulation and
assigning methods to objects where the data is defined…
• One cannot design a solution if the requirements are not
understood.
• One cannot implement the design if the design is faulty.
• If I could only stop my students….
16
The Rush to Code
• Analysis: - investigate the problem and the requirements.
– What is needed? Required functions? Investigate domain objects.
– Problem Domain
– The Whats of a system.
– Do the right thing (analysis)
• Design:
– Conceptual solution that meets requirements.
– Not an implementation
– E.g. Describe a database schema and software objects.
– Avoid the CRUD activities and commonly understood functionality.
– The Solution Domain
– The ‘Hows’ of the system
– Do the thing right (design)
17
What is Object-Oriented Analysis and Design
• OOA: we find and describe business objects or concepts in the
problem domain
• OOD: we define how these software objects collaborate to
meet the requirements.
– Attributes and methods.
• OOP: Implementation: we implement the design objects in,
say, Java, C++, C#, etc.
18
Homework Assignment #1
due: 19 Sep start of class. Hardcopy please.
• Using the model below, develop a two-three page discussion
outlining the four activities listed and present the major features of
each.
A short definition and example of a domain model, interaction
diagram, and class diagram is sufficient, but be prepared to discuss
each of these.
Also, have a general idea about use cases – what they are designed
to do and what they are not designed to do.
19
Define Use Cases Define Domain Model Define Interaction
Diagrams
Define Design Class
Diagrams
Homework Assignment #1 (continued)
• Be aware that this concludes chapter 1. But there are a number
of pages in this chapter that I have not explicitly discussed in
class. You are responsible for these, and some of this may
appear in your midterm exams.
20
Ad

More Related Content

Similar to 5-CEN6016-Chapter1.ppt (20)

Unit 2
Unit 2Unit 2
Unit 2
GunasundariSelvaraj
 
Chapter 01 Object Oriented Analysis and Design (OOAD).ppt
Chapter 01 Object Oriented Analysis and Design (OOAD).pptChapter 01 Object Oriented Analysis and Design (OOAD).ppt
Chapter 01 Object Oriented Analysis and Design (OOAD).ppt
JosephNhlane
 
Object model
Object modelObject model
Object model
Tony Nguyen
 
Object model
Object modelObject model
Object model
Harry Potter
 
Object model
Object modelObject model
Object model
Fraboni Ec
 
Object model
Object modelObject model
Object model
Young Alista
 
Object model
Object modelObject model
Object model
Hoang Nguyen
 
Object model
Object modelObject model
Object model
Luis Goldster
 
Object model
Object modelObject model
Object model
James Wong
 
Module3 - Object Oriented Analysis & Functional Model.pdf
Module3 - Object Oriented Analysis & Functional Model.pdfModule3 - Object Oriented Analysis & Functional Model.pdf
Module3 - Object Oriented Analysis & Functional Model.pdf
Gerard Alba
 
01 introduction
01 introduction01 introduction
01 introduction
Baskarkncet
 
Chapter 04 Basic OOAD Process_Software Eng.ppt
Chapter 04 Basic OOAD Process_Software Eng.pptChapter 04 Basic OOAD Process_Software Eng.ppt
Chapter 04 Basic OOAD Process_Software Eng.ppt
AhammadUllah3
 
Assignment 1 SYD601 2012 rick_danby completed with audio
Assignment 1 SYD601 2012 rick_danby completed with audioAssignment 1 SYD601 2012 rick_danby completed with audio
Assignment 1 SYD601 2012 rick_danby completed with audio
RickNZ
 
Unit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptxUnit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptx
Ravindranath67
 
CS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and AnswerCS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and Answer
Gobinath Subramaniam
 
OOSD_UNIT1 (1).pptx
OOSD_UNIT1 (1).pptxOOSD_UNIT1 (1).pptx
OOSD_UNIT1 (1).pptx
DebabrataPain1
 
Object oriented analysis and design
Object oriented analysis and designObject oriented analysis and design
Object oriented analysis and design
naveed428
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
Manoj Reddy
 
oomd-unit-i-cgpa.ppt
oomd-unit-i-cgpa.pptoomd-unit-i-cgpa.ppt
oomd-unit-i-cgpa.ppt
Pavan992098
 
Object Oriented Programming Part 2 of Unit 1
Object Oriented Programming Part 2 of Unit 1Object Oriented Programming Part 2 of Unit 1
Object Oriented Programming Part 2 of Unit 1
VigneshkumarPonnusam1
 
Chapter 01 Object Oriented Analysis and Design (OOAD).ppt
Chapter 01 Object Oriented Analysis and Design (OOAD).pptChapter 01 Object Oriented Analysis and Design (OOAD).ppt
Chapter 01 Object Oriented Analysis and Design (OOAD).ppt
JosephNhlane
 
Module3 - Object Oriented Analysis & Functional Model.pdf
Module3 - Object Oriented Analysis & Functional Model.pdfModule3 - Object Oriented Analysis & Functional Model.pdf
Module3 - Object Oriented Analysis & Functional Model.pdf
Gerard Alba
 
Chapter 04 Basic OOAD Process_Software Eng.ppt
Chapter 04 Basic OOAD Process_Software Eng.pptChapter 04 Basic OOAD Process_Software Eng.ppt
Chapter 04 Basic OOAD Process_Software Eng.ppt
AhammadUllah3
 
Assignment 1 SYD601 2012 rick_danby completed with audio
Assignment 1 SYD601 2012 rick_danby completed with audioAssignment 1 SYD601 2012 rick_danby completed with audio
Assignment 1 SYD601 2012 rick_danby completed with audio
RickNZ
 
Unit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptxUnit-1 OOAD Introduction.pptx
Unit-1 OOAD Introduction.pptx
Ravindranath67
 
CS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and AnswerCS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and Answer
Gobinath Subramaniam
 
Object oriented analysis and design
Object oriented analysis and designObject oriented analysis and design
Object oriented analysis and design
naveed428
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
Manoj Reddy
 
oomd-unit-i-cgpa.ppt
oomd-unit-i-cgpa.pptoomd-unit-i-cgpa.ppt
oomd-unit-i-cgpa.ppt
Pavan992098
 
Object Oriented Programming Part 2 of Unit 1
Object Oriented Programming Part 2 of Unit 1Object Oriented Programming Part 2 of Unit 1
Object Oriented Programming Part 2 of Unit 1
VigneshkumarPonnusam1
 

Recently uploaded (20)

pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Ad

5-CEN6016-Chapter1.ppt

  • 2. Disclaimer • Slides come from a variety of sources: – Craig Larman-developed slides; author of this classic textbook. – Dr. Constantinos Constantinides, University of London – Slides from the University of Pittsburg – Slides from many of my existing slides on these same topics – New slides from sources unknown… 2
  • 3. Chapter 1 • Chapter one covers a host of many topics central to today’s technologies. • These skills are essential in today’s professional community. • We will talk about (in some detail) iterative development, evolutionary development, the Unified Process, agile approaches, UML, • Later on we will advance into more complex concepts that address framework design and architectural analysis. • Please note that the materials are meant to be foundational. 3
  • 4. Thinking in Objects and UML - 1 • The Unified Modeling Language (UML) is a standard diagramming notation; sometimes referred to as a blueprint. • It is NOT OOA/OOD or a method • Only a notation for capturing objects and the relationships among objects (dependency; inheritance; realizes; aggregates, . .) • UML is language-independent • Analysis and design provide software “blueprints” captured in UML. • Blueprints serve as a tool for thought and as a form of communication with others. 4
  • 5. Thinking in Objects and UML – 2 • But it is far more essential to ‘think’ in terms of objects as providing ‘services’ and accommodating ‘responsibilities.’ • Discuss: What is meant by ‘services?’ How indicated? – How might you think these ‘services’ impact the design of classes? – How might a client access these services? – What is encapsulation? How does it relate to reusability? Self- governance? Design? • Discuss: What is meant by ‘responsibilities?’ – Encapsulation of data and services? 5
  • 6. 6 Thinking in Terms of Objects and UML - 3 • Object-Oriented Analysis (Overview) – An investigation of the problem (rather than how a solution is defined) – During OO analysis, there is an emphasis on finding and describing the objects (or concepts) in the problem domain. – For example, concepts in a Library Information System include Book, and Library. – High level views found in the application domain. – Oftentimes called domain objects; entities.
  • 7. 7 Thinking in Terms of Objects and UML - 4 • Object-Oriented Design – Emphasizes a conceptual solution that fulfills the requirements. – Need to define software objects and how they collaborate to meet the requirements. – For example, in the Library Information System, a Book software object may have a title attribute and a getChapter method. • What are the methods needed to process the attributes? • Designs are implemented in a programming language. – In the example, we will have a Book class in Java.
  • 8. 8 Thinking in Terms of Objects and UML – 5 From Design to Implementation Book title print() public class Book { public void print(); private String title; } Book (concept) Analysis investigation of the problem Design logical solution Construction code Domain concept Representation in analysis of concepts Representation in an object-oriented programming language. Can you see the services / responsibilities in the Book class?
  • 9. Thinking in Objects and UML-6 • Then too, there are sets of proven design solutions to problems that are considered ‘best practices.’ – Certain ‘groupings’ of classes with specific responsibilities / interfaces. – These provide specific solutions to specific problems. – Called Design Patterns • We will discuss (much later) these standard patterns and how to apply them to develop solutions to common design problems. 9
  • 10. Thinking in Objects and UML-7 • Of course, design (solution to requirements) ‘assume’ a robust requirements analysis has taken place. • Use Cases are often used to capture stories of requirements and are often views as ‘constituting’ the functional requirements, but NOT the software quality factors (non-functional requirements). • Use Cases are not specifically designed to be object-oriented, but rather are meant to capture how an application will be used. • Many methods for capturing requirements. • We will concentrate on Use Cases (ahead). 10
  • 11. 11 Basic Terms: Iterative, Evolutionary, and Agile 1. Introduction • Iterative - the entire project will be composed of min-projects and will iterate the same activities again and again (but on different part of the project AND with different emphases) until completion. • Evolutionary (or incremental) - the software grows by increments (to be opposed to the traditional, and somewhat old- fashioned, Waterfall model of software development). • Agile - we will use a light approach to software development rather than a very rigid one (which may be needed for a safety- critical system for example) • This kind of approach seems better at treating software development as a problem solving activity; also the use of objects makes it amenable.
  • 12. 12 Our Approach: •We need a Requirements Analysis approach with OOA/OOD need to be practiced in a framework of a development process. •We will adopt an agile approach (light weight, flexible) in the context of the Unified Process, which can be used as a sample iterative development process. – Within this process, the principles can be discussed. •Please note that there are several other contexts that may be used, such as Scrum, XP, Feature-Driven Development, Lean Development, Crystal Methods and others…and we will look at a few of these.
  • 13. 13 Why the Unified Process: • The Unified Process is a popular iterative software development process. • Iterative and evolutionary development involves relatively early programming and testing of a partial system, in repeated cycles. • It typically also means that development starts before the exact software requirements have been specified in detail; • Feedback (based on measurement) is used to clarify, correct and improve the evolving specification: • This is in complete contrast to what we usually mean by engineering!
  • 14. 14 2. What is the Unified Process? • The UP is very flexible and open and can include other practices from other methods such as Extreme Programming (XP) or Scrum for example. – e.g. XP’s test-driven development, refactoring can fit within a UP project; So can Scrum’s daily meeting. – Being pragmatic in adapting a particular process to your needs is an important skill : all projects are different.
  • 15. We will be studying all of the topics found in Fig. 1.1 Topics and Skills UML notation Requirements analysis Principles and guidelines Patterns Iterative development with an agile Unified Process OOA/D
  • 16. The Rush to Code • Critical ability to develop is to think in terms of objects and to artfully assign responsibilities to software objects. • Talk at great length in COP 3538 about encapsulation and assigning methods to objects where the data is defined… • One cannot design a solution if the requirements are not understood. • One cannot implement the design if the design is faulty. • If I could only stop my students…. 16
  • 17. The Rush to Code • Analysis: - investigate the problem and the requirements. – What is needed? Required functions? Investigate domain objects. – Problem Domain – The Whats of a system. – Do the right thing (analysis) • Design: – Conceptual solution that meets requirements. – Not an implementation – E.g. Describe a database schema and software objects. – Avoid the CRUD activities and commonly understood functionality. – The Solution Domain – The ‘Hows’ of the system – Do the thing right (design) 17
  • 18. What is Object-Oriented Analysis and Design • OOA: we find and describe business objects or concepts in the problem domain • OOD: we define how these software objects collaborate to meet the requirements. – Attributes and methods. • OOP: Implementation: we implement the design objects in, say, Java, C++, C#, etc. 18
  • 19. Homework Assignment #1 due: 19 Sep start of class. Hardcopy please. • Using the model below, develop a two-three page discussion outlining the four activities listed and present the major features of each. A short definition and example of a domain model, interaction diagram, and class diagram is sufficient, but be prepared to discuss each of these. Also, have a general idea about use cases – what they are designed to do and what they are not designed to do. 19 Define Use Cases Define Domain Model Define Interaction Diagrams Define Design Class Diagrams
  • 20. Homework Assignment #1 (continued) • Be aware that this concludes chapter 1. But there are a number of pages in this chapter that I have not explicitly discussed in class. You are responsible for these, and some of this may appear in your midterm exams. 20