Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problems to patrticipate in a DerivedSubset-Association
Problems to patrticipate in a DerivedSubset-Association [message #478037] Mon, 01 December 2008 14:51 Go to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Hi all,

i've a problem in my metamodel, which i create by using the UML2 genmodel.
That work's fine, but now i have a technical or knowledge problem.

Is it possible to participate a derived subset???

I have a derived subset between two elements (exactly like the associations
between Package and Type in the UML2 spec (fig. 7-14)). Now, i have some
subclasses of Type, which i want directly be accesible from the Package.
Therefore i create a new association from Package to let's say TestComponent
(which is a Type), that subsets the /ownedType association end. But i didn't
know, how to implement the getOwnedTypes(). Actually, i use the
DerivedSubsetEObjectList, but there, if have no possibilities, to define the
participating subsets (like onwedTestComponent).
IMHO, i need something like DerivedSubsetSupersetEObjectList...

Thanks in advance.

Marc-Florian
Re: Problems to patrticipate in a DerivedSubset-Association [message #478046 is a reply to message #478037] Thu, 04 December 2008 16:24 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Marc-Florian,

It would seem that you are looking for a DerivedUnionEObjectEList or
DerivedSubsetEObjectEList. The various SubsetSuperset lists are used when
you want to automatically add to the superset when an element gets added to
the subset but not vice versa.
I'm not sure if you are implementing these things by hand but specifying the
various subset rules in the model and using the code generator to determine
the best list may be easier.

Cheers,
- James.

"Marc-Florian Wendland" <florianwendland@freenet.de> wrote in message
news:gh0th0$u6v$1@build.eclipse.org...
> Hi all,
>
> i've a problem in my metamodel, which i create by using the UML2 genmodel.
> That work's fine, but now i have a technical or knowledge problem.
>
> Is it possible to participate a derived subset???
>
> I have a derived subset between two elements (exactly like the
> associations between Package and Type in the UML2 spec (fig. 7-14)). Now,
> i have some subclasses of Type, which i want directly be accesible from
> the Package. Therefore i create a new association from Package to let's
> say TestComponent (which is a Type), that subsets the /ownedType
> association end. But i didn't know, how to implement the getOwnedTypes().
> Actually, i use the DerivedSubsetEObjectList, but there, if have no
> possibilities, to define the participating subsets (like
> onwedTestComponent).
> IMHO, i need something like DerivedSubsetSupersetEObjectList...
>
> Thanks in advance.
>
> Marc-Florian
>
Re: Problems to patrticipate in a DerivedSubset-Association [message #627263 is a reply to message #478037] Thu, 04 December 2008 16:24 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Marc-Florian,

It would seem that you are looking for a DerivedUnionEObjectEList or
DerivedSubsetEObjectEList. The various SubsetSuperset lists are used when
you want to automatically add to the superset when an element gets added to
the subset but not vice versa.
I'm not sure if you are implementing these things by hand but specifying the
various subset rules in the model and using the code generator to determine
the best list may be easier.

Cheers,
- James.

"Marc-Florian Wendland" <florianwendland@freenet.de> wrote in message
news:gh0th0$u6v$1@build.eclipse.org...
> Hi all,
>
> i've a problem in my metamodel, which i create by using the UML2 genmodel.
> That work's fine, but now i have a technical or knowledge problem.
>
> Is it possible to participate a derived subset???
>
> I have a derived subset between two elements (exactly like the
> associations between Package and Type in the UML2 spec (fig. 7-14)). Now,
> i have some subclasses of Type, which i want directly be accesible from
> the Package. Therefore i create a new association from Package to let's
> say TestComponent (which is a Type), that subsets the /ownedType
> association end. But i didn't know, how to implement the getOwnedTypes().
> Actually, i use the DerivedSubsetEObjectList, but there, if have no
> possibilities, to define the participating subsets (like
> onwedTestComponent).
> IMHO, i need something like DerivedSubsetSupersetEObjectList...
>
> Thanks in advance.
>
> Marc-Florian
>
Previous Topic:EclipseUML2 model and iterative agile process is possible
Next Topic:EclipseUML2 model and iterative agile process is possible
Goto Forum:
  


Current Time: Fri Apr 19 15:00:45 GMT 2024

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

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

Back to the top