Book a Demo

Author Topic: Classifiers and classes  (Read 6038 times)

zyx

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-1
    • View Profile
Classifiers and classes
« on: July 15, 2010, 04:34:05 am »
Hello all,

    Again I apologize for my bad english.


    What is the difference between classifiers and classes? A class is a kind of classifier but a classifier not necessarily is a class. A classifier is a mechanism that describes behavioral and structural features, but a class don’t describes it too?

    I read that a classifier is an abstract metaclass, but a metaclass is a class whose instances are classes. It is not more correct to say a metaclass is a classifier whose instances are classifiers?

    A use case, by example, is defined by a metaclass, but a use case is not a class, a use case is classifier.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Classifiers and classes
« Reply #1 on: July 15, 2010, 04:00:07 pm »
I think you understood it pretty well.
There are a lot of (meta) Classifiers in UML, of which (meta) Class is one.
But a MetaClass is a class (in the metamodel) whose instances are concrete UML elements (could be a class, a use case, an attribute...)

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Classifiers and classes
« Reply #2 on: July 15, 2010, 04:16:10 pm »
Quote
A classifier is a mechanism that describes behavioral and structural features, but a class don’t describes it too?
Yes, a Class is a Classifier whose features are "attributes" and "operations".

Quote
I read that a classifier is an abstract metaclass
Correct, it just means you can't create a "Classifier" element in your model, you need to be more specific in what kind of classifier, e.g. Class, DataType, Interface, ...
« Last Edit: July 15, 2010, 04:23:47 pm by KP »
The Sparx Team
[email protected]

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Classifiers and classes
« Reply #3 on: July 16, 2010, 09:49:15 pm »
Classes get implemented, IOW  coded. Classifiers are something of which the deities speak. No more is needed.

cheers
bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.