| ERROR: could not find operation getReferredElement [message #469581] |
Tue, 17 February 2009 09:58  |
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>
-- @subsets wovenModel<br>
reference coreModel container : WModelRef;<br>
<br>
reference adviceModel container : WModelRef;<br>
}<br>
<br>
class CombineResource extends WLink {<br>
<br>
-- @subsets end<br>
reference baseResource [*] container : Resource;<br>
<br>
-- @subsets end<br>
reference createAction [*] container : Action; <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>
mmw : AMW!CombineResource ( not
mmw.baseResource->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>
Juan Pedro<br>
</font></font></big></small><br>
</big></small>
</body>
</html>
|
|
|