PIVOT model and method overriding bug [message #911872] |
Wed, 12 September 2012 13:43 |
ModelGeek Mising name Messages: 550 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 13:45] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04799 seconds