[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: Problem on the use case Automatic model matching

Hi,

The "Name equality" transformation does not create links, it just sets up the similarity to the links that have already been created by another transformation, or manually.

Thus, you need to execute the "Restricted Cartesian product" transformation first. This transformation creates several links between the metamodel elements, with similarity equal to 0.

Then, the "Name equality" transformation can calculate the similarities between the existing links.

You can find additional information about this use case in the HowTo page: http://www.eclipse.org/gmt/amw/examples/Scade/Scade_doc.php.

Regards,

Marcos.

Benjamin CHEVALLEREAU wrote:
Hi,

I try to execute the use case "Automatic model matching" with all provided files. When I try to match with the equality of name, I obtain this model weaver :

<?xml version="1.0" encoding="ISO-8859-1"?>
<MatchModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="mmw_match" xmlns:_1="mw_base_ext">
<leftM xsi:type="_1:ModelRef" xmi:id="ModelRef1" name="leftM" ref="/ScadeSimple/metamodels/Scade.ecore"/>
<rightM xsi:type="_1:ModelRef" xmi:id="ModelRef2" name="rightM" ref="/ScadeSimple/metamodels/ScadeNew.ecore"/>
<methods name="Name equality"/>
</MatchModel>


It doesn't find all the equalities.

Thanks

Benjamin CHEVALLEREAU