HUTN generated no model [message #15582] |
Thu, 16 April 2009 08:22  |
Eclipse User |
|
|
|
Hi all,
the Epsilon HUTN implementation writes no model.
I get no error!
I get the following message
Generated /home/......../workspace/hutn/TROPIC/tropic.model
But there is no "tropic.model" at that location.
I donwloaded eclipse from
http://www.eclipse.org/gmt/epsilon/download.php
yesterday.
I installed the stable version of epsilon first and then,
after I got no model, the interim version of
epsilon.
Can anybode help me or give me a hint, whats the problem could be?
thx,
mse07004
|
|
|
|
|
|
Re: HUTN generated no model [message #15702 is a reply to message #15675] |
Mon, 20 April 2009 07:02   |
Eclipse User |
|
|
|
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 #566761 is a reply to message #15582] |
Thu, 16 April 2009 08:39  |
Eclipse User |
|
|
|
Hi,
Could you please attach the .hutn and the respective .ecore so that we
can try to reproduce this?
Cheers,
Dimitris
mse07004 wrote:
> Hi all,
> the Epsilon HUTN implementation writes no model.
> I get no error!
> I get the following message
> Generated /home/......../workspace/hutn/TROPIC/tropic.model
> But there is no "tropic.model" at that location.
> I donwloaded eclipse from http://www.eclipse.org/gmt/epsilon/download.php
> yesterday.
> I installed the stable version of epsilon first and then,
> after I got no model, the interim version of
> epsilon.
> Can anybode help me or give me a hint, whats the problem could be?
>
> thx,
> mse07004
>
|
|
|
Re: HUTN generated no model [message #566774 is a reply to message #15615] |
Fri, 17 April 2009 01:53  |
Eclipse User |
|
|
|
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 #566792 is a reply to message #15646] |
Fri, 17 April 2009 04:08  |
Eclipse User |
|
|
|
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 07:02  |
Eclipse User |
|
|
|
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.04359 seconds