Docsity

Objectives 2-Object Oriented Analysis And Design-Lecture Slides, Slides of Object Oriented Analysis and Design

Partial preview of the text

Download Objectives 2-Object Oriented Analysis And Design-Lecture Slides and more Slides Object Oriented Analysis and Design in PDF only on Docsity!

The class icon

 Defines

 Persistent system state

 System behavior

 The class icon has

 Name

 Attributes

 Operations

 It’s a rectangle divided

into three

compartments.

Steps followed

 Draw class symbol in the editor and

name it

 List the class attributes

 List the class operations/methods

 Make the links and associations

 Give notations

Structural Modeling: Core Elements

(cont’d)

Construct Description Syntax

constraint¹ a semantic condition or restriction. {constraint}

¹ An extension mechanism useful for specifying structural elements.

Reference: OMG tutorial on UML by Cris Kobryn

Construct Description Syntax

association a relationship between two or more classifiers that involves connections among their instances.

aggregation A special form of association that specifies a whole-part relationship between the aggregate (whole) and the component part. generalization a taxonomic relationship between a more general and a more specific element.

dependency a relationship between two modeling elements, in which a change to one modeling element (the independent element) will affect the other modeling element (the dependent element).

Structural Modeling: Core Relationships

Reference: OMG tutorial on UML by Cris Kobryn

Interfaces: Longhand Notation

Fig. 3-29, UML Notation Guide

+create() +login(UserName, Passwd) +find(StoreId) +getPOStotals(POSid) +updateStoreTotals(Id,Sales) +get(Item)

-storeId: Integer -POSlist: List

Store

POSterminal

POSterminalHome

<>

StoreHome

POSterminal

+getPOStotals(POSid) +updateStoreTotals(Id,Sales) +get(Item)

<> Store

Reference: OMG tutorial on UML by Cris Kobryn

Associations

Fig. 3-40, UML Notation Guide

Person

Manages

Job Company

boss

worker

employer employee

Job

Account

Person

Corporation

{X or}

salary

Reference: OMG tutorial on UML by Cris Kobryn

Generalization

Fig. 3-47, UML Notation Guide

Shape

Polygon Ellipse Spline

Shape

Polygon Ellipse Spline

Shared Target Style

Separate Target Style

... ...

Reference: OMG tutorial on UML by Cris Kobryn

Dependencies

Fig. 3-50, UML Notation Guide

«friend»

ClassA ClassB

ClassC

«instantiate»

«call»

ClassD

operationZ()

«friend»

ClassD ClassE

«refine» ClassC combines two logical classes

Reference: OMG tutorial on UML by Cris Kobryn

Example tools

 Argo UML

 http://argouml.tigris.org

 Object Domain

 http://www.objectdomain.com/domain/eva

luationIntro.html

 Rational Rose

 www.rational.com

 Microsoft Visio

The class icon

 Defines

 Persistent system state

 System behavior

 The class icon has

 Name

 Attributes

 Operations

 It’s a rectangle divided

into three

compartments.

Steps followed

 Draw class symbol in the editor and

name it

 List the class attributes

 List the class operations/methods

 Make the links and associations

 Give notations

Structural Modeling: Core Elements

(cont’d)

Construct Description Syntax

constraint¹ a semantic condition or restriction. {constraint}

¹ An extension mechanism useful for specifying structural elements.

Reference: OMG tutorial on UML by Cris Kobryn

Construct Description Syntax

association a relationship between two or more classifiers that involves connections among their instances.

aggregation A special form of association that specifies a whole-part relationship between the aggregate (whole) and the component part. generalization a taxonomic relationship between a more general and a more specific element.

dependency a relationship between two modeling elements, in which a change to one modeling element (the independent element) will affect the other modeling element (the dependent element).

Structural Modeling: Core Relationships

Reference: OMG tutorial on UML by Cris Kobryn