Book a Demo

Author Topic: Properties, Attributes and Slots  (Read 6064 times)

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Properties, Attributes and Slots
« on: September 27, 2005, 10:01:33 am »
Reading (in the UML 2 Superstructure)  the definition of the subject terms I've come to a conclusion upon which I seek consus.

"property is to element, as attribute is to classifier, as slot is to object."

Do I have this right?
Verbal Use Cases aren't worth the paper they are written upon.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Properties, Attributes and Slots
« Reply #1 on: September 28, 2005, 04:44:43 am »
No, Jim...

From the Infrastructure document:

A property is a typed element that represents an attribute of a class.

The Superstructure document has similar statements.

So, the first clause of your statement is incorrect.

However, Attribute is to Class as Slot is to Object.

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

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Properties, Attributes and Slots
« Reply #2 on: September 28, 2005, 09:53:42 pm »
Sorry Paolo;

I'm feeling devilish tonight and I just can't let this opportunity pass... ;D

Quote
However, Attribute is to Class as Slot is to Object.


Since, under IoC, dependencies are wired in when a Composite is instantiated, or perhaps later in execution time, making the object, not the class, the  target of the injection, would you consider using the term slot injection rather than attribute injection?   8)

(No need to respond)  ;)
Verbal Use Cases aren't worth the paper they are written upon.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Properties, Attributes and Slots
« Reply #3 on: September 29, 2005, 02:11:07 am »
Quote
Sorry Paolo;

I'm feeling devilish tonight and I just can't let this opportunity pass... ;D


Since, under IoC, dependencies are wired in when a Composite is instantiated, or perhaps later in execution time, making the object, not the class, the  target of the injection, would you consider using the term slot injection rather than attribute injection?   8)

(No need to respond)  ;)
No need to respond, but to acknowledge the excellence!  8)   8)

I agree 150% and (as Mrs Slocombe  - Are you being served? - would say...) I am unanimous in this! ;D

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