Book a Demo

Author Topic: Base Class  (Read 5155 times)

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Base Class
« on: March 01, 2017, 10:46:26 pm »
Hello,

Could somebody explain to me the concept behind Base Classes in UML types, please?

Many thanks in advance, V.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Base Class
« Reply #1 on: March 01, 2017, 11:19:40 pm »
If you explain what you mean by UML types.

The only UML reference I found is on pp. 259:

Quote
The name of the Property typed by the extended metaclass is:

‘base_’ extendedMetaclassName

The name of the Property typed by the extension Stereotype (the ExtensionEnd) is:

‘extension_’ stereotypeName

Constraints are frequently added to Stereotypes. The above Properties may be used for expressing OCL navigations. For example, the following OCL expression states that a Home Interface shall not have attributes:

       self.base_Interface.ownedAttributes->isEmpty()

q.

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Base Class
« Reply #2 on: March 02, 2017, 02:52:53 am »
If you explain what you mean by UML types.

Project > Settings > UML Types.

Here I implement stereotypes and shape scripts.

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Base Class
« Reply #3 on: March 02, 2017, 02:59:53 am »
‘base_’ extendedMetaclassName

The name of the Property typed by the extension Stereotype (the ExtensionEnd) is:

‘extension_’ stereotypeName

Constraints are frequently added to Stereotypes. The above Properties may be used for expressing OCL navigations. For example, the following OCL expression states that a Home Interface shall not have attributes:

       self.base_Interface.ownedAttributes->isEmpty()

I am as confused as before :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Base Class
« Reply #4 on: March 02, 2017, 07:31:34 am »
"UML types" in that context is a Sparx invention for predefined Stereotypes, Tagged Values and whatever one likes to appear in the cardinality drop downs.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Base Class
« Reply #5 on: March 02, 2017, 09:15:27 am »
Hello,

Could somebody explain to me the concept behind Base Classes in UML types, please?

Many thanks in advance, V.

If you want to define a global stereotype that extends Class, for example, you type "class" in the Base Class field. By global stereotype, I mean a stereotype that isn't part of a UML Profile. Most of the values for Base Class will be UML metaclasses, but there are some exceptions (e.g. "requirement") that you can pick up as you go.
The Sparx Team
[email protected]