Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Multiple object type assignment to one object type
Multiple object type assignment to one object type [message #1842849] Fri, 02 July 2021 16:25 Go to next message
Tomas Wall is currently offline Tomas WallFriend
Messages: 53
Registered: April 2021
Member
Hi Dimitris,

I was wondering does Epsilon support assigning objects of different types to one type? Is there any way to do that?

Because in this minimal example https://www.eclipse.org/epsilon/live/?7430b781 I want to transform both smallroom and bigroom from the source model to rooms in the target model, but it only considers the last one (it overwrites the first one), and I only get the bigroom.

Would there be any trick to achieve this?

Many thanks,
Tomas!
Re: Multiple object type assignment to one object type [message #1842858 is a reply to message #1842849] Sat, 03 July 2021 08:34 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Tomas,

Replacing
t.rooms::=s.smallrooms;
t.rooms::=s.bigrooms;

with
t.rooms::=s.smallrooms+s.bigrooms;

should do the trick.

Best,
Dimitris
Previous Topic:One source multiple targets
Next Topic:How to validate only part of model
Goto Forum:
  


Current Time: Thu Apr 25 17:44:06 GMT 2024

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

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

Back to the top