Top Banner
Friday, January 23, 2015 1 Presented By Manoj Kumar Object Oriented Methodology
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 1

Presented By

Manoj Kumar

Object Oriented Methodology

Page 2: Some Basic Concepts of Object Oriented Methodology

It is a new way of thinking about problems using models based

on real world concepts.

The basic construct is object which combines both data

structure and behavior in a single entity.

Rambaugh presents an object oriented software development

methodology, the Object Modeling Technique (OMT) which

extends from analysis through design to implementation.

Friday, January 23, 2015 2

Page 3: Some Basic Concepts of Object Oriented Methodology

Analysis model is built to abstract essential aspects of applicationdomain which contains objects found in application, their propertiesand behavior.

Then design model is made to describe and optimize theimplementation.

Finally, the design model is implemented in a programminglanguage, database or hardware.

Graphical notation is used for expressing object-oriented models.

Friday, January 23, 2015 3

Continue…

Page 4: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 4

What is Object-Oriented?

Software is organized as a collection of discrete objects that incorporate

both data structure and behavior.

In general, it includes - identity, classification, polymorphism and

inheritance.

Object Oriented Programming Language =

Object Based Programming Language + Inheritance + Dynamic Binding

Page 5: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 5Friday, January 23, 2015 5

Object-Oriented Development?

The theme is the identification and organization of application

concepts rather than final representation in a prog. Language.

OOD approach encourages software developers to work and

think in terms of the application domain through most of the

software engineering life cycle.

It is a conceptual process independent of a programming

language until the final stage

Page 6: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 6

Object-Oriented Methodology

Four phases of OMT (can be performed iteratively)

Analysis: Objects, dynamic and functional models

System Design: Basic architecture of the system.

Object Design: Static, dynamic and functional models of objects.

Implementation: Reusable, extendible and robust code.

Page 7: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 7

Object-Oriented Models

A model is an abstraction of something for the purpose ofunderstanding it before building it.

There are three models,

Object model

Dynamic model

Functional model

Page 8: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 8

Object Model

Describes basic structure of objects and their relationship.

Contains object diagram.

Object diagram is a graph whose nodes are object classes(Classes) and whose arcs are relationships among classes.

Page 9: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 9Friday, January 23, 2015 9

Dynamic Model

Describes the aspects of a system that change over time.

It specifies and implement control aspects of a system.

Contains state diagram.

State diagram is a graph whose nodes are states and

whose arcs are data-flows.

Page 10: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 10Friday, January 23, 2015 10Friday, January 23, 2015 10

Functional Model

Describes data value transformation within a system.

Contains data flow diagram.

Data Flow Diagram is a graph whose nodes areprocesses and whose arcs are data flows.

Page 11: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 11Friday, January 23, 2015 11Friday, January 23, 2015 11

Dynamic Modeling

First examine the system at a single moment of time.

Then examine changes to objects and their relationships over time.

Those aspects of a system that are concerned with time and changesare dynamic model, in contrast with static or object model.

Control is the aspect of a system that describes the sequences ofoperations that occur in response to external stimuli withoutconsidering what the operation do, what they operate on, and howthey are implemented.

Page 12: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 12Friday, January 23, 2015 12Friday, January 23, 2015 12Friday, January 23, 2015 12

Events

It is something that happens at a point in time

One event may logically precede or follow another or the two eventsmay be unrelated.

The two events are causally related.

The two events are causally unrelated are said to be concurrent i.e.they have no effect on each other.

In modeling a system we do not establish an ordering betweenconcurrent events because they can occur at any order

Page 13: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 13Friday, January 23, 2015 13Friday, January 23, 2015 13Friday, January 23, 2015 13Friday, January 23, 2015 13

Continue…

An event is a one-way transmission of information from oneobject to another.

In real world, all objects exist concurrently.

An object sending an event to another object may expect areply but the reply is a separate event under the control ofthe second object which may or may not choose to send it.

Every event is a unique occurrence, but we group them intoevent classes and give each event class a name to indicatecommon structure and behavior.

Page 14: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 14

A scenario is a sequence of events that occurs during one particular

execution of a system.

The scope of a scenario can vary; it may include all events in the

system or it may include only those events generated by certain

objects in the system.

It can be the historical record of executing a system or a thought

experiment of executing a proposed system.

An event trace extends the scenario to clarify events between objects

Scenario & Event-Trace

Page 15: Some Basic Concepts of Object Oriented Methodology

It is an abstraction of the attribute values and links of an object.

Set of values are grouped together into a state according toproperties that affect the gross behavior of the object e.g. the stateof bank is either solvent or insolvent whether its assets are greaterthan liabilities.

A state specifies the response of the object to input events.

Response is same for all values within the same state and maybe different for values in different states

Response of an object to an event may include an action orchange of states by the object.

Friday, January 23, 2015 15

States

Page 16: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 16

State diagram is a graph whose nodes are states and whose directed

arcs are transitions labeled by event names.

A state diagram describes the behavior of a single class.

Since all instances of a class have same behavior they all share the

same state diagram as they all share the same class features.

But as each object has its own attribute values so each object has its

own state.

Each object is independent of the other objects and proceeds as its

own pace.

State Diagram

Page 17: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 17

Page 18: Some Basic Concepts of Object Oriented Methodology

Friday, January 23, 2015 18

State Diagram Banking

System

Page 19: Some Basic Concepts of Object Oriented Methodology

ANY

QUESTION?

Friday, January 23, 2015 19

Page 20: Some Basic Concepts of Object Oriented Methodology

THANK

YOU!

Friday, January 23, 2015 20