| PIVOT model and method overriding bug [message #911872] |
Wed, 12 September 2012 09:43  |
ModelGeek Mising name Messages: 351 Registered: June 2011 |
Senior Member |
|
|
Hi,
I have very simple ecore model where "general" class has a derived varible "var" of type DOUBLE and has an operation "operation" of DOUBLE.
Class "special" is extending from "general" and "operation" is also overriden.
Please open given ecore file in Sample Ecore Editor(JUNO)
Right click on "Connector" and select "Create dynamic instance" of Connector and all some children(special and general).
For "general" objects, the value for variable "var" is correct but for "special" objects value of "var" is not calculated.
import ecore : 'http://www.eclipse.org/emf/2002/Ecore#/';
package temp : EAAT = 'http://www.eclipse.org/mdt/ocl/oclinecore/tutorial'
{
class special extends general
{
operation operation() : ecore::EDouble { ordered }
{
body: 3.5;
}
}
class general
{
operation operation() : ecore::EDouble { ordered }
{
body: 2.3;
}
attribute ID : ecore::ELongObject { ordered };
attribute name : String { ordered };
attribute var : ecore::EDoubleObject { ordered derived volatile }
{
derivation: operation();
}
property connector#general : Connector[*] { ordered };
}
class Connector
{
attribute ID : ecore::ELongObject { ordered };
attribute name : String { ordered };
property general#connector : general[*] { composes };
}
}
[Updated on: Wed, 12 September 2012 09:45] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: PIVOT model and method overriding bug [message #1006035 is a reply to message #1006013] |
Tue, 29 January 2013 10:35  |
Ed Willink Messages: 3180 Registered: July 2009 |
Senior Member |
|
|
Hi
You still have to set the option on the environment.
You might need to use custom Delegate Factories to intercept the
environment creation.
Regards
Ed Willink
On 29/01/2013 14:45, ModelGeek Mising name wrote:
> Thanks alot.
>
> I am using deletgates to evaluate so is there any mechanism for
> delegates to achieve the same?
>
> Cheers,
|
|
|
Powered by
FUDForum. Page generated in 0.02242 seconds