11.10.2013 Views

Slides Part 2 (OOA, pages 1-128, pdf, 4 slides per page)

Slides Part 2 (OOA, pages 1-128, pdf, 4 slides per page)

Slides Part 2 (OOA, pages 1-128, pdf, 4 slides per page)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ASSOCIATION CLASSES<br />

➠ Associations can also have attributes.<br />

➠ Reasonable, if the attributes cannot be assigned to any of the classes<br />

involved in the association.<br />

Writes<br />

Student Exam<br />

Writes<br />

mark<br />

GENERALIZATION/SPECIALIZATION<br />

➠ Classes correspond to types.<br />

➠ Subclasses correspond to subtypes, not subsets.<br />

➠ Specialization = ”is a” , but ”act as” , ”is a kind of”<br />

BachelorCourse MasterCourse<br />

subject<br />

21<br />

Course Personnel Student<br />

Constraint<br />

title<br />

name<br />

name<br />

<strong>per</strong>s.nr<br />

inscription_number<br />

salary<br />

{complete}<br />

specialization<br />

23<br />

Professor TeachingAssistent<br />

specialty<br />

AGGREGATION AND COMPOSITION<br />

are special associations.<br />

Room<br />

Wall<br />

The wall is a part of the room.<br />

If a part belongs to only one whole and can only exist with that whole, then this<br />

is a composition relation.<br />

CONSTRAINTS<br />

Window<br />

Frame<br />

or<br />

➠ Are conditions that must hold.<br />

➠ Are written between “{}”.<br />

22<br />

Window<br />

Frame<br />

➠ The example: “{complete}” means that no other subclasses of Course<br />

can exist.<br />

➠ Meaning of constraints must be described informally.<br />

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!