slide1 l.
Skip this Video
Loading SlideShow in 5 Seconds..
OOAD PowerPoint Presentation
Download Presentation

Loading in 2 Seconds...

play fullscreen
1 / 33

OOAD - PowerPoint PPT Presentation

  • Uploaded on

OOAD. Object Oriented Analysis and Design Methodology. Today’s Discussion. Background – Why OO is hot OO Methodology – Java Factory Approach Hands on application of CRC Methodology Informal Questions anytime Food and Drink anytime. Object Oriented Headlines.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'OOAD' - oke

Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript


Object Oriented Analysis and Design Methodology

today s discussion
Today’s Discussion
  • Background – Why OO is hot
  • OO Methodology – Java Factory Approach
  • Hands on application of CRC Methodology
  • Informal
    • Questions anytime
    • Food and Drink anytime
object oriented headlines
Object Oriented Headlines

“Object-Oriented Technology Ventures Into the Real World”

“IBM unveils new object-oriented middleware”

“Expo to serve up object-oriented products”

“Object-Oriented is Here to Stay”

motivation for ooad
Motivation For OOAD

Traditional Methodologies are broken because…

  • They haven’t solved problems of quality and timeliness.
  • They separates data from procedures making software reusability more difficult.
  • They don’t work well in our non-linear world.
linear vs non linear
Linear vs. Non-linear



Page 1

Page 2

Step 1

Step 2

Page 3

Page 4

Step 3

ooad vs traditional approach
OOAD Vs. Traditional Approach
  • Process is less rigorous
    • Analysis Paralysis
  • Process is more fluid
    • Waterfall vs. Onion
  • No definitive stopping point
    • How many iterations?
  • More Trial and Error…

“I failed my way to success.”

Thomas Edison

ooad methodology roots
OOAD Methodology Roots
  • Unified Modeling Language(UML)
    • Use Cases
    • Class Diagrams
  • Sun Microsystems Java factory
    • CRC Methodology
      • Class
      • Responsibility
      • Collaboration
defining the process
Defining the Process
  • Determine the Requirements
  • Identify the Classes and Objects
  • Describe the Object Collaborations and the classes
  • Sketch the User Interface
diagram of ooad
Diagram of OOAD

Class Diagram



Identify Classes & Objects

Describe Collaboration

Sketch Interface


Interface Sketch


CRC Cards

determining requirements
Determining Requirements
  • Summary Paragraph
    • Define general approach to solving problem
    • Emphasize the what and not the how
    • Describe all major functions(operations/methods)
    • Define boundaries
identifying classes and objects
Identifying Classes and Objects
  • CRC Card Preparation
    • Class(data attributes)
    • Responsibility(Message response)
    • Collaboration(Class interaction)
class definition
Class Definition
  • Classes are the templates or blueprints for objects
  • Classes define the attributes and behavior(methods) for objects
  • Objects contain the data and the methods
  • Objects are the nouns of the Object Oriented world
so how do you define classes
So how do you define Classes??

1) Read Problem Summary statement for nouns and noun phrases which may be physical objects, concepts, categories of objects or attributes of other objects. Create a list of all of these items.

2) Review list for Class candidates. Transfer classes to CRC card.

noun phrases
Noun Phrases
  • Renter Application
  • Bugs
  • Inventory
  • User
  • Message
transitioning nouns to classes
Transitioning Nouns to Classes
  • Not always easy
  • Iterative
  • Experience
  • Steps…
    • Logical Groupings and Leveling
    • Identify Implied Classes
    • Eliminate noise(primitives, attributes, messages)

“Design Decisions have no obvious right and wrong answers.”

noun phrases class steps
Renter Application





Logical Groupings/Leveling

Implied Classes

Noise elimination

Noun Phrases Class Steps
crc card front
CRC Card - Front

Class: Renter



(Front of Card)

defining responsibilities
Defining Responsibilities
  • Use Problem Statement to identify verbs
  • Logical group and organize action items
  • Match Method to Class
  • Adjust for any omissions
method verbs identification
Track Inventory

Rent Bug

Decrease Inventory

Return Bug

Increase Inventory

Display Message

Logical Grouping


Match Method to Class

Method Verbs Identification
bug rental methods

Rent Bug

Return Bug

Display Message


Rent Bug

Return Bug

Supply Message

Bug Rental Methods
describing collaboration
Describing Collaboration
  • Develop Use-case scenarios
    • Sequence of related events
  • Walk Through Use-cases
    • Identify message exchanges
    • Identify missed Classes
identify use case scenarios
Identify Use-Case Scenarios
  • Customer Rents a Bug
    • ) Customer enters request for bug
    • ) Lender checks inventory for bug availability
    • ) If inventory is greater than zero
      • Inventory is decreased by one
      • Bug is made available to Customer
      • Message is sent to Customer from Lender
    • ) If inventory is zero, error message is sent to customer from Lender
now it s your turn develop use case for bug returns
Now it’s your turn…Develop Use-Case for Bug Returns
  • Customer returns bug
  • Lender increases inventory
  • Lender sends message to Customer
crc card front27
CRC Card - Front

Class: Renter






Rent Bug

Return Bug

Display Message

(Front of Card)

identifying attributes
Identifying Attributes
  • Characteristics of Class
  • Adjectives of the Object Oriented World
  • Inventory Example
    • Bug ID
    • Bug Description
    • Bug Version
your turn again develop some common attributes for the renter
Your turn again…Develop some common attributes for the Renter
  • Customer Name
  • Customer Address
  • Customer Status
  • Customer Rentals
  • Customer Balance
crc card back
CRC Card - Back


developing a class diagram
Developing a Class Diagram

Class Name



crc adjustments
CRC Adjustments
  • Create new CRC cards
  • Trash invalid CRC cards
  • Challenge yourself
    • Not a cookbook
    • Process is not magic;requires critical thinking skills
  • Iterate!
next step
Next Step...
  • Onion Peeling(aka Iterate)
  • Evolve From What to How
    • From abstract to detailed functionality
    • Define Data Access
    • Define Physical environment