Home » Modeling » Epsilon » [Hutn] problem and a general question
[Hutn] problem and a general question [message #18072] |
Tue, 19 May 2009 09:48  |
Eclipse User |
|
|
|
Dear all,
I have a problem instantiating a model using hutn. I follow the procedure
specified in http://www.eclipse.org/gmt/epsilon/cinema/HUTN.htm but I get
the following error:
org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Called
feature owner on undefined object (157:102)
Can you understand the nature of the problem? I have registered the
EPackage and added the Hutn nature to my project.
My reason for using Hutn is that I have a mathematical formula that I want
to transform to a model whose metamodel has been defined with ecore. I
plan to use Java to transform the formula to Hutn format and then get the
model. Is there a more practical way for my T2M transformation?
Thank you in advance,
Nikos
|
|
| |
Re: [Hutn] problem and a general question [message #18623 is a reply to message #18085] |
Wed, 20 May 2009 03:19   |
Eclipse User |
|
|
|
Dear Dimitris,
I downloaded your files and put them in my project, however the demo.hutn
does not execute. I have Ganymede eclipse is that a problem? Epsilon was
successfully installed. One question is about the Families.emf file. Is it
needed? How is it generated? (I work with ecore files)
Anyway, the demo produces the error:
[Line: 8, Column: 4, Reason: Unrecognised classifier: XMI, Line: 9,
Column: 16, Reason: Unrecognised classifier: UnknownType, Line: 14,
Column: 13, Reason: Unrecognised classifier: UnknownType, Line: 17,
Column: 11, Reason: Unrecognised classifier: UnknownType]
Thanks a lot,
Nikos
Dimitris Kolovos wrote:
> Hi Niko,
> Please see comments below
> Nikos wrote:
>> Dear all,
>>
>> I have a problem instantiating a model using hutn. I follow the
>> procedure specified in
>> http://www.eclipse.org/gmt/epsilon/cinema/HUTN.htm but I get the
>> following error:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Called
>> feature owner on undefined object (157:102)
>>
>> Can you understand the nature of the problem? I have registered the
>> EPackage and added the Hutn nature to my project.
> I'm afraid I can't reproduce this. To make sure that there is nothing
> wrong with your .ecore/.hutn I've shared the example in the SVN under
>
https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.eps ilon/trunk/examples/org.eclipse.epsilon.examples.hutn.famili es
> .. Could you please check this out and give it another go? (I assume you
> are using the latest version of Epsilon - 0.8.5)
>>
>> My reason for using Hutn is that I have a mathematical formula that I
>> want to transform to a model whose metamodel has been defined with
>> ecore. I plan to use Java to transform the formula to Hutn format and
>> then get the model. Is there a more practical way for my T2M
>> transformation?
> I suspect that you already have a parser for mathematical expressions
> which produces some sort of AST. I guess you could also use the AST to
> populate your ecore model directly (either in a reflective way or after
> generating Java code from your ecore metamodel).
>>
>> Thank you in advance,
>> Nikos
>>
> Cheers,
> Dimitris
|
|
|
Re: [Hutn] problem and a general question [message #18642 is a reply to message #18623] |
Wed, 20 May 2009 09:50   |
Eclipse User |
|
|
|
Hi Nikos,
Nikos wrote:
> Dear Dimitris,
>
> I downloaded your files and put them in my project, however the
> demo.hutn does not execute.
Have you replaced your old Families.ecore with the new one or did you
put the new one elsewhere and registered it too? If you did the latter,
I'd suggest you delete the old .ecore and restart Eclipse to unregister it.
> I have Ganymede eclipse is that a problem?
No.
> Epsilon was successfully installed. One question is about the
> Families.emf file. Is it needed? How is it generated? (I work with ecore
> files)
..emf files are Ecore metamodels expressed in the the Emfatic textual
notation. You can find out more about Emfatic in
http://www.alphaworks.ibm.com/tech/emfatic and
http://wiki.eclipse.org/Emfatic.
>
> Anyway, the demo produces the error:
> [Line: 8, Column: 4, Reason: Unrecognised classifier: XMI, Line: 9,
> Column: 16, Reason: Unrecognised classifier: UnknownType, Line: 14,
> Column: 13, Reason: Unrecognised classifier: UnknownType, Line: 17,
> Column: 11, Reason: Unrecognised classifier: UnknownType]
This looks strange indeed. Does this happen with the .hutn file I
uploaded? BTW could you please send me your original .ecore and .hutn files?
>
> Thanks a lot,
> Nikos
>
Dimitris
> Dimitris Kolovos wrote:
>
>> Hi Niko,
>
>> Please see comments below
>
>> Nikos wrote:
>>> Dear all,
>>>
>>> I have a problem instantiating a model using hutn. I follow the
>>> procedure specified in
>>> http://www.eclipse.org/gmt/epsilon/cinema/HUTN.htm but I get the
>>> following error:
>>>
>>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Called
>>> feature owner on undefined object (157:102)
>>>
>>> Can you understand the nature of the problem? I have registered the
>>> EPackage and added the Hutn nature to my project.
>
>> I'm afraid I can't reproduce this. To make sure that there is nothing
>> wrong with your .ecore/.hutn I've shared the example in the SVN under
> https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.eps ilon/trunk/examples/org.eclipse.epsilon.examples.hutn.famili es
>
>> .. Could you please check this out and give it another go? (I assume
>> you are using the latest version of Epsilon - 0.8.5)
>
>>>
>>> My reason for using Hutn is that I have a mathematical formula that I
>>> want to transform to a model whose metamodel has been defined with
>>> ecore. I plan to use Java to transform the formula to Hutn format and
>>> then get the model. Is there a more practical way for my T2M
>>> transformation?
>
>> I suspect that you already have a parser for mathematical expressions
>> which produces some sort of AST. I guess you could also use the AST to
>> populate your ecore model directly (either in a reflective way or
>> after generating Java code from your ecore metamodel).
>
>>>
>>> Thank you in advance,
>>> Nikos
>>>
>
>> Cheers,
>> Dimitris
>
>
|
|
| | | | |
Re: [Hutn] problem and a general question [message #568300 is a reply to message #18072] |
Tue, 19 May 2009 10:48  |
Eclipse User |
|
|
|
Hi Niko,
Please see comments below
Nikos wrote:
> Dear all,
>
> I have a problem instantiating a model using hutn. I follow the
> procedure specified in
> http://www.eclipse.org/gmt/epsilon/cinema/HUTN.htm but I get the
> following error:
>
> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Called
> feature owner on undefined object (157:102)
>
> Can you understand the nature of the problem? I have registered the
> EPackage and added the Hutn nature to my project.
I'm afraid I can't reproduce this. To make sure that there is nothing
wrong with your .ecore/.hutn I've shared the example in the SVN under
https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.eps ilon/trunk/examples/org.eclipse.epsilon.examples.hutn.famili es
.. Could you please check this out and give it another go? (I assume you
are using the latest version of Epsilon - 0.8.5)
>
> My reason for using Hutn is that I have a mathematical formula that I
> want to transform to a model whose metamodel has been defined with
> ecore. I plan to use Java to transform the formula to Hutn format and
> then get the model. Is there a more practical way for my T2M
> transformation?
I suspect that you already have a parser for mathematical expressions
which produces some sort of AST. I guess you could also use the AST to
populate your ecore model directly (either in a reflective way or after
generating Java code from your ecore metamodel).
>
> Thank you in advance,
> Nikos
>
Cheers,
Dimitris
|
|
|
Re: [Hutn] problem and a general question [message #568311 is a reply to message #18085] |
Wed, 20 May 2009 03:19  |
Eclipse User |
|
|
|
Dear Dimitris,
I downloaded your files and put them in my project, however the demo.hutn
does not execute. I have Ganymede eclipse is that a problem? Epsilon was
successfully installed. One question is about the Families.emf file. Is it
needed? How is it generated? (I work with ecore files)
Anyway, the demo produces the error:
[Line: 8, Column: 4, Reason: Unrecognised classifier: XMI, Line: 9,
Column: 16, Reason: Unrecognised classifier: UnknownType, Line: 14,
Column: 13, Reason: Unrecognised classifier: UnknownType, Line: 17,
Column: 11, Reason: Unrecognised classifier: UnknownType]
Thanks a lot,
Nikos
Dimitris Kolovos wrote:
> Hi Niko,
> Please see comments below
> Nikos wrote:
>> Dear all,
>>
>> I have a problem instantiating a model using hutn. I follow the
>> procedure specified in
>> http://www.eclipse.org/gmt/epsilon/cinema/HUTN.htm but I get the
>> following error:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Called
>> feature owner on undefined object (157:102)
>>
>> Can you understand the nature of the problem? I have registered the
>> EPackage and added the Hutn nature to my project.
> I'm afraid I can't reproduce this. To make sure that there is nothing
> wrong with your .ecore/.hutn I've shared the example in the SVN under
>
https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.eps ilon/trunk/examples/org.eclipse.epsilon.examples.hutn.famili es
> .. Could you please check this out and give it another go? (I assume you
> are using the latest version of Epsilon - 0.8.5)
>>
>> My reason for using Hutn is that I have a mathematical formula that I
>> want to transform to a model whose metamodel has been defined with
>> ecore. I plan to use Java to transform the formula to Hutn format and
>> then get the model. Is there a more practical way for my T2M
>> transformation?
> I suspect that you already have a parser for mathematical expressions
> which produces some sort of AST. I guess you could also use the AST to
> populate your ecore model directly (either in a reflective way or after
> generating Java code from your ecore metamodel).
>>
>> Thank you in advance,
>> Nikos
>>
> Cheers,
> Dimitris
|
|
|
Re: [Hutn] problem and a general question [message #568324 is a reply to message #18623] |
Wed, 20 May 2009 09:50  |
Eclipse User |
|
|
|
Hi Nikos,
Nikos wrote:
> Dear Dimitris,
>
> I downloaded your files and put them in my project, however the
> demo.hutn does not execute.
Have you replaced your old Families.ecore with the new one or did you
put the new one elsewhere and registered it too? If you did the latter,
I'd suggest you delete the old .ecore and restart Eclipse to unregister it.
> I have Ganymede eclipse is that a problem?
No.
> Epsilon was successfully installed. One question is about the
> Families.emf file. Is it needed? How is it generated? (I work with ecore
> files)
..emf files are Ecore metamodels expressed in the the Emfatic textual
notation. You can find out more about Emfatic in
http://www.alphaworks.ibm.com/tech/emfatic and
http://wiki.eclipse.org/Emfatic
>
> Anyway, the demo produces the error:
> [Line: 8, Column: 4, Reason: Unrecognised classifier: XMI, Line: 9,
> Column: 16, Reason: Unrecognised classifier: UnknownType, Line: 14,
> Column: 13, Reason: Unrecognised classifier: UnknownType, Line: 17,
> Column: 11, Reason: Unrecognised classifier: UnknownType]
This looks strange indeed. Does this happen with the .hutn file I
uploaded? BTW could you please send me your original .ecore and .hutn files?
>
> Thanks a lot,
> Nikos
>
Dimitris
> Dimitris Kolovos wrote:
>
>> Hi Niko,
>
>> Please see comments below
>
>> Nikos wrote:
>>> Dear all,
>>>
>>> I have a problem instantiating a model using hutn. I follow the
>>> procedure specified in
>>> http://www.eclipse.org/gmt/epsilon/cinema/HUTN.htm but I get the
>>> following error:
>>>
>>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Called
>>> feature owner on undefined object (157:102)
>>>
>>> Can you understand the nature of the problem? I have registered the
>>> EPackage and added the Hutn nature to my project.
>
>> I'm afraid I can't reproduce this. To make sure that there is nothing
>> wrong with your .ecore/.hutn I've shared the example in the SVN under
> https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.eps ilon/trunk/examples/org.eclipse.epsilon.examples.hutn.famili es
>
>> .. Could you please check this out and give it another go? (I assume
>> you are using the latest version of Epsilon - 0.8.5)
>
>>>
>>> My reason for using Hutn is that I have a mathematical formula that I
>>> want to transform to a model whose metamodel has been defined with
>>> ecore. I plan to use Java to transform the formula to Hutn format and
>>> then get the model. Is there a more practical way for my T2M
>>> transformation?
>
>> I suspect that you already have a parser for mathematical expressions
>> which produces some sort of AST. I guess you could also use the AST to
>> populate your ecore model directly (either in a reflective way or
>> after generating Java code from your ecore metamodel).
>
>>>
>>> Thank you in advance,
>>> Nikos
>>>
>
>> Cheers,
>> Dimitris
>
>
|
|
| | | | |
Goto Forum:
Current Time: Fri May 09 23:18:10 EDT 2025
Powered by FUDForum. Page generated in 0.05306 seconds
|