chapter 16 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Chapter 16 PowerPoint Presentation
Download Presentation
Chapter 16

Loading in 2 Seconds...

play fullscreen
1 / 25

Chapter 16 - PowerPoint PPT Presentation


  • 114 Views
  • Uploaded on

Chapter 16. Fig. 16.1. Fig. 16.2. Note: Why no arrow?. Note: If Sale references nothing then the only thing it is associated with is what references it. Note: association name is missing since role name of Sale is used as instance variable name in Register. Fig. 16.3.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Chapter 16' - kelton


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
fig 16 2
Fig. 16.2

Note: Why no arrow?

Note: If Sale references nothing

then the only thing it is associated

with is what references it

Note: association name is missing

since role name of Sale is used as

instance variable name in Register

fig 16 3
Fig. 16.3

Note: Use attribute text

when the data type identity

is not important, eg primitives.

visible

slide7

public class Register {

private int id;

private Sale currentSale;

private Store: location;

...

}

fig 16 6
Fig. 16.6

property string

fig 16 7
Fig. 16.7

method

declaration

return type is also

typical

Full Syntax:

visibility name (param list):return-type {property-string}

property-string: exceptions, abstract, friend, etc.

fig 16 9 dependency
Fig. 16.9 Dependency

presence of

coupling

1

mSale

AClass

<<method>>

public void foo() {

mSale.updatePriceFor(pd)

}

foo():void

kinds of dependency
Kinds of Dependency

-- having an attribute of supplier type

-- sending a message to a supplier using an attribute, param, local variable

global variable, static method

-- receiving a parameter of a supplier type

-- supplier is a supertype or interface

Use a dependency line when no other structural line exists.

slide13

doX() calls System.runFinalize()

Foo

System

doX()

runFinalize()

fig 16 11
Fig. 16.11

Example: A factory “creates”

an object of a separate class

but has no other relationship

to the object.

slide16

Window1

<<interface>>

Timer

<<interface>>

Timer

Window3

Clock3

either one

fig 16 13
Fig. 16.13

Note: Author suggests not using general aggregation; only composition.

fig 16 14 constraints
Fig. 16.14 Constraints

constraint: { text between braces}

fig 16 15 qualified association
Fig. 16.15 Qualified Association

qualifier is used to select a specific object

from a larger set of objects

fig 16 16 association class
Fig. 16.16 Association Class

model an association with attributes and operations

fig 16 20
Fig. 16.20

An active class is one controlling its own thread

fig 16 21
Fig. 16.21

in Agile, these diagrams a re drawn in parallel