Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] collecting transformation trace information
[ATL] collecting transformation trace information [message #108194] Fri, 10 July 2009 08:19
Eclipse UserFriend
I need a trace of source elements to target elements and have
tried the code below. However, I get array bounds exception
(also below) when the number of model elements exceeds
about 100. Does anyone have any ideas for alternative ways
to collect the trace information.

thanks
Andy.

abstract rule ModelElement {
from source : In!SourceModelElement
to targete : Out!TargetModelElement (
),
traceElement : Trace!TraceModelElement (
targetElement <- target
)
}

rule Model extends ModelElement {
from source : In!EmfModel
to target : Out!EPackage (
)
do {
traceElement.refSetValue('sourceElement', source);
}
}

java.lang.ArrayIndexOutOfBoundsException: 100
at
org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperat ion.java:430)
at
org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperat ion.java:387)
at org.eclipse.m2m.atl.engine.emfvm.ASM.run(ASM.java:197)
at
org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.launch (EMFVMLauncher.java:162)
Previous Topic:How to extend rule ?
Next Topic:How to duplicate an element
Goto Forum:
  


Current Time: Wed Jul 02 15:44:43 EDT 2025

Powered by FUDForum. Page generated in 0.03135 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top