Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EGL] [newbie] Multiple input models problem
[EGL] [newbie] Multiple input models problem [message #432405] Thu, 30 July 2009 16:41 Go to next message
Orcun Dayibas is currently offline Orcun DayibasFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all,

I'm trying to use two different (two meta-model) input models in EGL
template run configuration but it seems that it accepts only the first
one. For instance, if I define models as ModelX and ModelY, ModelY is not
recognized by engine and vice versa.

I tried models with their own related codes, one by one and both models
are flawless separately. On the other hand, running two input model
displays an error message for the second model: "Type 'ModelYSubType' not
found".

Any help is much appreciated...
Re: [EGL] [newbie] Multiple input models problem [message #432790 is a reply to message #432405] Thu, 30 July 2009 17:15 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi,

Orcun wrote:
> Hi all,
>
> I'm trying to use two different (two meta-model) input models in EGL
> template run configuration but it seems that it accepts only the first
> one. For instance, if I define models as ModelX and ModelY, ModelY is
> not recognized by engine and vice versa.

Just to clarify, do you have 2 models: 1 is an instance of MetamodelX
and 1 is an instance of MetamodelY?

>
> I tried models with their own related codes, one by one and both models
> are flawless separately. On the other hand, running two input model
> displays an error message for the second model: "Type 'ModelYSubType'
> not found".
>

What results do you get when running the following simple template with
2 input models, one called ModelX and the other called ModelY?

[%=ModelX!AClassFromMetamodelX.all%]
[%=ModelY!AClassFromMetamodelY.all%]

Be sure to replace AClassFromMetamodelX (AClassFromMetamodelY) with the
name of an EClass from the the metamodel of ModelX (ModelY).

Cheers,
Louis.

----
Louis Rose
Research Student
Department of Computer Science,
University of York,
Heslington, York, YO10 5DD, United Kingdom.
+44 1904 434762
Twitter: @louismrose
Re: [EGL] [newbie] Multiple input models problem [message #440584 is a reply to message #432790] Fri, 31 July 2009 08:40 Go to previous messageGo to next message
Orcun Dayibas is currently offline Orcun DayibasFriend
Messages: 8
Registered: July 2009
Junior Member
[%=DomainModel!Component.all%]
<delimiter>
[%=FeatureModel!Feature.all%]

[org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1875a82 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@14742ee (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@17b3295 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1360218 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false))]
<delimiter>
[org.eclipse.emf.ecore.impl.DynamicEObjectImpl@c03da9 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1103411 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
(instanceClassName: null) (abstract: false, interface: false))]
Re: [EGL] [newbie] Multiple input models problem [message #441280 is a reply to message #440584] Fri, 31 July 2009 10:10 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Orcun wrote:
> [%=DomainModel!Component.all%]
> <delimiter>
> [%=FeatureModel!Feature.all%]
>
> [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1875a82 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@14742ee (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@17b3295 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1360218 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false))]
> <delimiter>
> [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@c03da9 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1103411 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
> (instanceClassName: null) (abstract: false, interface: false))]
>

Great, so this looks like you have 4 Components in your domain model and
2 Features in your feature model.

Be sure to prefix all uses of a metaclass name with the name of the
model. So, always use (for example):

DomainModel!Component

rather than:

Component


Does this answer your original question, or do you still have errors
when running your EGL script?

Cheers,
Louis.
Re: [EGL] [newbie] Multiple input models problem [message #442963 is a reply to message #441280] Fri, 31 July 2009 13:45 Go to previous message
Orcun Dayibas is currently offline Orcun DayibasFriend
Messages: 8
Registered: July 2009
Junior Member
Louis,

Explicit usage solved my problem, thank you for your swift reply...
Re: [EGL] [newbie] Multiple input models problem [message #571793 is a reply to message #432405] Thu, 30 July 2009 17:15 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi,

Orcun wrote:
> Hi all,
>
> I'm trying to use two different (two meta-model) input models in EGL
> template run configuration but it seems that it accepts only the first
> one. For instance, if I define models as ModelX and ModelY, ModelY is
> not recognized by engine and vice versa.

Just to clarify, do you have 2 models: 1 is an instance of MetamodelX
and 1 is an instance of MetamodelY?

>
> I tried models with their own related codes, one by one and both models
> are flawless separately. On the other hand, running two input model
> displays an error message for the second model: "Type 'ModelYSubType'
> not found".
>

What results do you get when running the following simple template with
2 input models, one called ModelX and the other called ModelY?

[%=ModelX!AClassFromMetamodelX.all%]
[%=ModelY!AClassFromMetamodelY.all%]

Be sure to replace AClassFromMetamodelX (AClassFromMetamodelY) with the
name of an EClass from the the metamodel of ModelX (ModelY).

Cheers,
Louis.

----
Louis Rose
Research Student
Department of Computer Science,
University of York,
Heslington, York, YO10 5DD, United Kingdom.
+44 1904 434762
Twitter: @louismrose
Re: [EGL] [newbie] Multiple input models problem [message #571922 is a reply to message #432790] Fri, 31 July 2009 08:40 Go to previous message
Orcun Dayibas is currently offline Orcun DayibasFriend
Messages: 8
Registered: July 2009
Junior Member
[%=DomainModel!Component.all%]
<delimiter>
[%=FeatureModel!Feature.all%]

[org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1875a82 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@14742ee (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@17b3295 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1360218 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
(instanceClassName: null) (abstract: false, interface: false))]
<delimiter>
[org.eclipse.emf.ecore.impl.DynamicEObjectImpl@c03da9 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
(instanceClassName: null) (abstract: false, interface: false)),
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1103411 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
(instanceClassName: null) (abstract: false, interface: false))]
Re: [EGL] [newbie] Multiple input models problem [message #571943 is a reply to message #440584] Fri, 31 July 2009 10:10 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Orcun wrote:
> [%=DomainModel!Component.all%]
> <delimiter>
> [%=FeatureModel!Feature.all%]
>
> [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1875a82 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@14742ee (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@17b3295 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1360218 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@2ca90c (name: Component)
> (instanceClassName: null) (abstract: false, interface: false))]
> <delimiter>
> [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@c03da9 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
> (instanceClassName: null) (abstract: false, interface: false)),
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1103411 (eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@6288ed (name: Feature)
> (instanceClassName: null) (abstract: false, interface: false))]
>

Great, so this looks like you have 4 Components in your domain model and
2 Features in your feature model.

Be sure to prefix all uses of a metaclass name with the name of the
model. So, always use (for example):

DomainModel!Component

rather than:

Component


Does this answer your original question, or do you still have errors
when running your EGL script?

Cheers,
Louis.
Re: [EGL] [newbie] Multiple input models problem [message #572010 is a reply to message #441280] Fri, 31 July 2009 13:45 Go to previous message
Orcun Dayibas is currently offline Orcun DayibasFriend
Messages: 8
Registered: July 2009
Junior Member
Louis,

Explicit usage solved my problem, thank you for your swift reply...
Previous Topic:[ETL][Newbie] how to execute ETL script
Next Topic:Calling EOL from Java
Goto Forum:
  


Current Time: Wed Nov 26 15:42:05 GMT 2014

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

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