|
|
|
Re: Modeling with existing super classes [message #550206 is a reply to message #550107] |
Thu, 29 July 2010 14:10 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Benjamin,
Comments below.
Benjamin Bihler wrote:
>>> The problem is that the original classes represent threads or SWING
>>> gui elements and are therefore derived from classes in different
>>> libraries.
>> You can wrap such things as EDataTypes.
>
> But than I have to aggregate the classes, haven't I?
Not sure what that means.
> I have to add the thread for example as EAttribute and write some
> delegation code. True?
Yes, though I'm not sure what the purpose of the delegation would be.
You could have an attribute for the thread and someone could call
getThread and then work directly with the thread. Of course I'm not
sure how it makes sense for a thread value to be persistent, so likely
such a thing needs to be transient...
>
> Thanks!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Re: Modeling with existing super classes [message #619927 is a reply to message #550107] |
Thu, 29 July 2010 14:10 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Benjamin,
Comments below.
Benjamin Bihler wrote:
>>> The problem is that the original classes represent threads or SWING
>>> gui elements and are therefore derived from classes in different
>>> libraries.
>> You can wrap such things as EDataTypes.
>
> But than I have to aggregate the classes, haven't I?
Not sure what that means.
> I have to add the thread for example as EAttribute and write some
> delegation code. True?
Yes, though I'm not sure what the purpose of the delegation would be.
You could have an attribute for the thread and someone could call
getThread and then work directly with the thread. Of course I'm not
sure how it makes sense for a thread value to be persistent, so likely
such a thing needs to be transient...
>
> Thanks!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03555 seconds