Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [MOFScript] objectsOfType
[MOFScript] objectsOfType [message #377700] Mon, 14 May 2007 09:18 Go to next message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------050400050900050904090008
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi everybody,

has anyone any experience with the model operation objectsOfType() in
MOFScript? It doesn't seem to work on MOFScript 1.2.0.
Are there any fast workaround for the same semantics?

Thanks,

Matteo

--------------050400050900050904090008
Content-Type: text/x-vcard; charset=utf-8;
name="bordinmatteo.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="bordinmatteo.vcf"

begin:vcard
fn:Matteo Bordin
n:Bordin;Matteo
org:University of Padua
email;internet:bordinmatteo@yahoo.it
title:MSc. candidate
url:http://www.studenti.math.unipd.it/~mbordin
version:2.1
end:vcard


--------------050400050900050904090008--
Re: [MOFScript] objectsOfType [message #377701 is a reply to message #377700] Mon, 14 May 2007 10:53 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Matteo,

I am not sure what you try to achieve, but e.g. the following example code,
will print out the name of all the classes in the model.

var tt: List = uml.objectsOfType(uml.Class)

tt->forEach(c:uml.Class){
stdout.println("Class Name: "+c.name)
}

/G
Re: [MOFScript] objectsOfType [message #377702 is a reply to message #377701] Mon, 14 May 2007 11:57 Go to previous messageGo to next message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------030205020807090601020203
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Dear G
Re: [MOFScript] objectsOfType [message #377705 is a reply to message #377702] Mon, 14 May 2007 13:47 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Matteo,

I encountered the same error using my own defined meta model and a dynamic
instance of it.
We will have to take a closer look at it, and it is placed on our todo list.

/G
Re: [MOFScript] objectsOfType [message #377706 is a reply to message #377705] Mon, 14 May 2007 14:07 Go to previous messageGo to next message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090808080405070300010205
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

G
Re: [MOFScript] objectsOfType [message #377709 is a reply to message #377706] Tue, 15 May 2007 08:42 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Matteo,

We have resolved the bug and the fix will be part of the next release of
MOFScript.
If you need the fix asap, let me know, and I will send it to you by mail.

/G
Re: [MOFScript] objectsOfType [message #377711 is a reply to message #377709] Tue, 15 May 2007 11:46 Go to previous messageGo to next message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090503090902080700080306
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Dear G
Re: [MOFScript] objectsOfType [message #377712 is a reply to message #377711] Tue, 15 May 2007 13:04 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Matteo,

We have not any fixed date for a new release (usually it depends on the
number of fixes).
There are a couple of other things we would like to add before a new
release, but
if everything goes as planned, we could have a new version by the end of
next week.

/G
Re: [MOFScript] objectsOfType [message #377714 is a reply to message #377712] Tue, 15 May 2007 14:44 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090305020909060106020400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

That's a great news G
Re: [MOFScript] objectsOfType [message #596205 is a reply to message #377700] Mon, 14 May 2007 10:53 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Matteo,

I am not sure what you try to achieve, but e.g. the following example code,
will print out the name of all the classes in the model.

var tt: List = uml.objectsOfType(uml.Class)

tt->forEach(c:uml.Class){
stdout.println("Class Name: "+c.name)
}

/G
Re: [MOFScript] objectsOfType [message #596214 is a reply to message #377701] Mon, 14 May 2007 11:57 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------030205020807090601020203
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Dear G
Re: [MOFScript] objectsOfType [message #596783 is a reply to message #377702] Mon, 14 May 2007 13:47 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Matteo,

I encountered the same error using my own defined meta model and a dynamic
instance of it.
We will have to take a closer look at it, and it is placed on our todo list.

/G
Re: [MOFScript] objectsOfType [message #596791 is a reply to message #377705] Mon, 14 May 2007 14:07 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090808080405070300010205
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

G
Re: [MOFScript] objectsOfType [message #596824 is a reply to message #377706] Tue, 15 May 2007 08:42 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Matteo,

We have resolved the bug and the fix will be part of the next release of
MOFScript.
If you need the fix asap, let me know, and I will send it to you by mail.

/G
Re: [MOFScript] objectsOfType [message #596848 is a reply to message #377709] Tue, 15 May 2007 11:46 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090503090902080700080306
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Dear G
Re: [MOFScript] objectsOfType [message #596858 is a reply to message #377711] Tue, 15 May 2007 13:04 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Matteo,

We have not any fixed date for a new release (usually it depends on the
number of fixes).
There are a couple of other things we would like to add before a new
release, but
if everything goes as planned, we could have a new version by the end of
next week.

/G
Re: [MOFScript] objectsOfType [message #596888 is a reply to message #377712] Tue, 15 May 2007 14:44 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090305020909060106020400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

That's a great news G
Previous Topic:[MOFScript] executing transformation
Next Topic:[epsilon] error using EXEED
Goto Forum:
  


Current Time: Wed Dec 17 23:08:41 GMT 2014

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

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