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.

7.4. Concrete Syntax for Type Properti<strong>es</strong><br />

gPacket<br />

VariableOr<strong>der</strong><br />

oVariableInstance<br />

0...*<br />

Scaling<br />

PreviousVariable<br />

1...1<br />

NextVariable<br />

1...1<br />

oVariableInstance<br />

1...*<br />

ScalingValue<br />

1...1<br />

ScaledValue<br />

1...1<br />

oRootNode<br />

1...1<br />

oVariableInstance<br />

1...1<br />

oLeafeNode<br />

1...1<br />

oVariableInstance<br />

1...*<br />

oVariableInstance<br />

1...1<br />

Figure 7.12.: gPacket binding syntax<br />

objects corr<strong>es</strong>ponding to their numerical value. A (numerical) conditional value can be<br />

defined, for which all iterated variabl<strong>es</strong> (by graphically containment) are exactly iterated once.<br />

Otherwise, they will not exits. In this manner, it is possible to define the existence of certain<br />

oVariableInstace objects only for certain (numerical) conditions.<br />

7.3.8. gAnyPacket Graph Type<br />

The gAnyPacket type is only used to specify a set of oPacket objects for oAnyPacket objects.<br />

Hence, it has no binding syntax at all.<br />

7.4. Concrete Syntax for Type Properti<strong>es</strong><br />

As stated in Chapter 4, for a complete meta model syntax definition, b<strong>es</strong>id<strong>es</strong> sub-graphs and<br />

graph-binding, the full definition for all typ<strong>es</strong> 10 is needed. For the most important properti<strong>es</strong>,<br />

this was already done in Section 7.2 and Section 7.3. As the definition of all typ<strong>es</strong> is not<br />

nec<strong>es</strong>sary for un<strong>der</strong>standing the case study and for further reading of this document, this can<br />

be found in Appendix B.<br />

7.5. Static Semantics for Models<br />

Section 7.3 defined all bindings as concrete syntax for each graph type by means of the GOPPRR<br />

meta meta model. However, it is additionally nec<strong>es</strong>sary to define constraints for some graph<br />

typ<strong>es</strong> as static semantics to reduce or refine the allowed syntax for models in special situations.<br />

The use of constrains avoids models that do not have a semantic meaning with r<strong>es</strong>pect to the<br />

SRS and is also an issue related to the safety properti<strong>es</strong> of the generated software. According<br />

to Section 4.5, constraints are defined by OCL.<br />

10 graphs, objects, ports, rol<strong>es</strong>, and relationships<br />

97

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

Saved successfully!

Ooh no, something went wrong!