Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Check duplicates(Creating target model without any duplicates)
icon8.gif  Check duplicates [message #769959] Fri, 23 December 2011 01:17
Subhav Pradhan is currently offline Subhav PradhanFriend
Messages: 8
Registered: July 2011
Location: Nashville, Tennessee
Junior Member

Hi All,

Following is my source model:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="" xmlns="constraintSpecification">
<constraintSpecification type="Structural" constraint="RealTimeRequirement:multi_service_levels::BandedConncetions"/>
<constraintSpecification type="Structural" constraint="RealTimeRequirement:multi_service_levels::BandedConncetions"/>
<constraintSpecification type="Quantitative" constraint="RealTimeRequirement:multi_service_levels::Lane:static_threads"/>

I am trying to write a ATL code which will take each constraint specification and create objects in the target model. Following is a very simple matched rule which does almost everything I want:

rule createVMM
s : constraintSpecification!constraintSpecification

createSourceObjects: MOF!EClass
name <- s.constraint


However, as you can see in my source model the first two constraintSpecifications are identical and the above matched rule creates two different objects for these specification. What I wanted to achieve was to create only one object. I have previously been pointed to using unique lazy rules but I am not being able to use unique lazy rules either.

Any help would be appreciated!


Previous Topic:[ATL] Reading XML Value
Next Topic:Graphical ATL transformation tool
Goto Forum:

Current Time: Sat Oct 22 21:31:08 GMT 2016

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

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