Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Getting rubbish except of element's attributes
[ATL] Getting rubbish except of element's attributes [message #558765] Tue, 14 September 2010 11:21
Alexey is currently offline AlexeyFriend
Messages: 61
Registered: January 2010
Member
Hello!

I have wroten this helper to extract the element 'Attribute' with all its attributes (features):

helper context ISyFMU!DocumentRoot def: getAttribute() :  Sequence(ISyFMU!Attribute) =
	ISyFMU!Attribute.allInstancesFrom('OUT');


This rule starts the helper:

rule RunType2Artifact 
{
from s:Garmin!RunType
to t:ISyFMU!Artifact
(

	attributes<-t2.getAttribute().toString(),
...
),

t2:ISyFMU!DocumentRoot
(
	
)

}



As a result i get this crap in my output-model:

<Isyfmu:Artifact attributes="OrderedSet {OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>, OUT!&lt;unnamed>}"

And it has to look like this actually:

<Isyfmu:Artifact attributes=id, identifier, version, name etc...>

What do I wrhong?

Thank you!

Alexey

[Updated on: Tue, 14 September 2010 11:41]

Report message to a moderator

Previous Topic:Transformation between UML profiles
Next Topic:[TCS] Immediate Composite Operation?
Goto Forum:
  


Current Time: Sun Jun 16 19:04:13 GMT 2019

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

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

Back to the top