Book a Demo

Author Topic: Visibility vs Scope  (Read 15963 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Visibility vs Scope
« on: July 17, 2005, 01:32:32 am »
In a number of places, EA uses the term Scope for the enumerate values:

public
private
protected
package

In other places the term Visibility is used with the enumerate values:

Implementation
Private
Protected
Public

(Note the lack of camel case)

UML2 defines VisibilityKind as:

public
private
protected
package

So it's obvious that ER's scope is UML's VisibilityKind,  but what is EA's Visibility in UML terms?

Also, the Class Visibility doesn't appear on the CTF.

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

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Visibility vs Scope
« Reply #1 on: July 17, 2005, 11:31:25 am »

so implementation is like a garbage in the box :)
registertm everything to SparX

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Visibility vs Scope
« Reply #2 on: August 17, 2005, 12:25:37 am »
The EA help file defines:
 
visibility  
An enumeration whose value (public, protected, package or private) denotes how the model element to which it refers may be seen outside its enclosing namespace.

...and is deathly silent on scope... ???

So, my original question still stands...  Sparxians, can you tell me?

Paolo
« Last Edit: August 17, 2005, 12:28:26 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Visibility vs Scope
« Reply #3 on: August 17, 2005, 04:30:10 pm »
Where does "visbility" appear in element forms?
"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.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Visibility vs Scope
« Reply #4 on: August 17, 2005, 05:01:12 pm »
Quote
Where does "visibility" appear in element forms?
bruce,

It's on the Class|Detail tab.  I haven't looked on any other elements.

I just checked.  That control doesn't seem to be emitted by the interface.  It seems to be like the cardinality/multiplicity problem...  
Cardinality:  Class|Detail|Cardinality
Multiplicity:  Class|General|Advanced|Multiplicity

Multiplicity is emitted, cardinality is not.  Maybe Sparxians should remove these two unused controls or tell us how and where they are used? ::)

Paolo

BTW: the help file for the Element AI has the following entry:

Visibility    String     Read/Write. The Scope of this element within the current package. Valid values are: Public, Private, Protected or Package.  

Is it any wonder my "little brain" hurts ???

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

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Visibility vs Scope
« Reply #5 on: August 17, 2005, 07:34:13 pm »
Weirdity!

" tell us how and where they are used? " please


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.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Visibility vs Scope
« Reply #6 on: June 16, 2010, 07:17:10 pm »
Quote
[size=18]...[/size]
BTW: the help file for the Element AI has the following entry:

Visibility    String     Read/Write. The Scope of this element within the current package. Valid values are: Public, Private, Protected or Package.  
 
Is it any wonder my "little brain" hurts ???
I came across this "golden oldie" while searching on another topic...

Sparxian Roy,
The Help file still says what it said in 2005, but the drop down now (857) says:
Implementation, Private, Protected or Public

While you're fixing that - an explanation of the difference between the two (Visibility/Scope) would be good.

(Both Visibility and Scope are persisted to t_object)

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