Skip to main content



      Home
Home » Modeling » Epsilon » Inheritance
Inheritance [message #5764] Fri, 28 November 2008 09:19 Go to next message
Eclipse UserFriend
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 #5781 is a reply to message #5764] Fri, 28 November 2008 09:37 Go to previous messageGo to next message
Eclipse UserFriend
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 #5798 is a reply to message #5781] Fri, 28 November 2008 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Great! Thanks,

Edd
Re: Inheritance [message #5814 is a reply to message #5781] Mon, 01 December 2008 10:42 Go to previous messageGo to next message
Eclipse UserFriend
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 #5830 is a reply to message #5814] Mon, 01 December 2008 10:56 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 #562670 is a reply to message #5781] Fri, 28 November 2008 09:43 Go to previous message
Eclipse UserFriend
Great! Thanks,

Edd
Re: Inheritance [message #562693 is a reply to message #5781] Mon, 01 December 2008 10:42 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Inheritance
Next Topic:ETL and UML Stereotypes
Goto Forum:
  


Current Time: Sun May 11 21:59:13 EDT 2025

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

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

Back to the top