| 
| Enumeration Class [message #84744] | Wed, 18 June 2008 14:31 |  | 
| Eclipse User  |  |  |  |  | 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.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.02808 seconds