Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » GeneralizationSet
GeneralizationSet [message #627761] Thu, 02 July 2009 10:54
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

a more or less simple question concerning the GeneralizationSet. Let's

class Super
class Sub1 extends Super
class Sub2 extends Super

Concerning the GeneralizationSet (GS) mechanism, the spec mentioned,
that a GS will covering, if instances of Sub1 are also an instance of
Sub2. So far so good, but...

IMHO, this instance relationsship deals with the UML-internal instance
specification mechanism, am i right? In Java, for example, any check
like (sub1 instanceof sub2) will fail, because there are not directly
compatible (only via an upcast).

But in UML it seems possible, that an instance of a subclass can also be
an instance of any other corelating subclass of this GS, since any
instance specification can point to several classifiers.

Is this correct?

Previous Topic:No notification from classifier when package changes
Next Topic:modeling arrays in uml
Goto Forum:

Current Time: Sat Jun 23 16:23:01 GMT 2018

Powered by FUDForum. Page generated in 0.01910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top