Inheritance [message #5764] |
Fri, 28 November 2008 09:19  |
Eclipse User |
|
|
|
Hia,
Is it possible to deal with multiple inheritance with ETL? I've been
reading the pdfs available but haven't yet found the answer... Any
pointers to relevant documentation would be great.
Edd.
|
|
|
|
|
|
Re: Inheritance [message #5830 is a reply to message #5814] |
Mon, 01 December 2008 10:56  |
Eclipse User |
|
|
|
Hi Edd,
Edward Turner wrote:
> Also, I was wondering if the following could be confirmed? : If A
> extends B, and B extends C and D, is it true that all instances of A
> inherit from C and D (via B)?
That is correct.
(Or perhaps is it possible to create a
> particular instance of A whose ancestor chain is precisely <B,C> -- and
> not <B,D>)?
You could do this indirectly by setting respective guards to C and D.
>
> Thanks in advance,
>
> Edd
Cheers,
Dimitrios
|
|
|
Re: Inheritance [message #562653 is a reply to message #5764] |
Fri, 28 November 2008 09:37  |
Eclipse User |
|
|
|
Hi Edd,
This is supported. You can write something like
rule A
transform a : A!A
to b : B!B
extends C, D, E {
}
Cheers,
Dimitrios
Edward Turner wrote:
> Hia,
>
> Is it possible to deal with multiple inheritance with ETL? I've been
> reading the pdfs available but haven't yet found the answer... Any
> pointers to relevant documentation would be great.
>
> Edd.
|
|
|
|
Re: Inheritance [message #562693 is a reply to message #5781] |
Mon, 01 December 2008 10:42  |
Eclipse User |
|
|
|
Also, I was wondering if the following could be confirmed? :
If A extends B, and B extends C and D, is it true that all instances of
A inherit from C and D (via B)? (Or perhaps is it possible to create a
particular instance of A whose ancestor chain is precisely <B,C> -- and
not <B,D>)?
Thanks in advance,
Edd
|
|
|
Re: Inheritance [message #562713 is a reply to message #5814] |
Mon, 01 December 2008 10:56  |
Eclipse User |
|
|
|
Hi Edd,
Edward Turner wrote:
> Also, I was wondering if the following could be confirmed? : If A
> extends B, and B extends C and D, is it true that all instances of A
> inherit from C and D (via B)?
That is correct.
(Or perhaps is it possible to create a
> particular instance of A whose ancestor chain is precisely <B,C> -- and
> not <B,D>)?
You could do this indirectly by setting respective guards to C and D.
>
> Thanks in advance,
>
> Edd
Cheers,
Dimitrios
|
|
|
Powered by
FUDForum. Page generated in 0.06109 seconds