Author Topic: Function of «metaclass» Classifier?  (Read 4051 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8599
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Function of «metaclass» Classifier?
« on: April 04, 2010, 04:33:17 am »
When you create an MDG, you create profiles which start with «metaclass»(es) which get extended by stereotypes.

One of the available metaclasses is "Classifier".  I believe I understand what it is - it's the base item that "Class" and "Use Case" and "Activity" extend to define themselves  (please correct me if this is not so).

So, what is the function of this item in an MDG?   To allow us to create new types of metaclasses?  For example, I want to create a new type of thing - a Term.  I could extend "Class", but that would create a Class stereotyped «Term».  I'd actually like to create a new type of thing (such as a Requirement or Feature or Change etc).  This is because I want to stereotype Terms (with their own subset of stereotypes).

Can I use the Classifier metaclass for this purpose?  Should I be able to?  It would seem to me that the ability to for users to be able to create new types of elements (like Sparx is able to do would be REALLY REALLY cool...)

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8067
  • Karma: +118/-20
    • View Profile
Re: Function of «metaclass» Classifier?
« Reply #1 on: April 06, 2010, 08:18:45 am »
The «metaclass» denotes a known UML metaclass.  To do what you want have a look at http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/defining_a_stereotype_as_a_met.html

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8599
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Function of «metaclass» Classifier?
« Reply #2 on: April 06, 2010, 02:55:01 pm »
Quote
The «metaclass» denotes a known UML metaclass.  To do what you want have a look at http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/defining_a_stereotype_as_a_met.html
Hi Simon,

I was aware of the link but I believed it didn't actually do what I wanted.  I've just created my equivalent example and it confirms what I thought.  I've created stereotype "Term" which extends "Class" as per the example.

While it goes part of the way, it doesn't do what I need in one crucial area:
It creates a t_object of type Class with stereotype "Term".  I actually need to stereotype Term and so that would mean additional stereotypes - which (I think) I can't access in shape scripts.

What I'm after is a t_object of type "Term" - which EA could find by looking up the MDG - with NO stereotype.  Is that possible?

Sparx is able to create new types of objects - Requirements, Features, Changes etc.  It would be really cool if users could.  Initially, the default properties could be the generic classifier set.

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8067
  • Karma: +118/-20
    • View Profile
Re: Function of «metaclass» Classifier?
« Reply #3 on: April 07, 2010, 08:32:35 am »
The link I gave is the closest you can get in EA currently.