[ATL]should the passed in name be same with the package name in KM3? [message #48465] |
Mon, 25 June 2007 01:32  |
Eclipse User |
|
|
|
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 04:49  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03007 seconds