Check duplicates [message #769959] |
Fri, 23 December 2011 01:17 |
|
Hi All,
Following is my source model:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/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"/>
</xmi:XMI>
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
{
from
s : constraintSpecification!constraintSpecification
to
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!
Subhav
|
|
|
Powered by
FUDForum. Page generated in 0.02255 seconds