Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Enumeration Class
Enumeration Class [message #84744] Wed, 18 June 2008 18:31
Eclipse UserFriend
Originally posted by:

Hi there!

I have an issue using ATL. The thing is I have an Enumeration Class on the
original metamodel and I want to map it into the destiny metamodel.
The problem is that I can't seem to find examples of ATL code dealing with
enumeration classes. All I find is a sort of java code or what seems to be
KM3 code. No ATL code for that matter.

The approaches I have found so far are something like this:

rule DegreeKind {
s: IStarSD!DegreeKind
--outputEnum: KM3Target!Enumeration (
t: UMLArquitetural!DegreeKind(
name <-,
location <- s.location,
package <- s.package,
literals <- s.literals
} --@end rule Enumeration

Well, this isnt working and I would like some help in here.
How can I map an enumeration class in a metamodel into another enumeration
class in another metamodel?

Another issue regarding the enumeration class is that I can't figure out a
way to select a specific enumeration from the enumeration class.

Don't know if it helps but here is one of mine enumeration classes:
- Goal
- SoftGoal
- Resource
- SoftGoal
It is suppose to be exactly the same on the destination model.

Best regards.
Previous Topic:[ATL] : <unnamed> : is this a bad thing?
Next Topic:[ATL] Documentation on Refinement Mode: A Contradiction?
Goto Forum:

Current Time: Sat Jun 06 05:38:37 GMT 2020

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

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

Back to the top