|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
| Frédéric Jouault
Registered: July 2009
> 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
Powered by FUDForum
. Page generated in 0.20409 seconds