Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL problem with nested source model
ATL problem with nested source model [message #1826138] Mon, 20 April 2020 07:42 Go to next message
Andreas Bäuerle is currently offline Andreas BäuerleFriend
Messages: 11
Registered: April 2020
Junior Member
Hello ATL community.

I again have a problem. The transformation I am working takes a bunch of these as an input:

<edge id="dbServer.Edge1" from="dbServer.initial" to="dbServer.reqCreate">
<guard>1</guard>
<sync>tau</sync>
<update>x := 0</update>
</edge>

I managed to get to the right edge element. However I can neither access the child element sync nor its value:

helper def: getNameFromEdge(edgeName: String) : String =
let allEdges : Sequence(TDT!edge) =
TDT!edge.allInstances()->asSequence() in
allEdges->iterate( p; y : String = '' |
if p.id = edgeName then
-- GET SYNC HERE
else
y
endif
);


Does anybody has an Idea how to achieve this?

Thank you very much in advance and every help is appreciated!

Andreas
Re: ATL problem with nested source model [message #1830721 is a reply to message #1826138] Sat, 01 August 2020 13:28 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

The XML syntax does not seem to reference any schema (or metamodel)? Model navigation depends on what your metamodel looks like. Can you provide the metamodel as well?

Cheers,
Dennis
Previous Topic:Problem with tags including ":"
Next Topic:Plaintext Children
Goto Forum:
  


Current Time: Sat Nov 11 08:18:09 GMT 2023

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

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

Back to the top