Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]should the passed in name be same with the package name in KM3?
[ATL]should the passed in name be same with the package name in KM3? [message #48465] Mon, 25 June 2007 05:32 Go to next message
stephen Yu is currently offline stephen YuFriend
Messages: 35
Registered: July 2009
Member
during invoking ATL transformation programmatically,
I have a question, see following method:

public abstract ASMModel loadModel(String name, ASMModel metamodel,
InputStream in);

here,Should the passed in name be 'MonitorModel'?
The 'MonitorModel' is the package name of KM3 which is metamodel.

package MonitorModel
{

class ManagedNodeInfo
{
attribute hostName:String;
attribute ipAddress:String;
attribute machineType:String;
......
Re: [ATL]should the passed in name be same with the package name in KM3? [message #48671 is a reply to message #48465] Mon, 25 June 2007 08:49 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

> during invoking ATL transformation programmatically,
> I have a question, see following method:
>
> public abstract ASMModel loadModel(String name, ASMModel metamodel,
> InputStream in);
>
> here,Should the passed in name be 'MonitorModel'?
> The 'MonitorModel' is the package name of KM3 which is metamodel.
>
> package MonitorModel
> {
>
> class ManagedNodeInfo
> {
> attribute hostName:String;
> attribute ipAddress:String;
> attribute machineType:String;
> ......

Obviously, the name should never be 'MonitorModel' if you are, for
instance, running the Family2Person transformation ;-).

However, if one of your source or target model is named MonitorModel,
then the name argument of *one of* the calls to loadModel may indeed be
'MonitorModel'.


Regards,

Frédéric Jouault
Previous Topic:[ATL] How to?The enhaced Family2Person case [java objects transformation]
Next Topic:[ATL] Developing a plugin which executes ATL transformations
Goto Forum:
  


Current Time: Thu Apr 25 06:36:41 GMT 2024

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

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

Back to the top