INFOCOMP - Departamento de Ciência da Computação - Ufla
INFOCOMP - Departamento de Ciência da Computação - Ufla
INFOCOMP - Departamento de Ciência da Computação - Ufla
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Redouane Esbai et al. Transformation by Mo<strong>de</strong>ling MOF 2.0 QVT: From UML to MVC2 Web mo<strong>de</strong>l 6<br />
Figure 8 illustrates the first part of the target metamo<strong>de</strong>l.<br />
This meta-mo<strong>de</strong>l is a simplified diagram of relational<br />
<strong>da</strong>tabases. It consists of several tables, themselves<br />
composed of typed columns.<br />
Figure 6: Imperative Expressions of ImperativeOCL<br />
6 The UML and MVC2 meta-mo<strong>de</strong>ls<br />
To <strong>de</strong>velop the algorithm of transformation between the<br />
source and target mo<strong>de</strong>l, we present in this section, the<br />
different meta-classes forming the UML source metamo<strong>de</strong>l<br />
and the MVC2 target meta-mo<strong>de</strong>l. The metamo<strong>de</strong>l<br />
source structure simplified UML mo<strong>de</strong>l based on<br />
a package containing the <strong>da</strong>ta types and classes. These<br />
classes contain properties typed and characterized by<br />
multiplicities (upper and lower). The classes contain<br />
operations with typed parameters. Figure 7 shows the<br />
source meta-mo<strong>de</strong>l:<br />
Figure 8: Simplified meta-mo<strong>de</strong>l of a relational <strong>da</strong>tabase<br />
Figure 9 illustrates the second part of the target<br />
meta-mo<strong>de</strong>l. This is the business mo<strong>de</strong>l of the application<br />
to be processed. In our case, we opted for components<br />
such as Beans. We recall that Struts does not<br />
provi<strong>de</strong> specific classes.<br />
Figure 7: Simplified UML Meta-mo<strong>de</strong>l<br />
Figure 9: Simplified meta-mo<strong>de</strong>l of a mo<strong>de</strong>lPackage<br />
<strong>INFOCOMP</strong>, v. 10, no. 3, p. 01-11, September of 2011.