Book a Demo

Author Topic: Objects and lifelines  (Read 6199 times)

zyx

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-1
    • View Profile
Objects and lifelines
« on: December 12, 2010, 03:57:22 am »
Again I apologize for my bad english.

What is the difference between objects and lifelines? A lifeline is an object that participates of a specific interaction?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Objects and lifelines
« Reply #1 on: December 13, 2010, 05:54:37 pm »
Quote
A lifeline is an object that participates of a specific interaction?

Sort of. A lifeline lives withing the interaction, and represent a "ConnectableElement". This  connectable element is an instance of a classifier (-> object) that can be linked with a connector.

From UML superstructure 2.3
Quote
ConnectableElement
A ConnectableElement is an abstract metaclass representing a set of instances that play roles of a classifier. Connectable
elements may be joined by attached connectors and specify configurations of linked instances to be created within an
instance of the containing classifier.

Geert

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Objects and lifelines
« Reply #2 on: December 13, 2010, 08:37:16 pm »
... and if that quote doesn't clear everything up I will donate my entire fortune (about 11c) to the nearest church of the Utterly Meaningless Linguistics.
 ;)

OK, I've been staring at this for 1.5 hours now (nothing on TV). So far I've got through the first sentence.

A "lifeline" is an object, being an instance of a "connectable element".
Which is a classifier, albeit abstract and meta.
But that still makes it an object.

Now, apparently a "connectable element" is also  an "abstract metaclass representing a set of instances that play roles of a classifier", which having deciphered over 10^19 iterations seems to say that it is actually a classifier of objects representing classifiers, or to be banal "a class of objects that are instances of classes" ... ... ...

Common sense and many programming languages tend to define  "a class of objects that are instances of classes" as an "Object".  So, so far, in reply to the OP I would say yes, they are objects.  But I haven't got as far as the second sentence yet.

Please note that I am being serious here. This is not a "b" post.

p.s. Oftimes your humble correspondent has been accused and yetsofar is innocent in intent of any and all instances of mentioning the ult.  A wise and erudite pundit once expounded that one should "eschew obfuscation" in any commercial, official or personal communications lest one's intent benign or otherwise be misconstrued. On my personal behalf I opine that perchance it would prove beneficial should OMG adopt said precept in any instance.
« Last Edit: December 13, 2010, 11:03:32 pm by sargasso »
"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.