Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS OBJECT ORIENTED ANALYSIS AND DESIGN

Similar presentations


Presentation on theme: "CS OBJECT ORIENTED ANALYSIS AND DESIGN"— Presentation transcript:

1 CS6502 - OBJECT ORIENTED ANALYSIS AND DESIGN
Subject Handler, Ms.K.Esther Rani ,AP Department of IT

2 OBJECTIVES To learn basic OO analysis and design skills through an elaborate case study. To use the UML design diagrams To apply the appropriate design patterns

3 SYLLABUS

4 SYLLABUS

5 Book & page no. used for teaching
LESSON PLAN Unit Lecture No. Topics Book & page no. used for teaching Topic No. UNIT I 1 Introduction to OOAD T1 & 1.1 1.0 2 Unified process T1 & 1.3 3 UML diagrams T1 & 1.4 – 1.6 1.2 4 Use case T2 & 6 5 Class diagrams T1 & 3.5 Interaction diagrams T1 & 3.6 7 State diagrams T1 & 5.1 8 Activity diagrams T1 & 2.10 9 Package, component and deployment diagrams T1 & 5.3

6 Book & page no. used for teaching
LESSON PLAN Unit Lecture No. Topics Book & page no. used for teaching Topic No. UNIT II 10 GRASP: designing objects with responsibilities T1 & 4.1 11 Creator & information expert T1 & 4.2&4.3 12 Low coupling & Controller T1 & 4.4 & 4.5 13 High cohesion T1 & 4.6 14 Design patterns -creational T2 & 23 15 Factory method T2 & 26 16 Structural NET 17 Bridge -adapter T2 & 18 Behavioral 19 Strategy - observer T2 &

7 Book & page no. used for teaching
LESSON PLAN Unit Lecture No. Topics Book & page no. used for teaching Topic No. UNIT III 20 Case study – the Next Gen POS system T1 & 1.4 21 Inception T1 & 1.5 22 Use case Modeling T1 & 1.7 23 Relating Use cases – include, extend and generalization T1 & 1.8 24 Elaboration T1 & 2.1 Domain Models T1 & 2.2 25 Finding conceptual classes and description classes T1 & 2.3&2.4 26 Associations & Attributes T1 & 2.5&2.6 27 Domain model refinement T1 & 2.8 28 Finding conceptual class Hierarchies T1 & 2.9

8 Book & page no. used for teaching
LESSON PLAN Unit Lecture No. Topics Book & page no. used for teaching Topic No. UNIT IV 29 System sequence diagrams T1 & 3.1 30 Relationship between sequence diagrams and use cases T1 & 3.2 31,32 Logical architecture and UML package diagram T1 & 3.3 33,34 Logical architecture refinement T1 & 3.4 35,36 UML class diagrams T1 & 3.5 37,38 UML interaction diagrams T1 & 3.6 39,40 Applying GoF design patterns T1 & 4.8

9 Book & page no. used for teaching
LESSON PLAN Unit Lecture No. Topics Book & page no. used for teaching Topic No. UNIT V 41,42 Mapping design to code T1 & 5.4 43 Testing: Issues in OO Testing T2 & 26 44,45 Class Testing NET 46,47 OO Integration Testing 48 GUI Testing 49,50 OO System Testing

10 SYNOPSIS Highlights of the UNIT - 1 : UP PHASES ACTIVITY DIAGRAM
UML STATE DIAGRAMS UML DEPLOYMENT AND COMPONENT DIAGRAMS

11 SYNOPSIS Highlights of the UNIT - 2 : GRASP: PATTERNS
GOF DESIGN PATTERNS

12 SYNOPSIS Highlights of the UNIT - 3 : NEXTGEN PoS SYSTEM
USE CASE DIAGRAM CONCEPTUAL CLASS ASSOCIATION & AGGREGATION

13 SYNOPSIS Highlights of the UNIT - 4 : LOGICAL ARCHITECTURE
UML CLASS DIAGRAMS UML INTERACTION DIAGRAMS

14 SYNOPSIS Highlights of the UNIT - 5 : TESTING OO CODE
CLASS TESTING PROCESS TESTING TOOLS TESTING LIFE CYCLE

15 UNIT I UP PHASES The unified process phases are Inception Elaboration
Construction Transition UNIT I

16 ACTIVITY DIAGRAM It shows the flow of events with our system & what is going on inside a use case or among several classes . It can be used to model an entire business process. Start state Start state shows the beginning of a workflow on an activity diagram . A start state is represented by a solid circle. End state An end state represents a final or terminal state on an activity diagram. A end state is represented by a bull’s eye. State transition A state transition shows what activity follows after another . It is represented by a solid line with an arrow.

17 Cont.. Activity It represents the performance of a task within the workflow . Activity is represented by a round box (horizontal top and bottom with convex sides) Decision A decision is a point in an activity diagram where guard conditions(UML calls) are used to indicate different possible transitions. It is represented by a diamond symbol. Synchronization bar A synchronization bar allows to show concurrent threads in a work flow of a use case . It is represented by a thick horizontal or vertical line.

18 EXAMPLE DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM (ISSUE BOOK )

19 STATE CHART DIAGRAM It describes the behaviour of system.
Basic elements with notations: Initial state ( Solid circle) State ( Rounded rectangle) Transition ( Arrow labeled with event/action) Final state ( Bull’s eye )

20 EXAMPLE DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM ( BOOK)

21 COMPONENT DIAGRAM It describes the organization of physical components and shows the physical aspect of the object oriented software system. Basic symbols with notations: Component ( Rectangle with two tabs at left side) Interface ( ) Dependency (Dashed arrow )

22 EXAMPLE DIAGRAM FOR BOOK BANK SYSTEM

23 DEPLOYMENT DIAGRAM It describes run time configuration of processing nodes among components of the system. Basic elements with notations: Node ( Cube ) Connection (Solid line / Dashed arrow) TWO types of node: 1.Device node – Example: Computer , Mobile Phone 2.Execution Environment Node – Example: OS , DB engine, Web browser and technologies.

24 GRASP PATTERNS Creator - Creating objects for OO system
UNIT II GRASP PATTERNS GRASP-General Responsibility Assignment Software Pattern Creator - Creating objects for OO system Information expert – Delegating responsibilities on classes Low coupling – Making low dependency between classes Controller- Responsible for receiving and handling a system message High cohesion – Used to keep objects focused , manageable & understandable .

25 GOF DESIGN PATTERN It is a foundation of all other patterns. 1.Adaptor – convert programming interface of one class to other 2.Singleton – Single instance is created for one class 3.Factory – Implement the concept of factory 4.Observer – Software design pattern to denote the dependents.

26 UNIT III NEXTGEN POS SYSTEM
It is a computerized application to record sales and handle payments It is used in retail store It includes hardware components such as computer, bar code scanner and the software to run the system. It supports multiple client side terminals

27 USE CASE DIAGRAM It shows a set of use cases and actors and their relationships . The functionality of system is described in a no of different use cases each of which represents a specific flow of events in the system. Actor It is the user (or) someone / something outside the system that interacts with the system (it must be a noun) & it is represented by a stickman. Use case It represents a sequence of actions (it must be a verb) & it is represented by an oval (ellipse) Eg: Borrow book is the one of the functionalities in Library system. Borrow Book

28 Cont.. Relationships 1.communication –solid path connection between actor &usecase. Unidirectional & Bi-directional 2.uses-relationship between usecases is shown by generalization arrow from usecase. 3.extends-it is used when one usecase is similar to other usecase. Types of usecase Actor’s name and use case names should follow the capitalization. Use cases could be viewed as concrete or abstract. An abstract use case is not complete and has no initiation actors but is used by a concrete use case, which does interact with actors.

29 EXAMPLE DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM

30 CONCEPTUAL CLASS It is an object , thing or idea to understand the real world situation THREE strategies to find conceptual class Reuse or modify existing models Use a category list Identify noun phrases

31 ASSOCIATION AND AGGREGATION
ASSOCIATION It is a relationship between two or more classes to indicate connections between them. Examples: 1 has 1 1 belongs to 1 Customer Account Student Class

32 Cont.. AGGREGATION It is a special type of association used to model a whole part relationship Example:

33 LOGICAL ARCHITECTURE UNIT IV
It is the organization of software classes into packages, systems and Layers. THREE layers: 1.UI 2.Domain Objects 3.Technical services

34 CLASS DIAGRAM Class is a set of objects that share the same attributes, operations & relationships. It is represented by a compartmented rectangle. It shows the structure of software. It has 3 compartments Top  shows class name Middle  shows class attributes Bottom  shows class operation(behavior) Attributes It defines the characteristics or structure of a class. It is displayed in the middle of the compartmentalized rectangle. Operation It shows the service provided by the class . It is displayed in the bottom of the compartmentalized rectangle.

35 EXAMPLE CLASS DIAGRAM FOR ATM

36 INTERACTION DIAGRAM SEQUENCE DIAGRAM
Dimensions 1.Vertical dimension represents time 2.Horizontal dimension represents different objects. Life line -Vertical line is called the object’s life line. It represents the object’s existence during the interaction. Objects -Objects are shown as a box at the top of dashed vertical line. The object role is shown as a vertical dashed line, the life line. Message - Each message is labeled with the message name.Each message is represented by an arrow between the life lines of 2 objects. Focus of control - A focus of control shows the period of time during which an object is performing an action. It represented by a tall, thin rectangle.

37 EXAMPLE DIAGRAM FOR PASSPORT SYSTEM

38 COLLABORATION DIAGRAM
Collaboration diagram represents a collaboration which is a set of objects related in particular context, and interaction , which is a set of messages exchanged among the objects to achieve a desired outcome. It is made up of the following basic elements Actors Objects Links Messages

39 EXAMPLE DIAGRAM FOR PASSPORT SYSTEM

40 TESTING OO CODE UNIT V Class tests Integration tests System Validation

41 CLASS TESTING PROCESS How to test? class to be tested results software
engineer test cases Why a loop?

42 TESTING TOOLS Static analyzers Code inspectors Standard enforcers
Coverage analyzers (execution verifiers) Output comparators Test file/ data generators Test harnesses Test archiving systems

43 TESTING LIFE CYCLE 1. Requirements stage 2. Test Plan 3. Test Design. 4. Design Reviews 5. Code Reviews 6. Test Cases preparation. 7. Test Execution 8. Test Reports. 9. Bugs Reporting 10.Reworking on patches. 11.Release to production.

44 APPLICATION The concepts of Object Oriented Analysis and Design ( OOAD ) are used in Software Development Process for analyzing requirements and designing UML diagrams.

45 Text Book Craig Larman, "Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development”,Third Edition, Pearson Education, Thenkalvi.B ”Object oriented analysis and design”, 3rd Edition, Lakshmi Publications, 2013.

46 ASSIGNMENT TOPICS Case study-the NextGen POS system
UML activity diagram and modeling Relationship between sequence diagrams and use cases Applying GoF design patterns UML Component diagram

47 SEMINAR TOPICS Use case modeling Inception Relating Use cases
Domain models Domain model refinement Finding conceptual classes UML package diagram Logical architecture refinement System sequence diagrams GRASP : Designing objects with responsibilities UML deployment and component diagrams

48 URL’S http://www.uml-diagrams.org http://www.manyppt.com

49 VIDEO LINKS Introduction to OOAD Introduction to UML Introduction to Association, Aggregation & Composition Activity diagram Sequence diagram

50 Cont.. Interaction diagram https://www.youtube.com/watch?v=CJUc2crmrMs
Package diagram Class diagram Introduction to GRASP State diagram

51

52


Download ppt "CS OBJECT ORIENTED ANALYSIS AND DESIGN"

Similar presentations


Ads by Google