Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Problem when using GetValue(Using EMFTVM though I think that's not related)
Problem when using GetValue [message #1218486] Fri, 29 November 2013 09:42 Go to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
Hi, I'm using EMFTVM but I don't think that's related to this issue.

I am using getValue() to get the value of different stereotypes' attributes and I'm getting different return values on different transformations, let me show you:

On transformation 'A' I get stuff like this:
Sequence{10e5a71:Profile!Action}


While on transformation 'B' I get stuff like this:
Sequence{Map Elements:View, Incidents:View, Information View:View, Snapshots:View}



The stereotype's attribute in both cases is a Sequence pointing to other stereotyped elements, and as you can see in the transformation 'A' I'm getting returned the stereotypeApplication of the element the value points to, while in transformation 'B' I'm getting a Stereotype, rather than the stereotype application (or so I think).

So why is this different?

The only thing I'm doing different in these transformations (I think) is that in one I have the profile as an input model, and in the other one I do not, I really don't know what else could it be and I don't really understand why this would make it different, is there any other reason this could be happening? Because as it is right now I would rather not import the profile, but if I have to I guess I will.

Thanks in advance, let me know if there's anything else you need to know about the transformations.
Regards,
Javier
Re: Problem when using GetValue [message #1219009 is a reply to message #1218486] Fri, 29 November 2013 15:13 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 163
Registered: September 2012
Senior Member

EMFTVM prints different strings for model elements for which the model/metamodel are given. There may be nothing wrong with your transformation.

Cheers,
Dennis
Re: Problem when using GetValue [message #1219118 is a reply to message #1219009] Mon, 02 December 2013 07:34 Go to previous message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
I'm using EMFTVM in both metamodels so I'm not sure if they both should be the same. Also I was getting an exception when I tried to use this data in the same way but I did find a workaround so I guess that it's ok for now, I can't really understand where the problem comes from or why does it happen but at least I made it work differently.
Previous Topic:[EMFTVM] null pointer exception when executing transformation
Next Topic:Please help me to check the helper context in ATL
Goto Forum:
  


Current Time: Wed Sep 17 01:42:02 GMT 2014

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

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