Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » AMW » weaving model(how to create a weaving model with matching automatically)
weaving model [message #1018880] Thu, 14 March 2013 16:02 Go to next message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Hello,

I want to generate automatically a weaving model with matchings between given metamodels.

I create a weaving model and i use the context menu : metamodel match (name equality for example) it generate an empty file

Can someone help me

Re: weaving model [message #1021269 is a reply to message #1018880] Tue, 19 March 2013 19:19 Go to previous messageGo to next message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 19
Registered: June 2011
Junior Member
Hi

you need to execute the matching transformations according to the dependencies between them.

You can find a description in the AMW wiki.

Marcos
Re: weaving model [message #1021621 is a reply to message #1021269] Wed, 20 March 2013 12:07 Go to previous messageGo to next message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Hi

Thanks for ur answer

Im trying to execute matching transformations in this order :

Cartesian product, Name equality, Propagation, Similarity flooding, Threshold then Link rewriting

but when i arrive at the third step (generation of propagation graph) i get an empty model (DiagramToDiagram2_cp_equal_prop.amw)

plz can u tell me what the problem may be

[Updated on: Wed, 20 March 2013 13:38]

Report message to a moderator

Re: weaving model [message #1022387 is a reply to message #1021621] Thu, 21 March 2013 19:26 Go to previous messageGo to next message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 19
Registered: June 2011
Junior Member

Can you check the execution log of Eclipse?
This can help you to discover the problem.


Marcos.

Re: weaving model [message #1022391 is a reply to message #1022387] Thu, 21 March 2013 19:31 Go to previous messageGo to next message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 19
Registered: June 2011
Junior Member

Btw, you need to have a couple of weaving extensions installed (mmw_match and mmw_propagation).

The extensions are explained in the following link.
http://www.eclipse.org/gmt/amw/usecases/matching/matching_exec.php


Marcos.
Re: weaving model [message #1022706 is a reply to message #1022391] Fri, 22 March 2013 11:40 Go to previous messageGo to next message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Hi !

I get no messages in the execution log of eclipse when i launch a matching transformation. but the model takes too long to load when i click on.

I load, in the first wizard, (just for instance) the couple of weaving extensions : mmw_match and mmw_propagation in order to create a cartesian product.

In the second, i choose the panel (TransformationWeavingPanelExtension) and the WModel (MatchModel).

then, i choose the left and right metamodels. (to simplify, i created a slight change between the two metamodels)

i execute the cartesian product transformation, i get a model with an empty method cartesian product and other links all with sim = 0. when i try to click on, there is an error in execution log with the following messages :
----------------------------------------------------------------
java.lang.NullPointerException
at org.eclipse.gmt.weaver.editors.weaving.GenericWeavingPanel.setWLinkEndSelection(GenericWeavingPanel.java:366)
at org.eclipse.gmt.weaver.editors.weaving.GenericWeavingPanel.setViewersSelection(GenericWeavingPanel.java:244)
at org.eclipse.gmt.weaver.editors.weaving.GenericWeavingPanel.wSelectionChanged(GenericWeavingPanel.java:224)
at org.eclipse.gmt.weaver.editors.weaving.GenericWeavingPanel$2.selectionChanged(GenericWeavingPanel.java:155)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.gmt.weaver.editors.weaving.SelectionTreeViewer.updateSelection(SelectionTreeViewer.java:50)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
----------------------------------------------------------------------

can u tell me what does it mean ?

i also have this line in the metadata file :

<model-relative-path>null</model-relative-path>

does this have any relation with the problem ?

thank you for ur help

Re: weaving model [message #1042621 is a reply to message #1022706] Tue, 16 April 2013 17:07 Go to previous messageGo to next message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 19
Registered: June 2011
Junior Member
Hello,


You are weaving metamodels, right? In this case, the .metadata file has a 'null' value for the models relative path. So this is not an issue.

About the error, it seems taht there is some unresolved references in your metamodel. This may be connected to the way the model elements are identified: either by XMI-IDs or by XPointer.

Marcos.
Re: weaving model [message #1058253 is a reply to message #1042621] Mon, 13 May 2013 11:12 Go to previous message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Hello!

i used an other version of eclipse. Now, AMW works good.

Thanks a lot for your help
Previous Topic:How to create atl file from amw
Next Topic:Validating links
Goto Forum:
  


Current Time: Fri Apr 26 11:52:54 GMT 2024

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

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

Back to the top