Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » AMW » ERROR: could not find operation getReferredElement
ERROR: could not find operation getReferredElement [message #469581] Tue, 17 February 2009 09:58 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro Silva
Messages: 247
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Marcos, a short question over an issue I can't figure out.<br>
Out of this weaving metamodel extension:<br>
<small><font face="Courier"><br>
<font color="#3366ff">package mm_weaving_JP {<br>
<br>
class WeavingModel extends WModel { <br>
<br>
&nbsp;&nbsp; &nbsp;-- @subsets wovenModel<br>
&nbsp;&nbsp; &nbsp;reference coreModel container : WModelRef;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;reference adviceModel container : WModelRef;<br>
}<br>
<br>
class CombineResource extends WLink {<br>
<br>
&nbsp;&nbsp;&nbsp; -- @subsets end<br>
&nbsp;&nbsp;&nbsp; reference baseResource [*] container : Resource;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; -- @subsets end<br>
&nbsp;&nbsp;&nbsp; reference createAction [*] container : Action;&nbsp;<br>
} <br>
<br>
class Resource extends WLinkEnd {<br>
}<br>
<br>
class Action extends WLinkEnd {<br>
}<br>
}</font><br>
<br>
</font><big>And the following code:<br>
<br>
<font face="Courier New, Courier, monospace"><small><font
color="#3366ff">rule CombineResource {<br>
from<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; mmw : AMW!CombineResource ( not
mmw.baseResource-&gt;first().getReferredElement().oclIsU ndefined() )</font><br>
</small></font><br>
Why<small> <big>am I getting this error?:<br>
<br>
<font color="#3366ff">ERROR: could not find operation
getReferredElement on AMW!Resource having supertypes: [AMW!WLinkEnd,
OclType, OclAny] (including Java operations)<br>
<br>
<font color="#330033">Isn't the operation supposed to be available on a
WLinkEnd subclass?<br>
I'm having some trouble with AMW, and I'm trying to go back to my basic
assumptions. Thank for your help.<br>
Regards,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Juan Pedro<br>
</font></font></big></small><br>
</big></small>
</body>
</html>
 
Read Message
Read Message
Read Message
Previous Topic:Problems with KM3 extension for HOT.
Next Topic:An internal error occurred during: "Launching...
Goto Forum:
  


Current Time: Fri May 24 08:32:40 EDT 2013

Powered by FUDForum. Page generated in 0.01718 seconds