Object-Oriented Modeling with UML: Understanding Classes, Objects, and Relationships, Slides of Software Project Management

An in-depth exploration of object-oriented modeling using the unified modeling language (uml). Topics covered include the history of uml, the purpose and benefits of the language, and the modeling of static structure, relationships between objects, and object composition. Learn about classes, objects, dependencies, generalizations, associations, and more.

Typology: Slides

2011/2012

Uploaded on 08/07/2012

angana
angana 🇮🇳

4.4

(52)

158 documents

1 / 37

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Object-Oriented Modeling with
UML
Lecture # 30
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25

Partial preview of the text

Download Object-Oriented Modeling with UML: Understanding Classes, Objects, and Relationships and more Slides Software Project Management in PDF only on Docsity!

1

Object-Oriented Modeling with

UML

Lecture # 30

2

Object-Oriented Modeling

Methods

  • Shlaer/Mellor - 1988• Coad/Yourdon – 1991• Booch - 1991• OMT by Rumbaugh et. al. – 1991• Wirfs-Brock – 1991• And many more

4

Unified Modeling Language - 1

  • Visualizing, specifying, constructing,

and documenting object-orientedsystems is exactly the purpose of theunified modeling language or UML

  • The rules of UML focus on the

conceptual and physical representationof a system

5

Unified Modeling Language - 2

  • Process independent• Notation has well-defined semantics• It has become the de-facto standard for

modeling

  • Many vendors provide tools that

support different modeling views

7

Static Structure - 1

  • Any precise model must first define the

universe of discourse, that is, the keyconcepts from the application, theirinternal properties, and theirrelationships to each other

  • This set of constructs is the static view

8

Static Structure - 2

  • The application concepts are modeled as

classes, each of which describes a set ofdiscrete objects that hold information andcommunicate to implement behavior

  • The information they hold is modeled as

attributes; the behavior they perform ismodeled as operations

10

Objects and Classes

  • An object is an instantiation of a class• It has an identity, state, and behavior

11

UML Notation for Objects

aObject

bObject : Class

:Class

13

Relationships Between Objects - 2

  • Dependencies, generalizations, and

associations are all static thingsdefined at the level of classes

  • In the UML, these relationships are

usually visualized in class diagrams

  • These relationships convey the most

important semantics in an object-oriented model

14

Dependency Relationship

  • A dependency is a using relationship that

states that a change in specification of onething may affect another thing that uses it,but not necessarily the reverse

  • Graphically, a dependency is rendered as a

dashed line, directed to the thing beingdepended on

  • Use dependencies when you want to show

one thing using another thing

16

Generalization Relationship

  • A generalization is a relationship

between a general thing (called a superclass or parent) and a more specifickind of that thing (called the subclassor child)

  • Generalization is sometimes called an

‘is-a-kind-of’ relationship

17

Generalization Relationship

Shape originmove()resize()display()

Circle radius: Float

Polygon points: Listdisplay()

Rectangle corner: Point

19

Association Relationship - 2

  • Use associations when you want to show

structural relationships

  • An association can have four adornments
    • Name– Role– Multiplicity– Aggregation
      • Captures the ‘whole-part’ relationship• Composition – a stronger ‘whole-part’ relationship

20

Association Relationship: Name

Company

Person

Works for Association Names