11.12.2012 Views

Model-Driven Evolution of Software Architectures - Software and ...

Model-Driven Evolution of Software Architectures - Software and ...

Model-Driven Evolution of Software Architectures - Software and ...

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.

2.3. <strong>Model</strong>-<strong>Driven</strong>Engineering 35<br />

1module ADDGETSET;<br />

2create OUT : CLASSM from IN : CLASSM;<br />

3<br />

4helper context CLASSM!Attribute def: isPrivate: Boolean =<br />

5 self.visibility = ’private’;<br />

6<br />

7rule Class<strong>Model</strong> {<br />

8 from cm_in:CLASSM!Class<strong>Model</strong><br />

9 to<br />

10 cm_out:CLASSM!Class<strong>Model</strong> (is<br />

11 classes union(c_in.attributes->select(a|a.isPrivate)->collect(a|<br />

thisModule.resolveTemp(a,’set’)))<br />

23 )<br />

24}<br />

25rule Attribute {<br />

26 from a_in:CLASSM!Attribute (not a_in.private)<br />

27 to<br />

28 a_out:CLASSM!Attribute (<br />

29 name

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

Saved successfully!

Ooh no, something went wrong!