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: pedro.r.dias.gmail.com

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 {
from
s: IStarSD!DegreeKind
to
--outputEnum: KM3Target!Enumeration (
t: UMLArquitetural!DegreeKind(
name <- s.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:
DependumKind
- 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: Sun May 26 13:21:29 GMT 2019

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

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

Back to the top