Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » How to improve my ATL transformation
How to improve my ATL transformation [message #882305] Wed, 06 June 2012 04:14
Federico Nicoli is currently offline Federico Nicoli
Messages: 6
Registered: June 2012
Junior Member
Is there a way to improve the performance of my ATL transformation, that to perform the injection in a Java XMI model does it in 223 seconds ?

This is the code:

rule createStatement {
		imd : java!MethodDeclaration(
			--seleziono i metodi che hanno l'annotation
			imd.annotations -> exists(a |'Annotation')
--ciclo per ogni elemento di tipo SQLQuery che identifica una singola query
for (elemXMLSQL in xml!Element.allInstances()-> select(e | = 'SQLQuery')) {
					--		importante operazione di controllo del valore dell'annotation con il nome della query	
							imd.body.statements <- imd.body.statements -> append(thisModule.createHashMapParams(imd));
							for (elemXMLParams in elemXMLSQL.getChildren(Sequence{'params'})) {	
								for (elemXMLParam in elemXMLParams.getChildren(Sequence{'param'})) {	
									imd.body.statements <- imd.body.statements -> append(thisModule.createStatementParams(imd, elemXMLParam));
							--instanzio una nuova hashmap per gli into
							imd.body.statements <- imd.body.statements -> append(thisModule.createHashMapIntos(imd, elemXMLSQL));
							--generazione del blocco if
							imd.body.statements <- imd.body.statements -> append(thisModule.createIfStatementIntos(imd, elemXMLSQL));
							--mRT.performThrough(controlloSqlcode, exControlloSqlcode) ; 
							imd.body.statements <- imd.body.statements -> append(thisModule.createStatementPerformThrough(imd));

thank you so much

[Updated on: Wed, 06 June 2012 04:43]

Report message to a moderator

Previous Topic:BPEL 2 XML using ATL
Next Topic:xmi:type instead of xsi:type
Goto Forum:

Current Time: Thu Aug 21 08:15:46 EDT 2014

Powered by FUDForum. Page generated in 0.01491 seconds