Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building The Analysis Model. Object-Oriented Analysis The object oriented analysis define all classes, the relationships and behavior associated with.

Similar presentations


Presentation on theme: "Building The Analysis Model. Object-Oriented Analysis The object oriented analysis define all classes, the relationships and behavior associated with."— Presentation transcript:

1 Building The Analysis Model

2 Object-Oriented Analysis The object oriented analysis define all classes, the relationships and behavior associated with them. Key concepts of object oriented are: – Classes and objects – Encapsulation – Inheritance

3 Classes Object-Oriented thinking begins with the definition of a class, often defined as: – template – generalized description – “blueprint” describing a collection of similar items A metaclass (also called a superclass) establishes a hierarchy of classes.

4 Class Hierarchy Chair Table Desk”Chable" instances of Chair PieceOfFurniture (superclass) subclasses of the

5 Encapsulation The object encapsulates both data and the logical procedures required to manipulate the data. It is information hiding. method # 1 data method # 2 method # 4 method # 5 method # 6 method # 3

6 Methods An executable procedure that is encapsulated in a class and is designed to operate on one or more data attributes that are defined as part of the class. A method is called via message passing. methods

7 Scenario-Based Modeling “Use-cases are simply an aid to defining what exists outside the system (actors) and what should be performed by the system.” Ivar Jacobson A scenario that describes a thread of usage for a system. Actors represent roles people or devices play as the system functions.

8 Use-Case Diagram: Example Security system for home

9 Activity Diagram It describe the workflow of the systems behavior. Activities are the state of doing something. Supplements the use-case by providing a diagrammatic representation of procedural flow.

10 Flow-Oriented Modeling Represents how data objects are transformed at they move through the system. A data flow diagram (DFD) is the diagrammatic form that is used. Every computer-based system is an information transform. computerbasedsystem input output

11 Flow Modeling Notation external entity process data flow data store A producer or consumer of data Examples: a person, a device, a sensor Data must always be originate somewhere and must always be sent to something A data transformer (changes input to output) Examples: compute taxes, determine area, format report, display graph Data must always be processed in some way to achieve system function Data flows through a system, beginning as input and be transformed into output. Data is often stored for later use.

12 Level 0 DFD Example user processingrequest digitalvideoprocessor requestedvideosignal monitor

13 Level 1 DFD Example P a b xy p1 p2 p3 p4 p5 a b c d e f g level 0 level 1

14 Flow Modeling Notes Each bubble is refined until it does just one thing. The expansion ratio decreases as the number of levels increase. Most systems require between 3 and 7 levels for an adequate flow model. A single data flow item (arrow) may be expanded as levels increase.

15 Process Specification (PSPEC) PSPEC narrative pseudocode equations tables diagrams and/or charts bubble

16 Control Flow Diagrams Represents “events” and the processes that manage events. An “event” is a Boolean condition i.e. true/false. Control Specification (CSPEC) The CSPEC can be: State diagram State diagram (sequential spec) State transition table State transition table Activation table Activation table


Download ppt "Building The Analysis Model. Object-Oriented Analysis The object oriented analysis define all classes, the relationships and behavior associated with."

Similar presentations


Ads by Google