Book a Demo

Author Topic: Types for MDA Transformations?  (Read 3205 times)

jps

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Types for MDA Transformations?
« on: June 17, 2005, 10:43:12 am »
What should we use for the “language” or “types” when creating a PIM?  I’m guessing the transformation engine expects OCL types, but I don’t see OCL as a language selection.

Thanks!

James

ebadude

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Types for MDA Transformations?
« Reply #1 on: June 17, 2005, 11:29:58 am »
Hi James,

I posted about the language for the MDA transformation engine. I was referred to the docs which are pretty sparse. I did some digging (don't ask me how ;) )  and found the definition for the transformations. I posted some of it in

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1117817831

For some reason Sparx doesn't want to make their grammar for the tranformation engine public. This is confusing but we should respect their wishes and not post it. I will tell you that you can find it if you are persistent enough.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Types for MDA Transformations?
« Reply #2 on: June 21, 2005, 06:21:32 pm »
The language that you are using to model your PIM isn't important, unless you use it to help specify what types you should be using.  In which case you will need to create a new language. (By defining the datatypes for that language)

The datatypes that you will need can be found by looking at the languages that you are transforming to and looking at the Common Type for each type.  The CONVERT_TYPE macro does a map from a common type, to the datatype for the language being transformed to.

I hope this helps.

Simon