Book a Demo

Author Topic: CRC cards  (Read 11880 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: CRC cards
« Reply #15 on: August 05, 2009, 06:38:47 pm »
Quote
Create a <<CRC Card>> stereotype and assign a "shape script" to it.
Hi Luis,

The problem is that (in my view) you want to be able to render any arbitrary class (already stereotyped for other functional purposes) as a CRC Card.  It would be analogous to using non-rectangular notation for a class (since ordinary classes have no other rendering than "rectangular notation).

If you want to make CRC "classes" different to ordinary classes, then your suggestion is feasible.  But I don't think that's the ultimate intent (although as an interim it might be feasible).  In any event, I think (without proof) you can get just about as close with Setting the feature visibility.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: CRC cards
« Reply #16 on: August 05, 2009, 06:44:18 pm »
MDG Technology is most complete, but the easiest way is:

Menu "Settings | UML..." --> Stereotypes

Stereotype: CRC Card
Base Class: Class
Override Appearance --> Shape Script: user-defined script to create the shape of the CRC card.

You can do this thought a UML profile. It's more simple than MDG Technology and you may have the "CRC Card" element available in the Toolbox