[ATL] Check for duplicate target objects. [message #721153] |
Wed, 31 August 2011 23:28  |
Eclipse User |
|
|
|
I have two questions . First, I was wondering if it is at all possible in ATL to make transformation rules such that it creates target objects if those objects are not already in the target model. This will involve traversing of the target model and from what I read in the ATL Wiki, it is not possible. Second, is it possible to create target objects without using any rules. I know this sounds stupid but I am trying to create a target model which will always have two objects regardless of anything else in the source model.
To further describe my questions, I have created a constraint specification metamodel which basically has one class named constraintSpecification. This class has two simple attributes, type of the constraintSpecification and the actual constraint. The actual constraint is a string which consist of information regarding classes that has to be created in the target model of my transformation code. So I have a model that confirms to the constraint specification metamodel and I am using that model as input to my transformation (HOT) code. Now the first problem is that I do not want to create duplicated classes in my target model. The second problem is that I want to create a sourcePattern and targetPattern class in my target model regardless of anything in the source model.
Any help/suggestions would be highly appreciated!
Regards,
Subhav Pradhan
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03680 seconds