Book a Demo

Author Topic: Multiple stereotypes in transformation rules  (Read 3722 times)

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Multiple stereotypes in transformation rules
« on: May 20, 2006, 05:24:28 am »
In the MDA context, when Platform Independent Model is to be transformed into a Platform Specific Model, transformation rules are written to control the transformation process.  Stereotyping is used in the model to trigger certain nuances in this transformation process.

The EA repository allows multiple stereotypes for an element, but stores them in different locations within the repository.
  • How, in the modeling process do I apply multiple stereotypes to an element?
  • In the syntax and grammar of the transformation rule language, how do I reference these stereotypes as a component of a conditional expression?
Verbal Use Cases aren't worth the paper they are written upon.

thomaskilian

  • Guest
Re: Multiple stereotypes in transformation rules
« Reply #1 on: May 20, 2006, 01:14:12 pm »
Jim,
I also stumbled over this in another context. I think that this multiple-stereotype thingy has been added on top of some functionality. Instead the original stereotype should have been replaced by the collection which it now is. Now we have a zombie. You can refer to the stereotype as a string and a collection. Paolo would say CCC :(

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Multiple stereotypes in transformation rules
« Reply #2 on: May 21, 2006, 10:49:56 pm »
Quote
Instead the original stereotype should have been replaced by the collection which it now is.

We're working hard to get this completely CCC-ed for 6.5. Note that a collection doesn't solve everything: there has to be a primary stereotype to resolve situations where more than one stereotype is trying to change an element's appearance.
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Multiple stereotypes in transformation rules
« Reply #3 on: May 22, 2006, 12:55:52 am »
Quote
We're working hard to get this completely CCC-ed for 6.5. Note that a collection doesn't solve everything: there has to be a primary stereotype to resolve situations where more than one stereotype is trying to change an element's appearance.
Actually, there needs to be an ranked list of stereotypes.  To fully implement a proper view of stereotypes and their application to an element, you need to rank their application.

The simplest form of ranking is Primary/Auxiliary (that is, other than primary).  However, if you can at least get the internal structures to handle proper ranking, then you can implement the simplest first and then add the more complex later.

The stereotype ranking has implications for more than just the appearance.

Paolo
« Last Edit: May 22, 2006, 12:56:17 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!