Docsity

Object Oriented Methodology - OOM - 02, Study notes of Object Oriented Programming

Partial preview of the text

Download Object Oriented Methodology - OOM - 02 and more Study notes Object Oriented Programming in PDF only on Docsity!

  • OOM 02OOM

OOM for Software Projects OOM for Software Projects

 (^) Most of the learners are prone to jump right into the coding

phase, without spending adequate time on design.

 (^) Whereas any small or big software project requires more time on

Understanding the Requirements of Software, Design of the project and then only Implementation of the agreed Design.

 (^) As OOM has become de-facto the programming paradigm today,

it is required in the completeness of the OOM also to have capabilities / techniques to have Software project management techniques.

 (^) It is meant to focus attention on the all-important design portion

of the process using OOM. 05/05/10 2

Simulated ATM Case Study Simulated ATM Case Study

 The step-by-step progression towards the successful

completion of the project will require following;

 Begin with the Requirements and User Interface.

The first task that must be performed in any project is

clearly understanding the requirements.

 Then view the Use Cases and Further Analysis.

Analysis is begun by identifying the use cases that

follow from the requirements, and detailing a flow of

events for each.

 Further analysis identifies the key classes that are

suggested by the use cases,

05/05/10 4

What is a Use-Case What is a Use-Case

 A use case is a description of a system’s behavior as

it responds to a request that originates from outside of

that system.

 In other words, a use case describes "who" can do

"what" with the system in question.

 The use case technique is used to capture a system's

behavioral requirements by detailing scenario-driven

threads through the functional requirements.

05/05/10 5

OOM for OOMOOM for OOM

( Object Oriented Methodology ( Object Oriented Methodology

for for

Object Oriented Modeling ) Object Oriented Modeling )

Contents Contents

 OOM: Object Oriented Analysis & Design

 Review of OOM with Java

 (^) Problem solving in Object Oriented Methodology

 Software Projects & OO Modeling Concepts

 (^) Project modeling with OOM

 Design notations: UML

 Software Design:Software Design:

 Design : Users tips and guidelines
 OOA & OOD
 UML Design & Modeling
 Recent Advances: OO Software Design patterns
 Projects and Implementations

05/05/10 8

OOM with Java: Approach OOM with Java: Approach

 (^) Concepts understanding through Java implementation

Lab. Exercises:Lab. Exercises: Simple problem solving Introducing Core Java.

 Without grading for first 04 weeks & then

simple individual assignments for next 02

weeks/ Group assignments for next 02

weeks.

OOM Design & MethodologyOOM Design & Methodology

 Design concepts & Modeling notations

 Project management in OOM: UML diagrams

 Learning of Advanced Java Concepts through

05/05/10 assignments^ assignments 10

OOAD OOAD

 (^) Object-oriented design (OODObject-oriented design (OOD ) paradigm suggests that the natural objects occurring in a problem should be identified first and then implemented.

 (^) Object-oriented design (OOD)Object-oriented design (OOD) techniques not only identify objects but also identify the internal details of these identified objects.

 (^) Also, the relationships existing among different objects are

identified and represented in such a way that the objects can be easily implemented using a programming language.

05/05/10 11

Software Architecture Software Architecture

Software Architecture Software Architecture defines the components of a system, shows how they are packaged , and howhow they interactthey interact with one another.

 “The overall structure of the software and the“The overall structure of the software and the

ways in which that structure is,ways in which that structure is, providesprovides

conceptual integrity for a system.”conceptual integrity for a system.”

- Shaw et al., Software Architecture

05/05/10 13

Software Design Terms Software Design Terms

 (^) architecture — the overall structure of the software

 (^) patterns — “conveys the essence” of a proven design solution

 (^) abstraction — data, procedure, control

 (^) refinement — elaboration of detail for all abstractions

 (^) refactoring — improve design without effecting behavior

 (^) information hiding — controlled interfaces

 (^) modularity — compartmentalization of data and function

 (^) functional independence — high cohesion and low coupling

05/05/10 14

OOSE design tips OOSE design tips

 (^) Depth of the inheritance tree. The deeper a class is in the class inheritance hierarchy, the greater is the number of methods it is likely to inherit, making it more complex. Therefore, the height of the inheritance tree should not be very large.

 (^) Response for a class. This is a measure of the maximum number of methods that an instance of this class would call. If the same method is called more than once, then it is counted only once. A class which calls more than aboutcalls more than about seven different methods is susceptible to errors.seven different methods

 (^) Number of messages per use case. If methods of a large number of objects are invoked in a chain action in response to a single message, testing and debugging of the objects becomes complicated. Therefore, a single message shouldsingle message should not result in excessive message generation not result in excessive message generation and transmission in a system.

05/05/10 16

OOM OOM

 (^) Heart of object-oriented Analysis & Design is the construction of a model.

 (^) The model abstractsabstracts the essential details of the underlying problem from its usually complicated real world. This assumes special significance in handling medium/large sized software projects

 (^) The OO model is then implemented in to programs using any

OO Programming language.

05/05/10 17

Design Notations Design Notations

 (^) Data-Flow Diagrams (e.g., "Bubble charts", directed graphs, other formal flow notations).

 (^) Structure Charts,

 (^) Hierarchical Process Input Output diagrams (global and detailed).

 (^) Structured Analysis and Design datagrams.

 (^) Jackson's data structure diagrams.

 (^) Notations for real-time methods (queues, interrupts, messages, etc).

Object Oriented Design Notations

UML Diagrams

05/05/10 19

OO Modeling standards

 (^) Although there were many efforts for OO modeling standards.

 (^) In the 1980s Grady Booch published a paper on how to design for Ada but gave it the title: Object-Oriented Design.

 (^) Booch was able to extend his ideas to a genuinely object-oriented design method by 1991 in his book with the same title, revised in 1993 (Booch, 1994).

 (^) Booch’s method became very popular in C++ programmers.

 (^) In 1994 there were. over 72 methods or fragments of methods for OOM. The OO community soon realized that this situation was untenable if the technology was to be used commercially on any significant scale.

 (^) Jim Rumbaugh , another influential OO modeling expert, join Grady Booch at Rational Inc. & two merged their notations into what became the first version of UML (Booch et al., 1999).

 (^) Later they were joined by Ivar Jacobson who added elements of his Objectory notation and began the development of the Rational Unified Process (RUP).