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

Create successful ePaper yourself

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

Chapter 3. Domain-Specific Modelling<br />

NamedElement<br />

<br />

name : String<br />

Type<br />

<br />

EnumerationLiteral<br />

ownedLiteral<br />

0...*<br />

DataType<br />

enumeration<br />

0...1<br />

PrimitiveType<br />

Enumeration<br />

Figure 3.7.: EMOF data typ<strong>es</strong><br />

EnumerationLiteral is a class for all enumeration literals.<br />

poss<strong>es</strong>sing enumeration (enumeration).<br />

It holds an aggregation to its<br />

Enumeration is a class for enumeration typ<strong>es</strong> while the literals are d<strong>es</strong>cribed by a set of<br />

enumeration literals (ownedLiteral).<br />

To d<strong>es</strong>cribe complex DSLs with EMOF, it is also nec<strong>es</strong>sary to model class<strong>es</strong>. This is shown<br />

in Figure 3.8. The new elements are d<strong>es</strong>cribed below:<br />

MultiplicityElement is the abstract base type for all elements that can be multipliciti<strong>es</strong>.<br />

Property is a class for all properti<strong>es</strong> / attribut<strong>es</strong> of a class. It has a self association for a<br />

possible opposite type (opposite) and an aggregation [64] to its poss<strong>es</strong>sing class (class).<br />

Operation d<strong>es</strong>crib<strong>es</strong> a certain operation / method of a class. It holds an aggregation to its<br />

poss<strong>es</strong>sing class (class) and to a possible set of parameters (ownedParameter). It also<br />

has an association with typ<strong>es</strong> (raisedException), which specifi<strong>es</strong> the possible kinds of<br />

thrown / raised exceptions.<br />

Parameter is a class for all parameters of an operation. It has an aggregation to its poss<strong>es</strong>sing<br />

operation (operation).<br />

Class d<strong>es</strong>crib<strong>es</strong> a general class type. It holds a set of attribut<strong>es</strong> (ownedAttribute) and a set<br />

of operations (ownedOperation).<br />

Since the UML infrastructure should be aligned to the MOF specification [64, p. 8], Figure 3.9<br />

shows the related DSM instanc<strong>es</strong> introduced in Section 3.1 for the UML specification.<br />

26

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

Saved successfully!

Ooh no, something went wrong!