|
|
|
|
Re: HUTN generated no model [message #15702 is a reply to message #15675] |
Mon, 20 April 2009 11:02 |
Louis Rose Messages: 440 Registered: July 2009 Location: York, United Kingdom |
Senior Member |
|
|
Hi,
I've been able to recreate the problem. This seems to be caused by
either a change in the interface to, or a regression of, Epsilon's EMF
model support.
mse07004, could you open a bug on the Epsilon bugzilla to track this? I
will work on a patch:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon
Cheers,
Louis.
Dimitris Kolovos wrote:
> Hi,
>
> I can't seem to be able to reproduce the problem... In my machine saving
> the .hutn file produces a .model file as expected. Perhaps Louis (CC'ed)
> can help more with this.
>
> Cheers,
> Dimitris
>
> mse07004 wrote:
>> The Ecore File, as emfatic:
>>
>> @namespace(uri="families", prefix="families")
>> package families;
>>
>> abstract class NamedElement {
>> attr String name;
>> }
>>
>> class Family extends NamedElement {
>> attr String[*] address;
>> ref Pet[*] pets;
>> attr int numberOfChildren;
>> val Person[*] members;
>> attr String ~id;
>> attr boolean nuclear;
>> attr float averageAge;
>> readonly derived ref Dog[+] dogs;
>> ref District#families district;
>> }
>>
>> class Pet extends NamedElement {
>> attr boolean male;
>> }
>>
>> class Person extends NamedElement {
>> }
>>
>> class Dog extends Pet {
>> attr boolean loud;
>> attr DogBreed[1] breed;
>> ref District#dogs district;
>> }
>>
>> enum DogBreed {
>> poodle = 1;
>> labrador = 2;
>> }
>>
>> class District {
>> val Family[+]#district families;
>> val Dog[+]#district dogs;
>> }
>>
>> class Model {
>> val NamedElement[*] contents;
>> val NamedElement[*] contents2;
>> }
>>
>>
>> The HUTN File
>> @Spec {
>> metamodel "families" {
>> nsUri: "families"
>> }
>> }
>>
>> families {
>> Family "F" {
>> id: "F"
>> numberOfChildren: 1
>> nuclear: false
>> averageAge: 20.5
>> members: Person "father", Person "mother", Person "child"
>> pets: Pet "dog" }
>> Person "father" {
>> name: "father"
>> }
>> Person "mother" {
>> name: "mother"
>> }
>> Person "child" {
>> name: "child"
>> }
>> Dog "dog" {
>> male: true
>> loud: false
>> breed: labrador
>> }
>> }
>>
>>
|
|
|
|
|
|
|
|
|
|
Re: HUTN generated no model [message #566820 is a reply to message #15675] |
Mon, 20 April 2009 11:02 |
Louis Rose Messages: 440 Registered: July 2009 Location: York, United Kingdom |
Senior Member |
|
|
Hi,
I've been able to recreate the problem. This seems to be caused by
either a change in the interface to, or a regression of, Epsilon's EMF
model support.
mse07004, could you open a bug on the Epsilon bugzilla to track this? I
will work on a patch:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon
Cheers,
Louis.
Dimitris Kolovos wrote:
> Hi,
>
> I can't seem to be able to reproduce the problem... In my machine saving
> the .hutn file produces a .model file as expected. Perhaps Louis (CC'ed)
> can help more with this.
>
> Cheers,
> Dimitris
>
> mse07004 wrote:
>> The Ecore File, as emfatic:
>>
>> @namespace(uri="families", prefix="families")
>> package families;
>>
>> abstract class NamedElement {
>> attr String name;
>> }
>>
>> class Family extends NamedElement {
>> attr String[*] address;
>> ref Pet[*] pets;
>> attr int numberOfChildren;
>> val Person[*] members;
>> attr String ~id;
>> attr boolean nuclear;
>> attr float averageAge;
>> readonly derived ref Dog[+] dogs;
>> ref District#families district;
>> }
>>
>> class Pet extends NamedElement {
>> attr boolean male;
>> }
>>
>> class Person extends NamedElement {
>> }
>>
>> class Dog extends Pet {
>> attr boolean loud;
>> attr DogBreed[1] breed;
>> ref District#dogs district;
>> }
>>
>> enum DogBreed {
>> poodle = 1;
>> labrador = 2;
>> }
>>
>> class District {
>> val Family[+]#district families;
>> val Dog[+]#district dogs;
>> }
>>
>> class Model {
>> val NamedElement[*] contents;
>> val NamedElement[*] contents2;
>> }
>>
>>
>> The HUTN File
>> @Spec {
>> metamodel "families" {
>> nsUri: "families"
>> }
>> }
>>
>> families {
>> Family "F" {
>> id: "F"
>> numberOfChildren: 1
>> nuclear: false
>> averageAge: 20.5
>> members: Person "father", Person "mother", Person "child"
>> pets: Pet "dog" }
>> Person "father" {
>> name: "father"
>> }
>> Person "mother" {
>> name: "mother"
>> }
>> Person "child" {
>> name: "child"
>> }
>> Dog "dog" {
>> male: true
>> loud: false
>> breed: labrador
>> }
>> }
>>
>>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05560 seconds