Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » One model to output model with multiple instances?
One model to output model with multiple instances? [message #1814013] Sun, 01 September 2019 12:54 Go to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Hi All,

is there a way to transform an input model to multiple instance of same output model?
I wrote something like this,

rule DirectDeviceToNodeR {
from
pim : PIM!DirectDevice
to
noder_server : ContikiOS!NodeR(
Name<- 'NodeR_Server',
socketR<-pim.connection


),noder_client : ContikiOS!NodeR(
Name<- 'NodeR_Client',
socketR<-pim.connection

)

}

However, only the first instance is produced under the container of PlatformR the other one becomes the root.




<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:contikiOS="http://www.eclipse.org/sirius/contikiOS">
  <contikiOS:IoTSystem Name="DesignIoTSystem">
    <platform Name="ContikiPlatform"/>
    <logman URL="www.example.com"/>
    <platformR Name="RiotPlatform">
      <nodeR Name="NodeR_Server"/>  --> Under the platformR
    </platformR>
  </contikiOS:IoTSystem>
  <contikiOS:NodeR Name="NodeR_Client"/>     -- Becomes root
  <contikiOS:RaspberryPi Name="RaspberryPI"/>
</xmi:XMI>



Thanks All.
Re: One model to output model with multiple instances? [message #1814237 is a reply to message #1814013] Fri, 06 September 2019 09:33 Go to previous message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Please help. Bump.
Previous Topic:ATL 4.1.0 has been released!
Next Topic:HOT helpers
Goto Forum:
  


Current Time: Sat Apr 27 03:12:54 GMT 2024

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

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

Back to the top