31.01.2014 Views

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

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.

4.1. Concrete Syntax D<strong>es</strong>cription Formalism<br />

GraphType<br />

RelationshipType1<br />

RelationShipType2<br />

RoleType11<br />

1...1<br />

RoleType12<br />

1...*<br />

RoleType21<br />

1...*<br />

RoleType22<br />

0...1<br />

RoleType23<br />

1...*<br />

PortType1<br />

0...1<br />

PortType2<br />

1...*<br />

ObjectTypeWithPorts11<br />

1...1<br />

ObjectTypeWithPorts12<br />

1...*<br />

ObjectType21<br />

1...*<br />

ObjectType22<br />

0...*<br />

ObjectType23<br />

1...1<br />

ObjectType21<br />

0...*<br />

ObjectTypeWithPorts11<br />

0...*<br />

ObjectTypeWithoutBindings<br />

1...1<br />

Figure 4.1.: Example of a meta model graph bindings definition<br />

Role, port, and object type nod<strong>es</strong> have a cardinality written below the name label, which<br />

have different meanings for different nod<strong>es</strong>. The cardinality of rol<strong>es</strong> define how often they can<br />

or have to be used in a certain relationship instance. For object and port typ<strong>es</strong>, the cardinality<br />

refers to their possible connections un<strong>der</strong> the corr<strong>es</strong>ponding role type. The cardinality of<br />

graphical inclusion nod<strong>es</strong> refers to their occurrence in the corr<strong>es</strong>ponding graph type.<br />

The multiple, graphical occurrence of a certain relationship type node un<strong>der</strong> the same graph<br />

type node means a disjunction of the below defined role, port, and object typ<strong>es</strong>. In other<br />

words, those relationship type definitions can be used alternatively. Also, other elements than<br />

relationships in a certain graph (rol<strong>es</strong>, ports, and objects) can be used multiple tim<strong>es</strong> since<br />

their cardinality may differ for different parent nod<strong>es</strong>.<br />

Sub-Graphs The syntax graph for sub-graphs and occurrenc<strong>es</strong> defin<strong>es</strong> the interconnection<br />

between different graph typ<strong>es</strong> and the occurrence of object typ<strong>es</strong> in a certain graph type. An<br />

example is given in Figure 4.2. As in the definition for bindings, the root node is always<br />

a graph type. Child nod<strong>es</strong> are object, relationship, and role typ<strong>es</strong>. As stated above, only<br />

object typ<strong>es</strong> can have decompositions, but all three typ<strong>es</strong> may have explosions. To define more<br />

complex, potentially recursive, graph interconnections, sub-graph nod<strong>es</strong> can have again object,<br />

relationship, and role type child nod<strong>es</strong>.<br />

41

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

Saved successfully!

Ooh no, something went wrong!