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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MEANING OF THE CLASS DIAGRAM<br />

➠ Each institute has exactly one professor who leads it.<br />

➠ This professor is called ”director”.<br />

➠ A professor leads at most one institute.<br />

➠ A professor can give course, but need not do so.<br />

➠ Each course is given by at most two professors (also zero professors are<br />

possible).<br />

➠ A student takes four to six courses.<br />

➠ There, he is a “participant”.<br />

➠ A course has to be taken by at least three students.<br />

ROLE NAMES<br />

➠ are written at the ends of the links<br />

➠ <strong>per</strong> convention, role names are written in small letters<br />

Person<br />

1..*<br />

child<br />

17<br />

IsChildOf<br />

19<br />

parent<br />

2<br />

ASSOCIATIONS WITH ARITY GREATER THAN TWO<br />

Associations can exist between more than two classes.<br />

MULTIPLICITIES<br />

Student Exam<br />

Room<br />

Writes<br />

➠ express cardinality constraints of relations<br />

18<br />

➠ for each object o of Class2, there exist m objects o ′ of Class1, such that o<br />

and o ′ are in relation Rel.<br />

Notation:<br />

Class1<br />

Rel<br />

Class2<br />

m<br />

• number n: exactly n objects<br />

• scope i..j<br />

• * : any number, also 0<br />

• i..∗ : at least i<br />

• ∗..j : at most j<br />

• not specified : means *<br />

• 0..1, 3..4, 6..∗ :<br />

20<br />

all quantities except 2 and 5

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

Saved successfully!

Ooh no, something went wrong!