Author Topic: When is an instance not an Object?  (Read 8739 times)

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1116
  • Karma: +77/-72
    • View Profile
Re: When is an instance not an Object?
« Reply #15 on: May 05, 2016, 07:14:34 am »
Actors can't have operations. But if you create a class with operations and change it to be an actor it keeps the operations. Just to continue you list of strangenesses.

That would excite me if it also had a red nose that lit up.

qwerty

  • EA Guru
  • *****
  • Posts: 9683
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: When is an instance not an Object?
« Reply #16 on: May 05, 2016, 08:34:37 am »
You can easily show that with a shape script.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 6259
  • Karma: +104/-89
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: When is an instance not an Object?
« Reply #17 on: May 05, 2016, 09:30:51 am »
[Homily]
Everything should be able to have everything.

Separately you can create modifiable rule sets that implement a standard.

For example, in our case, we decided to remove the Actor - ActorInformation spurious dichotomy and just allow the information aspects of actors to be expressed as Features of the Actor.

Users should be given the most potential freedom, but initially restrained by the rules; until they are able - by their own want and ability - to modify the rules to suit their evolving needs and understanding.
[/Homily]

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

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1116
  • Karma: +77/-72
    • View Profile
Re: When is an instance not an Object?
« Reply #18 on: May 05, 2016, 10:10:50 am »
You can easily show that with a shape script.

I wonder how that would go as a feature request.  It would make the release notes more fun.

Ian Mitchell

  • EA User
  • **
  • Posts: 257
  • Karma: +5/-1
    • View Profile
Re: When is an instance not an Object?
« Reply #19 on: March 29, 2018, 01:26:47 am »
So this is the list of element types which create instances which have the same object_type as their classifier:
  • Component - and, i think, MDGs which create stereotypes of Component
  • Artifact
  • Requirements Checklist
  • Matrix specification
  • Report specification
  • Activity
  • Collaboration (not the new V14 collaboration thing - i think)
  • Deployment Specification
  • Device
  • Encrypted Document
  • Execution environment
  • Review (the v13/14 idea)
  • Node
Please note also:
- this is just derived from experimentation, so Sparx might change it if they feel like it
- these are just the types I can find - there may be more
- its seems likely that stereotypes of these types which are created by MDGs will also create 'typed' instances, but I've only looked at a few, and lots of MDGs just stereotype 'Class', so they will produce object_type="Object" anyway.
- I have no idea what instances of some of these mean in a model!
- all other seem to create instances with object_type="Object"
@querty - maybe this could go into the next 'Inside EA'?

Can I have my life back now please ?
Ian Mitchell, Designer, eaDocX

www.eaDocX.com
www.theartfulmodeller.com

qwerty

  • EA Guru
  • *****
  • Posts: 9683
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: When is an instance not an Object?
« Reply #20 on: March 29, 2018, 01:42:49 am »
I'll put that on my todo list :-)

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1274
  • Karma: +93/-8
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: When is an instance not an Object?
« Reply #21 on: March 29, 2018, 01:46:01 am »
Wow, you... actually sat down and did that.
That is laudable, or possibly certifiable. I get them confused. Either way, you deserve a long weekend.

On artifacts, I remember this discussion was up at some point and someone from Sparx said that there's a bug, which will be fixed, in how EA handles instantiation of artifacts, and that's why instances of artifacts appear to be both classifiers and instances.

I had a trawl through my mailbox but I couldn't find it. Possibly it's in a thread here on the forum.

/Uffe
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 6259
  • Karma: +104/-89
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: When is an instance not an Object?
« Reply #22 on: March 29, 2018, 10:49:06 am »
Wow, you... actually sat down and did that.
That is laudable, or possibly certifiable. I get them confused. Either way, you deserve a long weekend.

On artifacts, I remember this discussion was up at some point and someone from Sparx said that there's a bug, which will be fixed, in how EA handles instantiation of artifacts, and that's why instances of artifacts appear to be both classifiers and instances.

I had a trawl through my mailbox but I couldn't find it. Possibly it's in a thread here on the forum.

/Uffe
Remember, Uffe, the only certifiably sane people are those who have been certifiably insane in the first place...   :D

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

YogaMatt

  • EA User
  • **
  • Posts: 101
  • Karma: +8/-0
    • View Profile
Re: When is an instance not an Object?
« Reply #23 on: March 29, 2018, 06:23:37 pm »
Wow, you... actually sat down and did that.
That is laudable, or possibly certifiable. I get them confused. Either way, you deserve a long weekend.

On artifacts, I remember this discussion was up at some point and someone from Sparx said that there's a bug, which will be fixed, in how EA handles instantiation of artifacts, and that's why instances of artifacts appear to be both classifiers and instances.

I had a trawl through my mailbox but I couldn't find it. Possibly it's in a thread here on the forum.

/Uffe
Hi Uffe
Madness is not alone - found myself doing this last year (or was it 2016, also have memory loss). It was a necessary exercise in determining what metaclasses to base a new profile on. So there was method in the madness. I anticipate Ian is also following a similar train of thought ...........
Namaste
YM